BRUTAL
I'm working
- Reaction score
- 118
Code:
SmokeSCTwo
Events
Time - Every 0.25 seconds of game time
Conditions
SmokeSCBoolean Equal to True
Actions
Set SmokeSCTimer = (SmokeSTimer + 0.25)
Set SmokeSCDamageUg = (Units within 250.00 of SmokeSCDummyPos)
Unit Group - Pick every unit in SmokeSCDamageUg and do (Actions)
Loop - Actions
Set SmokeSCDamage = ((50.00 x (Real((Level of Smoke/Smokeycut for SmokeSCaster)))) + ((1.50 + (0.50 x (Real((Level of Smoke/Smokeycut for SmokeSCaster))))) x (Real((Agility of SmokeSCaster (Include bonuses))))))
Unit - Create 1 Dummy for (Owner of SmokeSCCaster) at SmokeSCDummyPos facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Cause (Last created unit) to damage (Picked unit), dealing SmokeSDamage damage of attack type Spells and damage type Normal
Floating Text - Create floating text that reads (String((Integer(SmokeSCDamage)))) above (Picked unit) with Z offset -200.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 65.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 3.25 seconds
Custom script: call DestroyGroup (udg_SmokeSCDamageUg)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
SmokeSTimer Equal to 5.00
Then - Actions
Set SmokeSCBoolean = False
Else - Actions
whats making warcraft crash in this?