Scripting:Flotten benennen
Aus STNE-Wiki
(Unterschied zwischen Versionen)
Version vom 30. Mai 2006, 20:10 Uhr
Flotten Benennung
Skriptcode
VAR i AS integer VAR names[] AS String = { 'name1', 'name2', 'name3', 'name4' } j=1 VAR Flotte AS new CMyFlotte( idDerFlotte ); VAR Schiffe AS CShipList = Flotte.Ships VAR ShipEnum AS IEnumerator = Schiffe.GetEnumerator(); WHILE (ShipEnum.MoveNext()) { var Ship as CMyShip = ShipEnum.Current Ship.Name = & names[i] i=i+1 }