• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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: 28
Status
Not open for further replies.
Top