• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

a % chance to make feedback happen

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2007
Messages
57
hi :) i want the healer in my map to have the feedback spell with 101 levels. I want 101 levels cause it starts with level 1 in the ability, which is 0% chance to steal mana equal to 33% of its intelligence, and on level 100 its 100% chance to steal mana equal to 33% of its intelligence..

but how can i make feedback % based?
 
  • Trigger
  • Events
    • Unit - A unit is attacked
  • Conditions
    • (Unit-type of (Attacking unit)) Equal to X
    • (Random Integer Number between 1 and 100) less than or Equal to (Level of (Feedback) for (Attacking unit)) [Integer Comparison]
  • Actions
    • Unit - Set mana of (Attacked unit) to (((Mana of (Attacked unit)) - 0.33* (Intelligence of (Attacking unit) (Include bonuses))
 
That trigger can be exploit with attacking stop

Use the damage detection system

Pick all units then do the action
Add to TRIGGER an event of PICKED UNIT TAKES DAMAGE

by using the add event to a trigger action
you can specfy the specfic unit takes damage event, then over there u can use the takes damage that genric unit event does not have
 
Status
Not open for further replies.
Back
Top