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

Need help finding a certain type of Action

Status
Not open for further replies.
Level 3
Joined
Jan 9, 2005
Messages
25
Hey i need to know how to change this

Code:
Hero - Instantly revive Merc[(Player number of (Triggering player))] at (Center of (Playable map area)), Hide revival graphics

So that you revive at the highest level townhall and not center of map. I can't find anything to do with tiers.
 
Level 10
Joined
Sep 6, 2007
Messages
440
Hmm make a variable as unit-type. Such as Hall[0]. ( put an array to it ) Then, determine Hall[0],Hall[1] and Hall[2] as the tiers of Town Hall. Such as Town Hall, Keep and Castle for 0, 1 and 2 respectively. Then make a timer on trigger editor to check it periodically. I advice 0.5 or 0.1 second. Then make an Unit-Pick Every Unit in Playable Map Area matching Matching unit type equals to hall[0] or 1 or 2. Then order their tp to go there by unit-move instantly. You're done. You can also make this with if/then/else but I can't think of a good condition right now :p
 
Status
Not open for further replies.
Top