TP moveto script not making it past undocking from station

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

limpet
Posts: 1
Joined: Wed, 3. Mar 04, 19:19
x2

TP moveto script not making it past undocking from station

Post by limpet »

I'm playing about trying to get to grips with some simple scripting, and i have what i *think* should be a script which has a TP class created, leave a home trading dock, and fly to/from random docks in the surrounding sectors.

BUT: everytime i watch a shiny new Teladi Toucan take off from the station, he then forgets what he was doing, discards my script, and resets to the return to base script.

I can't see why. I make a call to !ship.movetostation, and then as i understand it, it should loop back up once that script is done, selecting the next destination. but it never even gets past the undocking phase before turning about and going home, completely dropping my script from the stack.

Any idea why my TP is too shy to come out and play :?:
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

Call the !move.undock script first.

Scripts can easily get confused when a ship changes environment, eg from station to sector, or even sector to sector.

Return to “X²: The Threat - Scripts and Modding”