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

%Chance to do something

Status
Not open for further replies.
Level 3
Joined
May 28, 2007
Messages
57
First create a passive ability example like bash just change all the % and that to 0 and damage to 0, Second create a dummy unit any unit with the abilities Locust and invurnrable and remove it's shadow and model, third for the trigger
  • Event - A unit Is attacked
  • Condition - ((Attacking unit) belongs to an ally of Player 1 (Red)) Equal to True
  • Action - If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Random integer number between 1 and 100) Equal to <Whateva the % you want it to be example 20% the number would be 20>
    • Then - Actions
      • Unit - Create 1 <Whatever you dummy unit is> for <your attacking unit> at <whereva your unit is> facing Default building facing degrees
      • Unit - Order <dummy unit> to Human Blood Mage - Banish (Attacked unit)
    • Else - Actions
This is a very easy way to do in GUI without any variables but this will leak as it stands.

Edit sorry about that!
 
Last edited:
Level 3
Joined
May 28, 2007
Messages
57
Yeah Donut if you do use the orb you will have to order the unit to attack it it will not work if auto acquired and yes you are correct i did forget to put that in.
 
Status
Not open for further replies.
Top