• 🏆 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!

"Gold Steal" Ability - Not working

Status
Not open for further replies.
Level 1
Joined
May 15, 2007
Messages
88
  • GoldSteal
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Gold Steal (Neutral Hostile)
    • Actions
      • Player - Add -200 to (Owner of (Casting unit)) Current gold
      • Player - Add ((Owner of (Target unit of ability being cast)) Current gold) to (Owner of (Casting unit)) Current gold
The point of this is that it costs you 200 gold, but you get the enemy's gold.


The ability works and everything, I believe the wrongie is in the trigger.


BUT - It only removes gold, it doesn't add - Any help would be appreciated :)
(A while since I used HW forums, so I don't know if this is the correct forum)
 
Level 1
Joined
May 15, 2007
Messages
88
I think that was a bit wrong :S But I think I understand; Triggering, not Casting.


(The spell is supposed to do the following:)

When an unit casts it, the owner of that unit gets ALL the gold of the targeted unit, BUT it will cost the unit casting the spell 200 gold.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
Player - Set (Owner of (Triggering unit)) Current gold to (amount)

For that line replace ammount with the stuff needed to preform this calculation.
(Owner of Triggering unit Current gold) + (Owner of Target unit of ability being cast Current gold) - 200

for
Player - Set (Owner of (Target unit of ability being cast)) Current gold to (amount)
make amount do
the number 0 (no gold as it all is meant to have been removed)
 
Status
Not open for further replies.
Top