Game Crashing

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?
 

Varine

And as the moon rises, we shall prepare for war
Reaction score
808
Did you already make the unit group?
 
L

lordredhawk

Guest
Im not the best at reading triggers, but if it were more obvious (and not so many smokeys) I could make more sense of it.

One thing you may want to try is to change it from every .25 seconds to a little longer.

Maybe your game is crashing because it's trying to do so much so fast :)

Just a thought.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top