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

Teleporting dialog

Status
Not open for further replies.
Level 3
Joined
Dec 2, 2011
Messages
31
Is there a way to make a teleporting dialog i mean if you click on the teleporter guy a dialog shows up and if you click like ISLAND 1 it teleports you there free is this posible?:vw_wtf::vw_wtf::vw_wtf:
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
Is there a way to make a teleporting dialog i mean if you click on the teleporter guy a dialog shows up and if you click like ISLAND 1 it teleports you there free is this posible?:vw_wtf::vw_wtf::vw_wtf:

long ago i made one but i forget where i posted it (i guess it was thehelper.net or idk but that was many year ago), basically posible and not hard just need to make dialog/dialog button variable array, that npc, few region where u want tp and 1-2 trigger

ofc u also can make it level requiment for area's etc

notice, better if u make something when unit go close to teleporter npc or just enter to a region
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
can you help i cant do it i tried so many times

here are the triggers

Note :
you need 2 variables of type :
1. Dialog Button with array
2. Dialog

  • Dialog create
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of dialog to Where do you want t...
      • Dialog - Create a dialog button for dialog labelled Island 1
      • Set dialogbutton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for dialog labelled Island 2
      • Set dialogbutton[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for dialog labelled Island 3
      • Set dialogbutton[3] = (Last created dialog Button)
  • Dialog show
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Dialog - Show dialog for (Triggering player)
      • Trigger - Turn on Dialog check <gen>
  • Dialog check
    • Events
      • Dialog - A dialog button is clicked for dialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to dialogbutton[1]
        • Then - Actions
          • Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Center of Region 000 <gen>)
        • Else - Actions

here, i made you a map test.

when you click the footman, a dialog will show "Island 1" "Island 2" "Island 3" and when you click Island 1, the unit will be teleported.
 

Attachments

  • Dialog Test 2.w3x
    17.4 KB · Views: 145
Status
Not open for further replies.
Top