• 🏆 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!

Waygate using dialogue show help me

Status
Not open for further replies.
Level 4
Joined
Oct 20, 2010
Messages
92
hi all, it might sounds noobish but i have a question about using waygate by dialogue show, Exemple: when Hero enter the region it show many dialogue like: the swap, the Library, the castle keep, so we can select the dialogue to teleport to the wanted and apporiate place you want to go can you help me doing that and show me exemple of the trigger and variable to uses for that and reward ++rep :ogre_love:

FTW
 
Level 31
Joined
Jun 27, 2008
Messages
2,555
An example here. Oh, this example leaks by the way.

  • Teleportation Window
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Teleport
    • Actions
      • Trigger - Turn on Teleportation Itself <gen>
      • Dialog - Clear Dialog
      • Dialog - Change the title of Dialog to Teleport to:
      • Dialog - Create a dialog button for Dialog labelled |CFF7EBFF1Hill of C...
      • Set DialogButton1 = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled |CFF7EBFF1Sky Boeth...
      • Set DialogButton2 = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Cancel
      • Set DialogButtonCancel = (Last created dialog Button)
      • Dialog - Show Dialog for Player 1 (Red)
  • Teleportation Itself
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogButton1
        • Then - Actions
          • Unit - Move Hero instantly to (Center of Region 006 <gen>)
          • Special Effect - Create a special effect attached to the origin of Hero using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogButton2
        • Then - Actions
          • Unit - Move Hero instantly to (Center of Region 022 <gen>)
          • Special Effect - Create a special effect attached to the origin of Hero using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
 
Status
Not open for further replies.
Top