• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Custom script:Destroy Trigger?

Status
Not open for further replies.
Level 4
Joined
May 14, 2013
Messages
48
I am trying to destroy a trigger to see if it clears the catch on multiple added events to allow a map to exit quickly instead of a 2-10 minute delay when trying to quit. does anyone know the custom script to destroy a trigger in GUI.

i am aware there are many workarounds to these kinds of trigger problems but i have already exhausted all other options none are ideal thank you.
 
Level 4
Joined
May 14, 2013
Messages
48
amazing thank you so much! i will post later to show my results to see if this will work to clear the catch of all the added events i hope it works.

this 100% works

i added 40,000 events to a trigger over 5 minutes time. this normally would take about 3 or 4 minutes to exit map without clearing.

i destroyed the trigger then quit and in about 3 seconds i was at my desktop thank you so much for this fix ive been battling this problem in a million different ways.
 
Last edited by a moderator:
naa try this. Im betting it wont cause any lag.
  • Untitled Trigger 001
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set termpInt2 = (termpInt2 + 1)
      • Game - Display to (All players) the text: (String(termpInt2))
      • For each (Integer tempInt) from 1 to 500, do (Actions)
        • Loop - Actions
          • Custom script: call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_001, null)
@TO
i let this go to 1k which means 500000 events have been added. and still it only took about 5 seconds to exit from the map.
 
Status
Not open for further replies.
Top