• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

List to teleport

Status
Not open for further replies.
Level 5
Joined
Jan 19, 2020
Messages
102
List to teleport

i want a list for a teleporter,

when you klick it there should be a list where you can teleport,

can you help me with trigger and list?
 
Level 8
Joined
Jun 16, 2008
Messages
333
Hopefully you did the research and found out how to do it your self but it would look like something like this... I tested and it works but you would have to implement it for every player
  • Untitled Trigger 002
    • Events
      • Unit - A unit owned by Player 1 (Red) Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Wind Walk
    • Actions
      • Do nothing
      • Set VariableSet tpunit = (Casting unit)
      • Dialog - Create a dialog button for tp labelled tp1
      • Set VariableSet tp1 = (Last created dialog Button)
      • Dialog - Create a dialog button for tp labelled tp2
      • Set VariableSet tp2 = (Last created dialog Button)
      • Dialog - Show tp for Player 1 (Red)
  • Untitled Trigger 003
    • Events
      • Dialog - A dialog button is clicked for tp
    • Conditions
    • Actions
      • If ((Clicked dialog button) Equal to tp2) then do (Unit - Move tpunit instantly to (Center of Region 003 <gen>)) else do (Dialog - Hide tp for Player 1 (Red))
      • If ((Clicked dialog button) Equal to tp1) then do (Unit - Move tpunit instantly to (Center of Region 001 <gen>)) else do (Dialog - Hide tp for Player 1 (Red))
 
Then change it, how hard is it to create your own event? You didn't even state in your description in what event should the trigger fire.

Hopefully you did the research and found out how to do it your self but it would look like something like this... I tested and it works but you would have to implement it for every player
  • Untitled Trigger 002
    • Events
      • Unit - A unit owned by Player 1 (Red) Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Wind Walk
    • Actions
      • Do nothing
      • Set VariableSet tpunit = (Casting unit)
      • Dialog - Create a dialog button for tp labelled tp1
      • Set VariableSet tp1 = (Last created dialog Button)
      • Dialog - Create a dialog button for tp labelled tp2
      • Set VariableSet tp2 = (Last created dialog Button)
      • Dialog - Show tp for Player 1 (Red)
  • Untitled Trigger 003
    • Events
      • Dialog - A dialog button is clicked for tp
    • Conditions
    • Actions
      • If ((Clicked dialog button) Equal to tp2) then do (Unit - Move tpunit instantly to (Center of Region 003 <gen>)) else do (Dialog - Hide tp for Player 1 (Red))
      • If ((Clicked dialog button) Equal to tp1) then do (Unit - Move tpunit instantly to (Center of Region 001 <gen>)) else do (Dialog - Hide tp for Player 1 (Red))

This has location leaks, and 'DoNothing()', but should'nt be hard to fix.
 
Last edited:
Status
Not open for further replies.
Top