• 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.

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))
 
Level 15
Joined
Aug 14, 2007
Messages
936
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.
Top