• 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.

[Trigger] Tournament System

Status
Not open for further replies.
Level 13
Joined
Jan 30, 2012
Messages
1,298
Hei.. I need a help, i want to create a map with a tournament system. I want to create this in GUI. So, 1 of all, I want to create a countdown timer that expires in 270 second. If the timer is expires. all teams will set in the tournament field. and If the tournament is end, all units (if still alive) will move back to default position before the tournament. and the dead units will revived in their post (like battle stadium). But i don't know anything about this, so can anyone help me? almost forgot, the team winner will get 1000 gold to each player in that team.
 
Level 4
Joined
Dec 5, 2011
Messages
75
wow thats alot of things..
is the Countdown Timer starting when the map initializates?
try this to start off:
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/upwards-counting-timer-175541/
You just need to put - instead of + and changes the numbers to what you want.
To move your heroes i suggest you to set them into a Unit Group variable and use this function:
  • Unit Group - Pick every unit in YourGroup and do (Actions)
    • Loop - Actions
anyways i dont think anyone will help you that much because you are asking too many things, and we dont have any idea of your GUI or JASS knowledge.
Check the Tutorial that we got here :)
 
Level 11
Joined
Aug 6, 2009
Messages
697
I'm not gona make the whole tourny thing for you but use this to get all the units ex-positions.

  • Untitled Trigger 001
    • Events
      • Time - Tourny expires
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Set position = (Position of (Picked unit))
          • Hashtable - Save Handle Ofposition as 0 of (Key (Picked unit)) in Hashtable
Now that it is saved use this for loading the positions.
  • Actions
    • Unit Group - Pick every unit in TournyGroup and do (Actions)
      • Loop - Actions
        • Set position = (Load 0 of (Key (Picked unit)) in Hashtable)
        • Unit - Move (Picked unit) instantly to position
 
Status
Not open for further replies.
Top