• 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 Request & Fixes

Status
Not open for further replies.
Level 10
Joined
Mar 19, 2010
Messages
622
Now I needed a few trigger to be used in my map.:cry:
1)All-Hero-Icon System
2)Reviving System
-Reviving Time equal to (Distance between reviving point and point of death hero divided by hero's defult movement speed)

Please if anyone can help.
 
Level 1
Joined
Jun 5, 2010
Messages
2
1) Please explain further

2) As for the revival system is this what you wanted?
  • Reviving System
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set DeathLoc[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
      • Set Resstime[(Player number of (Owner of (Triggering unit)))] = ((Integer((Distance between DeathLoc[(Player number of (Owner of (Triggering unit)))] and (Center of Revival Point <gen>)))) / (Integer((Default movement speed of (Triggering unit)))))
      • Wait (Real(Resstime[(Player number of (Owner of (Triggering unit)))])) seconds
      • Hero - Instantly revive (Triggering unit) at (Center of Revival Point <gen>), Show revival graphics
I've tested it and it works, though it leaks 1 location which I'm unable to remove.

Attached the 'Revival System Map'.
 

Attachments

  • Revival System.w3x
    17 KB · Views: 33
Status
Not open for further replies.
Top