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

Status
Not open for further replies.
Back
Top