Jump to content

Create a choices menu for a teleportation


Recommended Posts

Hello everybody!

 

I would like to make a mod in which a menu appear when the player activates a certain door.

This menu gives the player a choice between various destinations and teleports him once the choice is made.

 

 

Here is what my script looks like.

 

ScriptName MyScriptsName

 

Short choice

set Choice to GetButtonPressed

 

Begin OnActivate

MessageBox "Text", "Option 1", "Option 2", "Option 3", "Option 4", "Option 5"

If ( choice == 0)
Player.moveto CustomMarker1
ElseIf (choice ==1)
Player.moveto CustomMarker2
ElseIf (choice ==2)
Player.moveto CustomMarker3
ElseIf (choice ==3)
Player.moveto CustomMarker4
ElseIf (choice ==4)
Player.moveto CustomMarker5
EndIf

End

 

 

What should I change so it works?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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