• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Teleport system small problem

Status
Not open for further replies.
Level 8
Joined
Aug 3, 2008
Messages
257
Main script
  • Teleporter
    • Events
      • Unit - A unit enters Ulah <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Dialog - Clear MyDialog
      • Dialog - Change the title of MyDialog to Where would you lik...
      • Dialog - Create a dialog button for MyDialog labelled Swamp - Level 8+
      • Set DialogButton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for MyDialog labelled Refugee Camp
      • Set DialogButton[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for MyDialog labelled Gurgan Peninsula
      • Set DialogButton[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for MyDialog labelled New Borne City
      • Set DialogButton[4] = (Last created dialog Button)
      • Dialog - Show MyDialog for (Owner of (Triggering unit))
  • Swamp button
    • Events
      • Dialog - A dialog button is clicked for MyDialog
    • Conditions
      • (Clicked dialog button) Equal to DialogButton[1]
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Greater than or equal to 8
        • Then - Actions
          • Unit - Move (Triggering unit) instantly to (Center of swamp drop off <gen>)
          • Unit - Move (Triggering unit) instantly to (Center of (Playable map area))
          • Camera - Pan camera for (Owner of (Triggering unit)) to (Center of swamp drop off <gen>) over 0.00 seconds
        • Else - Actions
          • Do nothing
I can't figure out what to put instead of trggering unit :-\? anyone help please
 
Level 20
Joined
Jan 6, 2008
Messages
2,627
well, just set a Unit Variable for the triggering unit
+ O'rly?
attachment.php
 

Attachments

  • orly.jpg
    orly.jpg
    42.8 KB · Views: 124
Status
Not open for further replies.
Top