• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

How do i make heals give out gold?

Status
Not open for further replies.
Level 5
Joined
Jun 27, 2010
Messages
73
Im making a Zombie map and how do u do this kind of a trigger: Marine Medics in map arent meant for fighting more for healing and that means they dont get alot of gold. How do i make a trigger that gives them gold for healing like for exmple: "heals some1 with holy light then gets 50 gold for casting holy light on them":vw_wtf:
 
Last edited:
Level 33
Joined
Mar 27, 2008
Messages
8,035
Use Starts the effect of an ability because if you use the Finishes casting an ability, if the player cast the spell and interrupts the unit's "Casting Animation", the Action could never be fired

Use (Triggering player) instead of (Owner of (Casting unit))
You call 2 function where you can save time/efficiency by just calling it once.
 
Are you sure this works? As far as I am aware it does not (as many jass spells use the owner of casting unit route).

To be honest, I used to have some problems with (Triggering player) as well. Sometimes it works, but not as a general rule. It's kind of silly, if you think about it, it's like using (Picked player) instead of (Owner of (Picked unit)). These event responses theoritically (and practically) refer to units and players respectively.
 
Status
Not open for further replies.
Top