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

Critical passive Spell Request

Status
Not open for further replies.
Level 3
Joined
Dec 29, 2008
Messages
22
i want to request critical base on stat
lvl1 x4 of agi chance 15%
lvl2 x6 of agi chance 15%
lvl3 x8 of agi chance 15%

thats all thnx:thumbs_up:
 
1. Create a trigger,
with one variable :

(Variable name)(Variable Type)
RandomChance (Integer)

Events :
a unit is attacked

Create the condition :

When --> level of (ability AgilityStrike) for the (attacking Unit) is greater than 0

Action :
(Using the Set Variable = _____ Action)
Set (Variable RandomChance) = Random number between 1 to 100
(Using the If/Then/Else Multiple Function Action)
If
The level of Agility strike is Equals to 1 and (Variable RandomChance is Less than or Equals to 15
Then
Make (Attacking unit) to Damage (Attacked unit) by (Arithematic - Agility of attacking unit x 4) of attack type (Normal or whatever is your choice)
Else
If
The level of Agility strike is Equals to 2 and (Variable RandomChance is Less than or Equals to 15
Then
Make (Attacking unit) to Damage (Attacked unit) by (Arithematic - Agility of attacking unit x 6) of attack type (Normal or whatever is your choice)
Else
If
The level of Agility strike is Equals to 3 and (Variable RandomChance is Less than or Equals to 15
Then
Make (Attacking unit) to Damage (Attacked unit) by (Arithematic - Agility of attacking unit x 8) of attack type (Normal or whatever is your choice)
Else
 
ah by the way, The ability (AgilityStrike), leave it an evasion ability with 0% evasion, and 3 levels, so you can learn it, but it does nothing, the triggers do its work,change its icon and name and whatsoever tooltips and description

i expect you to do it yourself, to learn some intresting things in triggers.

anyway, if you want it to look like critical strikes (with red values) , try using the Floating text action,with font colour 255,0,0 and if you want animation and sound for it, use the play unit animation action, and use the Play- 3D <Sound> on unit action in triggers, have fun.
 
off-topic:
yes, you can say that rep points is nothing, etc. people in here encourage that everyone can help each other, and yes, people here respect when someone is trying to help. BUT there are rules in here, and even for such a good intention of helping other, the rules still in existence. so
If someone sees my -Rep's reason, they will laugh you out for sure.
-Rep, "For helping someone"
yes they will laugh, but they will laugh at you. why? because you earned it for such a simple matter. ok? ^^
 
Status
Not open for further replies.
Back
Top