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!
i need an ability so that when the unit with the ability attacks, it will drain a set amount of life and mana from the attacked unit if the attacked unit has mana plz help, iv spent like an hour so far trying ty
You can trigger it (with the event "When an unit is attacked"). Then, just cause the attacking unit to damage the attacked unit the appropriate amount and steal mana if the attacked unit has mana to steal. The only problem that arises is the repeated use of the "stop" key will cause multiple attacks to be registered, and the lifesteal and manasteal will trigger multiple times without an actual attack landing.
Add the action "If/ Then/ Else (Multiple Functions)", in the If (Condition), add the Real Comparison -> ((Mana of (Attacking unit)) Greater than or Equal to X, and the action Unit - Set Mana of (Attacking unit) to ((Mana of (Attacking unit)) - X)
X is the amount of mana you want removed. Leave the "Else (Actions)".
ok that helps but i wanted the attacked unit to lose X mana and life and the attacker to gain X mana and life
EDIT: o and how ould i set a units mana regen to a negative value?
Well i tried this trigger but its not working:*** Events******* Time - Every 1.00 seconds of game time*** Conditions******* (Unit-type of (Picked unit)) Equal to Felhound*** Actions******* Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - 3.00))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.