iTz Rossss X Posted January 1, 2010 Share Posted January 1, 2010 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 buttonpressedint 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!" endifend 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 More sharing options...
alex2avs Posted January 1, 2010 Share Posted January 1, 2010 scn aaaImperialCityTeleportTome01SCRIPTref aaaImperialCityTeleportTomeXMarkerREFshort buttonpressedint button begin onActivateMessageBox "Would you like to teleport to the Imperial City Palace?", "Yes", "No"set buttonpressed to 1endifif buttonpressed == 1message "You may teleport later if you wish"elseif button == 0player.moveto aaaImperialCityTeleportTomeXMarkerREFMessage "You have been teleported to the Imperial City Palace!"endifend Link to comment Share on other sites More sharing options...
Recommended Posts