Teleport scripting problem *Solved*

Discussion in 'Modding and Scripting Support' started by rroyo, Feb 22, 2010.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. rroyo

    rroyo Active Member

    Messages:
    3,319
    Likes Received:
    0
    Joined:
    Oct 13, 2006
    *I'll leave this here for reference purposes.*

    Here's the deal: This script will automatically tell your PC's followers to wait (if you have any) and teleport the PC to another location. It works well enough on the first time through - but - if you reload the save without completely exiting the game and try to go to the module again, the game crashes.

    Can someone please tell me why this is happening?

    0. dialog 1

    1. return and SKIP default

    2. loop for Anyone in Group (PC and NPC, (single player)

    3. have critter Any Follower (single player) wait for his leader

    4. fade and teleport: pass 60 seconds, play 9035 sound, play 0 movie, and teleport Triggerer to map 5081 at X:2145 Y:2019

    5. spell eye candy: play 1202 on Triggerer

    6. loop end

    7. return and RUN default

    *The Solution*

    Begin the teleport first, then have the followers wait.

    0. dialog 1

    1. return and SKIP default

    2. loop for Anyone in Group (PC and NPC, (single player)

    3. fade and teleport: pass 60 seconds, play 9035 sound, play 0 movie, and teleport Triggerer to map 5081 at X:2145 Y:2019

    4. have critter Any Follower (single player) wait for his leader

    5. spell eye candy: play 1202 on Triggerer

    6. loop end

    7. return and RUN default
     
Our Host!