Trigger errors..

Hadezown

TH.net Regular
Reaction score
5
Can somone tell me if there's any potential for this to crash wc3 anytime?

Code:
Actions
    Wait (Random real number between 0.01 and 0.40) seconds
    For each (Integer AI_Integer1) from 1 to 8, do (Actions)
        Loop - Actions
            Set AI_numroll = (Random integer number between 1 and 2)
            Wait (Random real number between 0.01 and 0.80) seconds
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    AI_numroll Equal to 1
                Then - Actions
                    Set AA_UnitGroup = (Units in (Playable map area) matching (((Matching unit) belongs to an enemy of (Player(AI_Integer1))) Equal to True))
                    Set AA_Point = (Position of (Random unit from AA_UnitGroup))
                    Unit - Order Player_Hero[AI_Integer1] to Orc Tauren Chieftain - Shockwave AA_Point
                    Custom script:   call RemoveLocation(udg_AA_Point)
                    Custom script:   call DestroyGroup(udg_AA_UnitGroup)
                Else - Actions
                    Set AA_UnitGroup = (Units in (Playable map area) matching (((Matching unit) belongs to an enemy of (Player(AI_Integer1))) Equal to True))
                    Set AA_Point = (Position of (Random unit from AA_UnitGroup))
                    Unit - Order Player_Hero[AI_Integer1] to Human Archmage - Blizzard AA_Point
                    Custom script:   call RemoveLocation(udg_AA_Point)
                    Custom script:   call DestroyGroup(udg_AA_UnitGroup)

There is no consistent time in which the game crashes so i duno really what causes it
 

T3rm1nat0r

New Member
Reaction score
23
Nope it won't, unless the maybe the event or condition does, which i doubt, does it do a trigger error?
 

Hadezown

TH.net Regular
Reaction score
5
oh the event is: Every 0.9 seconds of gametime.
and ur sure it doesnt leak at all?
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
just so you know all this waits make your trigger run even before you finished the last run so i suggest you to try and give it more time on the event
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top