- Joined
- May 24, 2009
- Messages
- 55
A simple method of controlling passive abilities(critical. etc) to an extent that even
buffs/items can contribute to the chance that a critical strike would score.
Based on the switch method (on/off).
1. Create a Critical strike ability with (2) levels:
Level 1 - 0% chance critical strike
Level 2 - 100% chance critical strike
2. Equip a unit you want to have this controlled critical.
(In this case i'm putting it into a hero unit)
3. Determine the amount of chance you want for the critical.
(I'm going for a 30 out of a 100, probably 30%)
3. Create a trigger to generate the random chance to score the critical strike.
it will set RANDOM as an integer between 1 and 100, and whenever RANDOM
is equal to 30 or lower, Critical ability will be increased to 2,
which is 100% chance to score a critical.
Don't worry about resetting the Critical back to 0% as when the hero makes
the next attack, if it doesn't get RANDOM to 30 or less,
the Critical ability will be automatically set at level 1,
which is 0% to score critical.
Implementation
-Can be used with bash (you can make units with certain conditions cannot be bashed).
-Can be used with Evasion.
-Can be used with Magic Reflect / Magic resistance.
-Can be controlled by buffs.
-Buffs can increase RANDOM integer or straight gives you 100% chance
to score critical strikes for 15 seconds.
buffs/items can contribute to the chance that a critical strike would score.
Based on the switch method (on/off).
1. Create a Critical strike ability with (2) levels:
Level 1 - 0% chance critical strike
Level 2 - 100% chance critical strike
2. Equip a unit you want to have this controlled critical.
(In this case i'm putting it into a hero unit)
3. Determine the amount of chance you want for the critical.
(I'm going for a 30 out of a 100, probably 30%)
3. Create a trigger to generate the random chance to score the critical strike.
- Critical
-
Events
- Unit - A unit is attacked
-
Conditions
- ((Attacking unit) is a Hero) equal to True
-
Actions
- Set RANDOM = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- 30 Greater than or equal to RANDOM
-
Then - Actions
- Unit - Set level of Critical Strike for attacking unit to 2
-
Else - Actions
- Unit - Set level of Critical Strike for attacking unit to 1
-
If - Conditions
it will set RANDOM as an integer between 1 and 100, and whenever RANDOM
is equal to 30 or lower, Critical ability will be increased to 2,
which is 100% chance to score a critical.
Don't worry about resetting the Critical back to 0% as when the hero makes
the next attack, if it doesn't get RANDOM to 30 or less,
the Critical ability will be automatically set at level 1,
which is 0% to score critical.
Implementation
-Can be used with bash (you can make units with certain conditions cannot be bashed).
-Can be used with Evasion.
-Can be used with Magic Reflect / Magic resistance.
-Can be controlled by buffs.
-Buffs can increase RANDOM integer or straight gives you 100% chance
to score critical strikes for 15 seconds.
Attachments
Last edited: