Jump to content

Teleport script


iTz Rossss X

Recommended Posts

Hi,

 

I tried writing my own script so that when I trigger an activater (book on a shelf that i made) it will come up with an option if i'd like to teleport to the imperial city palace or not. I've made a xmarker at the IC palace, gave it a ref id and all that but it still isn't working??

 

Heres the script:

 

scn aaaImperialCityTeleportTome01SCRIPT

 

short buttonpressed

int button

 

begin onActivate

MessageBox "Would you like to teleport to the Imperial City Palace?", "Yes", "No"

set buttonpressed to 1

endif

if buttonpressed == 1

message "You may teleport later if you wish"

elseif button == 0

player.moveto aaaImperialCityTeleportTomeXMarkerREF

Message "You have been teleported to the Imperial City Palace!"

endif

end

 

Basicly, when I trigger it the messagebox shows up but the little message in the top-left of the screen saying "You may teleport later if you wish" shows too, also when i click "yes" nothing happens. Please could someone edit my script so it will work?

 

Thanks in advance,

 

Ross

Link to comment
Share on other sites

scn aaaImperialCityTeleportTome01SCRIPT

ref aaaImperialCityTeleportTomeXMarkerREF

short buttonpressed

int button

 

begin onActivate

MessageBox "Would you like to teleport to the Imperial City Palace?", "Yes", "No"

set buttonpressed to 1

endif

if buttonpressed == 1

message "You may teleport later if you wish"

elseif button == 0

player.moveto aaaImperialCityTeleportTomeXMarkerREF

Message "You have been teleported to the Imperial City Palace!"

endif

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...