was mach ich den wenn ich in diesem Script
Code: Select all
001 $rank = $ship -> get local variable: name='crank'
002 if $rank
003 $cpilotname = $ship -> get local variable: name='cpilotname'
004 $fnmame.sc = get substring of $cpilotname offset=0 length=3
005 $space = find position of pattern ' ' in $cpilotname
006 $cpn.length = get length of string $cpilotname
007 $ln.length = $cpn.length - $space
008 $lname = get substring of $cpilotname offset=$space length=$ln.length
009 $rankID = 1200 + $rank
010 $rank.sc = read text: page=8069 id=$rankID
011
012 $IDCode = $ship -> get ID code
013 $class = get substring of $IDCode offset=1 length=2
014 $plate = get substring of $IDCode offset=3 length=5
015
016 *$ship.label.name = sprintf: fmt='%s %s %s %s.%s', $class, $plate, $rank.sc, $fnmame.sc, $lname
017 $ship.label.name = sprintf: pageid=8069 textid=3000, $class, $plate, $rank.sc, $fnmame.sc, $lname
018 $tf.id = $ship -> get local variable: name='cpilots.taskforce.id'
019 if $tf.id
020 $ship -> set local variable: name='cpilots.taskforce.oldname' value=$ship.label.name
021 $tf.leader = $ship -> get local variable: name='cpilots.taskforce.leader'
022
023 if $tf.leader == $ship
024 $tf.tag = sprintf: pageid=8071 textid=101, $tf.id, null, null, null, null
025 $ship.label.name = $ship.label.name + $tf.tag
026 else
027 $ship.label.name = sprintf: pageid=8071 textid=102, $ship.label.name, $tf.id, null, null, null
028 * end tf.leader
029 end
030 * end tf.tag
031 end
032 *write to player logbook $ship.label.name
033 $hb = $ship -> get homebase
034 if $hb != null
035 $bn = $hb -> get local variable: name='basename'
036 if $bn
037 $fb.tag = sprintf: pageid=8069 textid=3001, $bn, null, null, null, null
038 $ship.label.name = $fb.tag + ' ' + $ship.label.name
039 end
040 end
041 else
042 $IDCode = $ship -> get ID code
043 $class = get substring of $IDCode offset=1 length=2
044 $plate = get substring of $IDCode offset=3 length=5
045 $ship.label.name = sprintf: fmt='%s %s', $class, $plate, null, null, null
046 end
047 $ship -> set name to $ship.label.name
048 return null
Ich weiß zumindest schon das ich $IDCode = $ship -> get ID code gegen $ShipName = $Ship -> get ware type code of object austauschen muß. Nur leider bekomm ich bei meinen Versuchen nur ein "null, null" an erster und zweiter Stelle.
Der erste Helfer bekommt ein Faß Raumsprit!!!