For some reason; even though it doesn't happen every single time -- It seems as though when incredibly big numbers are recorded for use on floating text; they break. Only displaying a measly 9 or 10 damage (as opposed to 1,000 damage, or 900 damage)
The if/and/else part is to mimic critical strike on an effect that wouldn't normally duplicate critical strike (If you're familiar with DotA; Stifling Dagger from Phantom Assassin and Coup De Grace)
Regardless; the important part is the strange issue I keep getting when the spell actually crits. It seems to ONLY happen when the spell crits. I'm beginning to think that I'm using convert integer to real incorrectly or something of the sort.
-
HDS Calculated Shot Effect
-
Events
- Game - damageEventTrigger becomes Equal to 0.00
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (target has buff [Dummy] Calculated Shot (Non-stacking)) Equal to True
- (target has buff [Dummy] Calculated Shot (Stacking)) Equal to True
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Trigger - Turn off (This trigger)
- Set HDS_CalculatedShotPoint[1] = (Position of source)
- Set HDS_CalculatedShotPoint[2] = (Position of target)
- Set TempReal = ((Distance between HDS_CalculatedShotPoint[1] and HDS_CalculatedShotPoint[2]) x (0.15 x (Real((Level of Calculated Shot (Dwarven Sharpshooter, Level 0) for source)))))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Headshot (Dwarven Sharpshooter) for source) Greater than 0
- (Random integer number between 1 and 100) Less than or equal to 5
-
Then - Actions
- Set TempReal = (TempReal x (5.00 x (Real((Level of Headshot (Dwarven Sharpshooter) for source)))))
- Else - Actions
-
If - Conditions
- Set TempInteger = (Integer(TempReal))
- Unit - Cause source to damage target, dealing TempReal damage of attack type Pierce and damage type Normal
- Floating Text - Create floating text that reads ((String(TempInteger)) + !) above target 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 1.50 seconds
- Floating Text - Change the fading age of (Last created floating text) to 0.75 seconds
- Unit - Remove [Dummy] Calculated Shot (Non-stacking) buff from target
- Unit - Remove [Dummy] Calculated Shot (Stacking) buff from target
- Trigger - Turn on (This trigger)
-
Events
Regardless; the important part is the strange issue I keep getting when the spell actually crits. It seems to ONLY happen when the spell crits. I'm beginning to think that I'm using convert integer to real incorrectly or something of the sort.