Code: Select all
(block Nil
; find all stations in the system and put them into listofstations
(setq listofstations (sysFindObject gPlayerShip "t"))
;flip through the list of stations and use the variable station_x to refer to each one
(enum listofstations station_x
;Then find the stations that are Korolov Shipping and choose one of them
(if (eq (staGetType station_x) &stKorolovShipping;)
(block Nil
(setq chosenKorolov *HELP*)
)
)
)
)
The goal of all this is to be able to create a ship at that Korolov station, and make that ship do a shipping route (probably going to be the next question) so the player can blow it up.
