- Joined
- Sep 17, 2004
- Messages
- 278
Here I am, again with more questions!
1) How do I make it so it's a 15% chance to critical strike via random numbers? [Answered!]
2) How do I show how much damage she deals with a critical strike instead of "0.000!"?
3) Is there a way to get rid of all the decimals?
Thank you!
P.S. Yes, I've tried the spellbook trick, but it shifts the abilities around if she has all the buttons full. And I don't like that, so I'm doing a trigger-based crit strike.
-
Fury StanceCrit
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacking unit)) Equal to Therista (Fury Stance)
- ((Attacked unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True
-
Actions
- Trigger - Add to (This trigger) the event (Unit - (Attacked unit) Takes damage)
- Set CritChance = (Random integer number between 1 and 10)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- CritChance Equal to 5
-
Then - Actions
- Set TheristaDamage = (2.00 x (Damage taken))
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing TheristaDamage damage of attack type Hero and damage type Normal
- Floating Text - Create floating text that reads ((String(TheristaDamage, 0, 2)) + !) above (Attacking unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
- Else - Actions
-
If - Conditions
-
Events
1) How do I make it so it's a 15% chance to critical strike via random numbers? [Answered!]
2) How do I show how much damage she deals with a critical strike instead of "0.000!"?
3) Is there a way to get rid of all the decimals?
Thank you!
P.S. Yes, I've tried the spellbook trick, but it shifts the abilities around if she has all the buttons full. And I don't like that, so I'm doing a trigger-based crit strike.
Last edited: