Super Lag Problem Help!!

colinjames12

Member
Reaction score
0
Can someone please check out my map. I've already finished my map, the only problem I have is fixing the lag. The lag that i have in my map is a lag that piles up until you can't play the game anymore. I've checked almost all of my triggers but i haven't found any leaks. I tried to test the map without buying any items, using any triggered spells or attacking any of the creature who uses triggered spells except for the boss (the game requires you to defeat the boss that appears on the center of the map to get to the next level). I used whosyourdaddy cheat. But still the lag continues, so I found out it's not on any triggered spell that i use. I think it maybe on the spawning units or the countdown timers, but I'm not sure because I still can't find any leaks. Please, if someone could help me, please check out my map at epicwar.com. Search for Grand Chase PVP Match, the 8145.7 KB one. If someone could help me, I might reupload it because the lag made it suck. I have many triggers in it (I really hope someone will devote their time to check my triggers), but I know other maps that have way more triggers. I still don't know what's the problem with mine:(:(:(
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Thats called memory leaks and it happens when you do not remove locations or destroy unit groups and alike.
You should search for a "Memory leaks" turtorial, read it through, try to understand, and then you have to recreate all your triggers to eliminate the memory leaks.
Until then your map will stay unplayable.
 

vypur85

Hibernate
Reaction score
803
Normal leaks won't cause the map to be unplayable. Something must've gone off limit. I'm not sure what though. One example is too much dummies or creeps being created. Dead units stay on the map for some time before being removed. I'd suggest you to reduce their decay time or remove them after death. This is also true for special effects. They don't get removed immediately. Constant creation of sfx is not such a good idea.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Normal leaks won't cause the map to be unplayable. Something must've gone off limit. I'm not sure what though. One example is too much dummies or creeps being created. Dead units stay on the map for some time before being removed. I'd suggest you to reduce their decay time or remove them after death. This is also true for special effects. They don't get removed immediately. Constant creation of sfx is not such a good idea.

Normal leaks do, imagine a periodic event running every 0.01 seconds and creating 2 + locations each run.
That was the reason for me to learn about memory leaks many years ago, my map was lagging like crazy after about 10 minutes of play.
 

vypur85

Hibernate
Reaction score
803
Periodic leaks aren't normal anymore. But I checked the map, the person seems to have good knowledge about leaks and the method of removal. Besides, no abilities were used during his/her test and there isn't any (I think) periodic trigger for map initialisation and system... Maybe I missed something though... The amount of triggers in the map is just a headache. The amount of variables was high though but the array values were controlled. So I still don't understand why it would lag.
 

colinjames12

Member
Reaction score
0
Sorry for the headache, but I also think I'm missing something. I use many dummies when I cast some spells, but as I've said I didn't use any spells when I tested the map, nor I killed any enemy creature except for the boss. I also have many periodic triggers, but I'm sure I got rid of all the leaks on them. If you were to check my map again, just leave the custom spells and the creature spells folder at the trigger editor. About 2/3 of my triggers are triggered spells.
 

colinjames12

Member
Reaction score
0
This is my map initialization trigger



Melee Initialization
Events
Map initialization
Conditions
Actions
Sound - Set music volume to 0.00%
Player - Limit training of Heroes to 1 for Player 1 (Red)
Player - Limit training of Heroes to 1 for Player 2 (Blue)
Player - Limit training of Heroes to 1 for Player 3 (Teal)
Player - Limit training of Heroes to 1 for Player 4 (Purple)
Player - Limit training of Heroes to 1 for Player 5 (Yellow)
Player - Limit training of Heroes to 1 for Player 6 (Orange)
Player - Limit training of Heroes to 1 for Player 7 (Green)
Player - Limit training of Heroes to 1 for Player 8 (Pink)
Player - Limit training of Heroes to 1 for Player 9 (Gray)
Player - Limit training of Heroes to 1 for Player 10 (Light Blue)
Player - Make Player 1 (Red) treat Player 11 (Dark Green) as an Ally with shared vision
Player - Make Player 2 (Blue) treat Player 11 (Dark Green) as an Ally with shared vision
Player - Make Player 3 (Teal) treat Player 11 (Dark Green) as an Ally with shared vision
Player - Make Player 4 (Purple) treat Player 11 (Dark Green) as an Ally with shared vision
Player - Make Player 5 (Yellow) treat Player 11 (Dark Green) as an Ally with shared vision
Player - Make Player 6 (Orange) treat Player 12 (Brown) as an Ally with shared vision
Player - Make Player 7 (Green) treat Player 12 (Brown) as an Ally with shared vision
Player - Make Player 8 (Pink) treat Player 12 (Brown) as an Ally with shared vision
Player - Make Player 9 (Gray) treat Player 12 (Brown) as an Ally with shared vision
Player - Make Player 10 (Light Blue) treat Player 12 (Brown) as an Ally with shared vision
Set preplacedunits = (Units in Region 015 <gen>)
Unit Group - Pick every unit in preplacedunits and do (Unit - Remove (Picked unit) from the game)
Custom script: call DestroyGroup(udg_preplacedunits)
Set team1 = (All allies of Player 1 (Red))
Set team2 = (All allies of Player 6 (Orange))
Set int_height = 50
Set int_height_Copy = 35
Set axeangle = 0.00
Set Region2 = (Center of Region 002 <gen>)
Set Region7 = (Center of Region 007 <gen>)
Set Region8 = (Center of Region 008 <gen>)
Set Region25 = (Center of Region 025 <gen>)
Set Region35 = (Center of Region 035 <gen>)
Set Region36 = (Center of Region 036 <gen>)
Set Region37 = (Center of Region 037 <gen>)
Set Region38 = (Center of Region 038 <gen>)
Set Region39 = (Center of Region 039 <gen>)
Set Region40 = (Center of Region 040 <gen>)
Set Region29 = (Center of Region 029 <gen>)
Set Region31 = (Center of Region 031 <gen>)
Set Region34 = (Center of Region 034 <gen>)
Set Region41 = (Center of Region 041 <gen>)
Set Region42 = (Center of Region 042 <gen>)
Set Region43 = (Center of Region 043 <gen>)
Set Region66 = (Center of Region 066 <gen>)
Set Region66_Copy = (Center of Region 066 Copy <gen>)
Set Region66_Copy_2 = (Center of Region 066 Copy 2 <gen>)
Set Region66_Copy_3 = (Center of Region 066 Copy 3 <gen>)
Set Region66_Copy_4 = (Center of Region 066 Copy 4 <gen>)
Set Region66_Copy_5 = (Center of Region 066 Copy 5 <gen>)
Set Region66_Copy_6 = (Center of Region 066 Copy 6 <gen>)
Set Region66_Copy_7 = (Center of Region 066 Copy 7 <gen>)
Set Region66_Copy_8 = (Center of Region 066 Copy 8 <gen>)
Set Region66_Copy_9 = (Center of Region 066 Copy 9 <gen>)
Set Region66_Copy_10 = (Center of Region 066 Copy 10 <gen>)
Set Region66_Copy_11 = (Center of Region 066 Copy 11 <gen>)
Set Region66_Copy_12 = (Center of Region 066 Copy 12 <gen>)
Set Region66_Copy_13 = (Center of Region 066 Copy 13 <gen>)
Set portal1 = (Center of Region 048 <gen>)
Set portal2 = (Center of Region 049 <gen>)
Set portal3 = (Center of Region 049 Copy <gen>)
Set portal4 = (Center of Region 049 Copy 2 <gen>)
Set portal5 = (Center of Region 049 Copy 3 <gen>)
Set portal6 = (Center of Region 049 Copy 4 <gen>)
Set portal7 = (Center of Region 049 Copy 5 <gen>)
Set portal8 = (Center of Region 049 Copy 7 <gen>)
Set portal9 = (Center of Region 049 Copy 6 <gen>)
Set portal10 = (Center of Region 059 <gen>)
Set portal11 = (Center of Region 049 Copy 8 <gen>)
Set pentaclenumber = 0
Set pentaclenumber_Copy = 90
Set pentaclenumber_Copy_2 = 180
Set pentaclenumber_Copy_3 = 270
Set edgeangle = 0
Set edgeangle_Copy = 180
Set flyangle = 90
Set flyangle_Copy = 270
Set abyssangle = 135.00
Set abyssangle_Copy = 315.00
Set portalentrance = (Center of Region 060 <gen>)
Set unittype_yourbeartype = hiddendummy
Trigger - Turn off magic bolt Copy <gen>
Trigger - Turn off extinction knockback <gen>
Trigger - Turn off portal entrance enter <gen>
Trigger - Turn off portal exit <gen>
Trigger - Turn off abyss damage <gen>
Trigger - Turn off center of gravity suction <gen>
Trigger - Turn off center of gravity knockback <gen>
Trigger - Turn off summon mary Copy <gen>
Trigger - Turn off summon mary attack <gen>
Trigger - Turn off ley teleport attack knockback <gen>
Trigger - Turn off homing orb Copy <gen>
Trigger - Turn off uncertain air damage <gen>
Trigger - Turn off poison force effect Copy <gen>
Trigger - Turn off bite off knockback <gen>
Trigger - Turn off onrush rush <gen>
Trigger - Turn off rebound knockback <gen>
Trigger - Turn off fly away effect <gen>
Trigger - Turn off fly away knockback <gen>
Trigger - Turn off mortal impact suction <gen>
Trigger - Turn off adrenaline attack rush <gen>
Trigger - Turn off armor crasher knockback <gen>
Trigger - Turn off indomitable spirit knockback <gen>
Trigger - Turn off indomitable spirit suction <gen>
Trigger - Turn off crumbling mountain strike Copy <gen>
Trigger - Turn off iron fist Copy <gen>
Trigger - Turn off iron fist Copy Copy <gen>
Trigger - Turn off rapid fire push <gen>
Trigger - Turn off iron mountain assault Copy <gen>
Trigger - Turn off rapid fire Copy <gen>
Trigger - Turn off spin combination Copy <gen>
Trigger - Turn off ragna bolt Copy <gen>
Trigger - Turn off photo shot Copy <gen>
Trigger - Turn off energy ball Copy <gen>
Trigger - Turn off energy ball Copy Copy <gen>
Trigger - Turn off energy ball Copy Copy Copy <gen>
Trigger - Turn off little thanatos chaos fusion Copy <gen>
Trigger - Turn off knight master sword thrust Copy <gen>
Trigger - Turn off raccoon leaf spin Copy <gen>
Trigger - Turn off ariel sylph strike Copy <gen>
Trigger - Turn off little kazeaaze fireball Copy <gen>
Trigger - Turn off nerissa aqua tornado Copy <gen>
Trigger - Turn off Arena End Trigger <gen>
Trigger - Turn off Arena End Trigger Copy <gen>
Trigger - Turn off Arena Start Trigger <gen>
Trigger - Turn off sidtri fire rush Copy <gen>
Trigger - Turn off little kunji slash copy <gen>
Trigger - Turn off chaos fusion Copy <gen>
Trigger - Turn off axe spiral copy <gen>
Trigger - Turn off homing strike Copy <gen>
Trigger - Turn off camera miniboss giant <gen>
Trigger - Turn off descending burn Copy <gen>
Trigger - Turn off secret passage copy <gen>
Trigger - Turn off secret passage copy Copy 2 <gen>
Trigger - Turn off secret passage copy Copy 3 <gen>
Trigger - Turn off secret passage copy Copy 4 <gen>
Trigger - Turn off secret passage copy Copy <gen>
Trigger - Turn off secret passage 2 <gen>
Trigger - Turn off secret passage 2 Copy <gen>
Trigger - Turn off secret passage 2 Copy Copy <gen>
Trigger - Turn off secret passage 2 Copy Copy Copy <gen>
Trigger - Turn off secret passage 2 Copy Copy Copy Copy <gen>
Trigger - Turn off sor boss stage portals <gen>
Trigger - Turn off sor boss stage portals Copy 2 <gen>
Trigger - Turn off sor boss stage portals Copy <gen>
Trigger - Turn off shrine of ruins 1st stage <gen>
Trigger - Turn off shrine of ruins 1st stage finish <gen>
Trigger - Turn off sorportal gaikoz <gen>
Trigger - Turn off sorportal gardosen <gen>
Trigger - Turn off sorportal kamiki <gen>
Trigger - Turn off sorportal basilisks <gen>
Trigger - Turn off sorportal nemophila <gen>
Trigger - Turn off shrine of ruins 2nd finish <gen>
Trigger - Turn off shrine of ruins third finish <gen>
Trigger - Turn off shrine of ruins fourth finish <gen>
Trigger - Turn off furnace of hell <gen>
Trigger - Turn off furnace of hell Copy 2 <gen>
Trigger - Turn off furnace of hell Copy 3 <gen>
Trigger - Turn off furnace of hell Copy <gen>
Trigger - Turn off furnace of hell boss stage <gen>
Trigger - Turn off furnace of hell boss <gen>
Trigger - Turn off cyclone copy 2 <gen>
Trigger - Turn off cyclone copy <gen>
Trigger - Turn off confusion Copy <gen>
Trigger - Turn off kunji slash Copy <gen>
Trigger - Turn off kunji slash Copy Copy 2 <gen>
Trigger - Turn off kunji slash Copy Copy 3 <gen>
Trigger - Turn off kunji slash Copy Copy <gen>
Trigger - Turn off pushback <gen>
Trigger - Turn off dark emmision Copy <gen>
Trigger - Turn off blacksphere2 <gen>
Trigger - Turn off wft2 <gen>
Trigger - Turn off ice necklace Copy 2 <gen>
Trigger - Turn off ice necklace Copy 2 Copy <gen>
Trigger - Turn off ice necklace Copy 2 Copy Copy <gen>
Trigger - Turn off ice necklace Copy 2 Copy Copy Copy <gen>
Trigger - Turn off kerrie beach <gen>
Trigger - Turn off kerrie beach boss <gen>
Trigger - Turn off orc temple <gen>
Trigger - Turn off orc temple boss <gen>
Trigger - Turn off gorgos dungeon <gen>
Trigger - Turn off gorgos dungeon boss <gen>
Trigger - Turn off elven forest <gen>
Trigger - Turn off elven forest boss <gen>
Trigger - Turn off gorge of oath <gen>
Trigger - Turn off gorge of oath boss <gen>
Trigger - Turn off marsh of oblivion <gen>
Trigger - Turn off marsh of oblivion boss <gen>
Trigger - Turn off forsaken barrows <gen>
Trigger - Turn off forsaken barrows boss <gen>
Trigger - Turn off forgotten city <gen>
Trigger - Turn off forgotten city boss <gen>
Trigger - Turn off gaikoz castle <gen>
Trigger - Turn off gaikoz castle boss <gen>
Trigger - Turn off gaikoz castle miniboss <gen>
Trigger - Turn off partusay sea <gen>
Trigger - Turn off partusay sea boss <gen>
Trigger - Turn off kamiki castle <gen>
Trigger - Turn off kamiki castle boss <gen>
Trigger - Turn off temple of fire <gen>
Trigger - Turn off temple of fire boss <gen>
Trigger - Turn off hell bridge <gen>
Trigger - Turn off hell bridge boss <gen>
Trigger - Turn off kazeaaze castle <gen>
Trigger - Turn off kazeaaze castle boss <gen>
Trigger - Turn off kastulle ruins lower floor <gen>
Trigger - Turn off kastulle ruins lower floor boss <gen>
Trigger - Turn off kastulle ruins lower floor miniboss <gen>
Trigger - Turn off kastulle ruins upper floor boss <gen>
Trigger - Turn off kastulle ruins upper floor <gen>
Trigger - Turn off kastulle ruins upper floor miniboss <gen>
Trigger - Turn off bermesiah last stand <gen>
Trigger - Turn off bermesiah last stand miniboss <gen>
Trigger - Turn off bermesiah last stand boss <gen>
Trigger - Turn off bermesiah last stand miniboss 2 <gen>
Trigger - Turn off xenia frontier <gen>
Trigger - Turn off xenia frontier bozz <gen>
Trigger - Turn off xenia frontier bozz 2 <gen>
Trigger - Turn off miniboss 2nd form <gen>
Trigger - Turn off temple of origins boss <gen>
Trigger - Turn off temple of origins <gen>
Trigger - Turn off temple of origins miniboss <gen>
Trigger - Turn off mana valley <gen>
Trigger - Turn off mana valley boss <gen>
Trigger - Turn off mana valley miniboss <gen>
Trigger - Turn off ignis mountains <gen>
Trigger - Turn off ignis mountains boss <gen>
Trigger - Turn off altar of judgment boss <gen>
Trigger - Turn off altar of judgment miniboss <gen>
Trigger - Turn off altar of judgment <gen>
Trigger - Turn off shrine of entropy <gen>
Trigger - Turn off shrine of entropy boss <gen>
Trigger - Turn off shrine of entropy miniboss <gen>
Trigger - Turn off shrine of entropy secret crystal <gen>
Trigger - Turn off shrine of entropy secret crystal chamber 1 <gen>
Trigger - Turn off shrine of entropy secret crystal chamber 2 <gen>
Trigger - Turn off shrine of entropy secret crystal chamber 3 <gen>
Trigger - Turn off shrine of entropy secret crystal chamber 4 <gen>
Trigger - Turn off shrine of entropy secret crystal chamber 5 <gen>
Trigger - Turn off miniboss storm sisters <gen>
Trigger - Turn off forest of life branches <gen>
Trigger - Turn off forest of life boss <gen>
Trigger - Turn off forest of life miniboss <gen>
Trigger - Turn off forest of life <gen>
Trigger - Turn off fortress of ascension <gen>
Trigger - Turn off fortress of ascension boss <gen>
Trigger - Turn off fortress of ascension miniboss <gen>
Trigger - Turn off curse necklace copy Copy Copy <gen>
Trigger - Turn off curse necklace copy Copy <gen>
Trigger - Turn off curse necklace copy <gen>
Trigger - Turn off reverse gravity suction <gen>

And this is one of my spawning units and boss trigger

outer wall of serdin
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Set dungeongroup_Copy = (Units in Region 001 <gen> matching (((Unit-type of (Matching unit)) Equal to Goblin) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_2 = (Units in Region 004 <gen> matching (((Unit-type of (Matching unit)) Equal to Goblin) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_3 = (Units in Region 001 <gen> matching (((Unit-type of (Matching unit)) Equal to Stone Goblin) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_4 = (Units in Region 004 <gen> matching (((Unit-type of (Matching unit)) Equal to Stone Goblin) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_5 = (Units in Region 001 <gen> matching (((Unit-type of (Matching unit)) Equal to Orc) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_6 = (Units in Region 004 <gen> matching (((Unit-type of (Matching unit)) Equal to Orc) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy) Less than or equal to 3
Then - Actions
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_2) Less than or equal to 3
Then - Actions
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_3) Less than or equal to 2
Then - Actions
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_4) Less than or equal to 2
Then - Actions
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_5) Less than or equal to 1
Then - Actions
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Orc for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Orc for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_6) Less than or equal to 1
Then - Actions
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Orc for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Orc for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Else - Actions
Custom script: call DestroyGroup(udg_dungeongroup_Copy)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_2)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_3)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_4)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_5)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_6)






outer wall of serdin
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Set dungeongroup_Copy = (Units in Region 001 <gen> matching (((Unit-type of (Matching unit)) Equal to Goblin) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_2 = (Units in Region 004 <gen> matching (((Unit-type of (Matching unit)) Equal to Goblin) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_3 = (Units in Region 001 <gen> matching (((Unit-type of (Matching unit)) Equal to Stone Goblin) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_4 = (Units in Region 004 <gen> matching (((Unit-type of (Matching unit)) Equal to Stone Goblin) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_5 = (Units in Region 001 <gen> matching (((Unit-type of (Matching unit)) Equal to Orc) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
Set dungeongroup_Copy_6 = (Units in Region 004 <gen> matching (((Unit-type of (Matching unit)) Equal to Orc) and ((Owner of (Matching unit)) Equal to Neutral Hostile)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy) Less than or equal to 3
Then - Actions
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_2) Less than or equal to 3
Then - Actions
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_3) Less than or equal to 2
Then - Actions
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_4) Less than or equal to 2
Then - Actions
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Stone Goblin for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_5) Less than or equal to 1
Then - Actions
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Orc for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Set Region1 = (Random point in Region 001 <gen>)
Unit - Create 1 Orc for Neutral Hostile at Region1 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in dungeongroup_Copy_6) Less than or equal to 1
Then - Actions
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Orc for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Set Region4 = (Random point in Region 004 <gen>)
Unit - Create 1 Orc for Neutral Hostile at Region4 facing Default building facing degrees
Custom script: call RemoveLocation(udg_Region4)
Else - Actions
Custom script: call DestroyGroup(udg_dungeongroup_Copy)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_2)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_3)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_4)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_5)
Custom script: call DestroyGroup(udg_dungeongroup_Copy_6)


Sorry if it is really long, I hope someone could help me with this problem.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
My eyes died just from looking at that.

1). Post triggers between
Trigger:
tags to make them look like they do in the Trigger Editor.
2). You can turn triggers off initially by unchecking Initially On in the Trigger Editor, above the area where triggers are displayed.
3). Where you repeat the same actions several times, just put one instance of those actions into a For Each Integer loop.
 

colinjames12

Member
Reaction score
0
i'm not sure what's wrong in turning off triggers but i think it worked. the only lag i experience now is too much sfx lag and new skill and item lag. thank you very much for your help.
 

Inflicted

Currently inactive
Reaction score
63
I notice you have alot of triggers turning off other Triggers in your initiation trigger, why not have them initially turned off instead of disabling them? Same result without the functions.

Erm, pherhaps try starting that trigger on something like 2 seconds instead of Map Initialization.

I've encountered a similar problem with my maps, but it kinda fades away after a few seconds. If yours crashes or merely becomes uncontrollable, you might need to reduce those starting triggers. Try disable some and try; find the source of the lag. If its just mass functions on a single instance, merely spread them out over a larger amount of time.

If it's too much effects, well you need to reduce those. I'm sure players would rather have the game playable than looking good but laggy.
 

colinjames12

Member
Reaction score
0
forget what I said earlier, I tested it again today and played it normally,but still the lag problem persists. If anyone can help me, please help me solve my problem.
 

colinjames12

Member
Reaction score
0
these are some of my most important triggers that frequently runs in the game. can someone tell me if there are leaks in it.

Trigger:
  • ai command
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Set dungeongroup = (Units in (Entire map) owned by Neutral Hostile)
      • Unit Group - Pick every unit in dungeongroup and do (Actions)
        • Loop - Actions
          • Set neutralpoint = (Position of (Picked unit))
          • Set neutralpoint_Copy = (neutralpoint offset by (Random real number between 750.00 and 1000.00) towards (Random real number between 0.00 and 360.00) degrees)
          • Set dungeongroup_Copy_9 = (Units within 1000.00 of neutralpoint matching ((((Matching unit) belongs to an enemy of Neutral Hostile) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is An Ancient) Equal to False) and ((Owner of (Matching unit
          • Set dungeongroup_Copy_10 = (Units within 650.00 of neutralpoint matching ((((Matching unit) belongs to an enemy of Neutral Hostile) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is An Ancient) Equal to False) and ((Owner of (Matching unit)
          • Set dungeongroup_Copy_11 = (Units within 500.00 of neutralpoint matching ((((Matching unit) belongs to an enemy of Neutral Hostile) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is An Ancient) Equal to False) and ((Owner of (Matching unit)
          • Set dungeongroup_Copy_12 = (Units within 1000.00 of neutralpoint matching ((((Matching unit) belongs to an enemy of Neutral Hostile) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is An Ancient) Equal to False) and ((Owner of (Matching unit
          • Set dungeongroup_Copy_15 = (Units within 1500.00 of neutralpoint matching ((((Matching unit) belongs to an enemy of Neutral Hostile) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is An Ancient) Equal to False) and ((Owner of (Matching unit
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((Unit-type of (Picked unit)) Equal to Harpy) or (((Unit-type of (Picked unit)) Equal to Harpy Queen) or (((Unit-type of (Picked unit)) Equal to Paradom) or (((Unit-type of (Picked unit)) Equal to Harpy (Elven Forest)) or (((Unit-type of (Picked unit)) Equal to Harpy (Gorge of Oath)) or ((Unit-type of (Pick
                  • (Unit-type of (Picked unit)) Equal to Giant Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Violent Harpy
                  • (Unit-type of (Picked unit)) Equal to Vile Spectre
                  • (Unit-type of (Picked unit)) Equal to Vile Spectre (Devouring Enchant)
                  • (Unit-type of (Picked unit)) Equal to Destructive Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Aron
                  • (Unit-type of (Picked unit)) Equal to Lord Perseo
                  • (Unit-type of (Picked unit)) Equal to DK - Mark I
                  • (Unit-type of (Picked unit)) Equal to DK - Mark II
                  • (Unit-type of (Picked unit)) Equal to Dark Storm
                  • (Unit-type of (Picked unit)) Equal to Furious Storm
              • (Number of units in dungeongroup_Copy_10) Greater than or equal to 1
            • Then - Actions
              • Set neutraltarget = (Position of (Random unit from dungeongroup_Copy_10))
              • Unit - Order (Picked unit) to Undead Crypt Lord - Impale neutraltarget
              • Custom script: call RemoveLocation(udg_neutraltarget)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (((((((Unit-type of (Picked unit)) Equal to Orc Soldier) or ((Unit-type of (Picked unit)) Equal to Jin Kaze&#039;aaze (2nd Form))) or (((Unit-type of (Picked unit)) Equal to Partusay) or ((Unit-type of (Picked unit)) Equal to Orc Warrior))) or (((Unit-type of (Pic or ((((Unit-type of (Picked unit)) Equal to Harpy Queen) or ((Unit-type of (Picked unit)) Equal to Gardosen)) or (((Unit-type of (Picked unit)) Equal to Giant Drillmon) or (((Unit-type of (Picked unit)) Equal to Elizabeth) or (((Unit-type of (Picked unit)) Equal
                  • (Unit-type of (Picked unit)) Equal to Fire Golem
                  • (Unit-type of (Picked unit)) Equal to Cyclops
                  • (Unit-type of (Picked unit)) Equal to Paradom (Upper Floor)
                  • (Unit-type of (Picked unit)) Equal to Giant Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Violent Orc Warrior
                  • (Unit-type of (Picked unit)) Equal to Violent Orc Lord
                  • (Unit-type of (Picked unit)) Equal to Dark Anmon
                  • (Unit-type of (Picked unit)) Equal to Destructive Ice Golem
                  • (Unit-type of (Picked unit)) Equal to Destructive Fire Golem
                  • (Unit-type of (Picked unit)) Equal to Destructive Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (1)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (2)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (3)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (1)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (2)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (3)
                  • (Unit-type of (Picked unit)) Equal to Flame Basilisk
                  • (Unit-type of (Picked unit)) Equal to Frost Basilisk
                  • (Unit-type of (Picked unit)) Equal to Burning Iron Guard
                  • (Unit-type of (Picked unit)) Equal to Infernal King Fang
                  • (Unit-type of (Picked unit)) Equal to Hellstrom
                  • (Unit-type of (Picked unit)) Equal to Native Leader
                  • (Unit-type of (Picked unit)) Equal to Moss Monster
                  • (Unit-type of (Picked unit)) Equal to Octus
                  • (Unit-type of (Picked unit)) Equal to Spinemon
                  • (Unit-type of (Picked unit)) Equal to Vanessa
                  • (Unit-type of (Picked unit)) Equal to Samsara
                  • (Unit-type of (Picked unit)) Equal to Foul Swordsman
                  • (Unit-type of (Picked unit)) Equal to Vile Naga
                  • (Unit-type of (Picked unit)) Equal to Ashtaroth
                  • (Unit-type of (Picked unit)) Equal to Magmok
                  • (Unit-type of (Picked unit)) Equal to Iron Guard
                  • (Unit-type of (Picked unit)) Equal to Yamini
                  • (Unit-type of (Picked unit)) Equal to Ancient Giant
                  • (Unit-type of (Picked unit)) Equal to DK - Mark II
                  • (Unit-type of (Picked unit)) Equal to Wooden
                  • (Unit-type of (Picked unit)) Equal to Dark Storm
                  • (Unit-type of (Picked unit)) Equal to Furious Storm
                  • (Unit-type of (Picked unit)) Equal to Rukkha
                  • (Unit-type of (Picked unit)) Equal to Dark Hierophant
                  • (Unit-type of (Picked unit)) Equal to Evilis
                  • (Unit-type of (Picked unit)) Equal to Thanatos (Release Form)
                  • (Unit-type of (Picked unit)) Equal to Thanatos (True Form)
              • (Number of units in dungeongroup_Copy_11) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Orc Tauren Chieftain - War Stomp
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((((Unit-type of (Picked unit)) Equal to Ghost Blader) or (((Unit-type of (Picked unit)) Equal to Gaikoz) or ((Unit-type of (Picked unit)) Equal to Hungry Ghost))) or (((Unit-type of (Picked unit)) Equal to Red Gorgos) or (((Unit-type of (Picked unit)) Equal or ((((Unit-type of (Picked unit)) Equal to Gardosen) or ((Unit-type of (Picked unit)) Equal to Giant Drillmon)) or (((Unit-type of (Picked unit)) Equal to Orc Lord) or (((Unit-type of (Picked unit)) Equal to Basilisk) or ((Unit-type of (Picked unit)) Equal to P
                  • (Unit-type of (Picked unit)) Equal to Dark Gorgos
                  • (Unit-type of (Picked unit)) Equal to Kaze&#039;aaze (1st Form)
                  • (Unit-type of (Picked unit)) Equal to Cyclops
                  • (Unit-type of (Picked unit)) Equal to Paradom (Upper Floor)
                  • (Unit-type of (Picked unit)) Equal to Violent Orc Lord
                  • (Unit-type of (Picked unit)) Equal to Dark Anmon
                  • (Unit-type of (Picked unit)) Equal to Destructive Fire Golem
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (1)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (2)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (3)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (1)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (2)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (3)
                  • (Unit-type of (Picked unit)) Equal to Flame Basilisk
                  • (Unit-type of (Picked unit)) Equal to Frost Basilisk
                  • (Unit-type of (Picked unit)) Equal to Soulless Nemophila
                  • (Unit-type of (Picked unit)) Equal to Nemophila
                  • (Unit-type of (Picked unit)) Equal to Hellstrom
                  • (Unit-type of (Picked unit)) Equal to Infernal King Fang
                  • (Unit-type of (Picked unit)) Equal to Native Leader
                  • (Unit-type of (Picked unit)) Equal to Mutated Skeleton
                  • (Unit-type of (Picked unit)) Equal to Octus
                  • (Unit-type of (Picked unit)) Equal to Lenasien
                  • (Unit-type of (Picked unit)) Equal to Corrupt Ranger
                  • (Unit-type of (Picked unit)) Equal to Ashtaroth
                  • (Unit-type of (Picked unit)) Equal to Bultaros
                  • (Unit-type of (Picked unit)) Equal to Fytros
                  • (Unit-type of (Picked unit)) Equal to Wyrm Spawn
                  • (Unit-type of (Picked unit)) Equal to Starkiln
                  • (Unit-type of (Picked unit)) Equal to Ice Wyrm Spawn
                  • (Unit-type of (Picked unit)) Equal to IceFang
                  • (Unit-type of (Picked unit)) Equal to Endarion
                  • (Unit-type of (Picked unit)) Equal to Ancient Giant
                  • (Unit-type of (Picked unit)) Equal to Decoy
                  • (Unit-type of (Picked unit)) Equal to Poisonous Thorn Nunklemon
                  • (Unit-type of (Picked unit)) Equal to Dark Storm
                  • (Unit-type of (Picked unit)) Equal to Furious Storm
                  • (Unit-type of (Picked unit)) Equal to Gargoyle
                  • (Unit-type of (Picked unit)) Equal to Dark Hierophant
                  • (Unit-type of (Picked unit)) Equal to Thanatos (Control Form)
                  • (Unit-type of (Picked unit)) Equal to Thanatos (True Form)
              • (Number of units in dungeongroup_Copy_9) Greater than or equal to 1
            • Then - Actions
              • Set neutraltarget = (Position of (Random unit from dungeongroup_Copy_9))
              • Unit - Order (Picked unit) to Undead Dreadlord - Carrion Swarm neutraltarget
              • Custom script: call RemoveLocation(udg_neutraltarget)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (((((Unit-type of (Picked unit)) Equal to Gaikoz) or (((Unit-type of (Picked unit)) Equal to Armored Lobster) or ((Unit-type of (Picked unit)) Equal to Ghost Priest))) or (((Unit-type of (Picked unit)) Equal to Ghost Blader) or ((Unit-type of (Picked unit)) E or ((((Unit-type of (Picked unit)) Equal to Orc Lord) or ((Unit-type of (Picked unit)) Equal to Dark Anmon Guard)) or ((((Unit-type of (Picked unit)) Equal to Kamiki) or ((Unit-type of (Picked unit)) Equal to Orc Warrior)) or ((((Unit-type of (Picked unit)) Equa
                  • (Unit-type of (Picked unit)) Equal to Dark Gorgos
                  • (Unit-type of (Picked unit)) Equal to Dark Troll
                  • (Unit-type of (Picked unit)) Equal to Jin Kaze&#039;aaze (2nd Form)
                  • (Unit-type of (Picked unit)) Equal to Fire Golem
                  • (Unit-type of (Picked unit)) Equal to Cyclops
                  • (Unit-type of (Picked unit)) Equal to Paradom (Upper Floor)
                  • (Unit-type of (Picked unit)) Equal to Violent Drillmon
                  • (Unit-type of (Picked unit)) Equal to Violent Gorgon
                  • (Unit-type of (Picked unit)) Equal to Violent Orc Lord
                  • (Unit-type of (Picked unit)) Equal to Black Fairy Queen
                  • (Unit-type of (Picked unit)) Equal to Dark Anmon
                  • (Unit-type of (Picked unit)) Equal to Armored Cat
                  • (Unit-type of (Picked unit)) Equal to Destructive Ice Golem
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (1)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (2)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (3)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (1)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (2)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (3)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (1)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (2)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (3)
                  • (Unit-type of (Picked unit)) Equal to Nemophila
                  • (Unit-type of (Picked unit)) Equal to Soulless Nemophila
                  • (Unit-type of (Picked unit)) Equal to Burning Knight Spearman
                  • (Unit-type of (Picked unit)) Equal to Burning Iron Guard
                  • (Unit-type of (Picked unit)) Equal to Native Spearman
                  • (Unit-type of (Picked unit)) Equal to Mutated Skeleton
                  • (Unit-type of (Picked unit)) Equal to Moss Monster
                  • (Unit-type of (Picked unit)) Equal to Octus
                  • (Unit-type of (Picked unit)) Equal to Lenasien
                  • (Unit-type of (Picked unit)) Equal to Spinemon
                  • (Unit-type of (Picked unit)) Equal to Fanatic Leader
                  • (Unit-type of (Picked unit)) Equal to Vanessa
                  • (Unit-type of (Picked unit)) Equal to Vanessa (Wolf Form)
                  • (Unit-type of (Picked unit)) Equal to Corrupt Ranger
                  • (Unit-type of (Picked unit)) Equal to Foul Swordsman
                  • (Unit-type of (Picked unit)) Equal to Ashtaroth
                  • (Unit-type of (Picked unit)) Equal to Bultaros
                  • (Unit-type of (Picked unit)) Equal to Vile Naga
                  • (Unit-type of (Picked unit)) Equal to Wyrm Spawn
                  • (Unit-type of (Picked unit)) Equal to Magmok
                  • (Unit-type of (Picked unit)) Equal to Iron Guard
                  • (Unit-type of (Picked unit)) Equal to Starkiln
                  • (Unit-type of (Picked unit)) Equal to Ice Wyrm Spawn
                  • (Unit-type of (Picked unit)) Equal to IceFang
                  • (Unit-type of (Picked unit)) Equal to Aron
                  • (Unit-type of (Picked unit)) Equal to Yamini
                  • (Unit-type of (Picked unit)) Equal to Hideous Borer
                  • (Unit-type of (Picked unit)) Equal to Miston
                  • (Unit-type of (Picked unit)) Equal to Lord Perseo
                  • (Unit-type of (Picked unit)) Equal to DK - Mark I
                  • (Unit-type of (Picked unit)) Equal to Ancient Giant
                  • (Unit-type of (Picked unit)) Equal to DK - Mark II
                  • (Unit-type of (Picked unit)) Equal to Poisonous Thorn Nunklemon
                  • (Unit-type of (Picked unit)) Equal to Wooden
                  • (Unit-type of (Picked unit)) Equal to Furious Storm
                  • (Unit-type of (Picked unit)) Equal to Gargoyle
                  • (Unit-type of (Picked unit)) Equal to Sataniel&#039;s Warrior
              • (Number of units in dungeongroup_Copy_11) Greater than or equal to 1
            • Then - Actions
              • Set neutraltarget = (Position of (Random unit from dungeongroup_Copy_11))
              • Unit - Order (Picked unit) to Orc Tauren Chieftain - Shockwave neutraltarget
              • Custom script: call RemoveLocation(udg_neutraltarget)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((((Unit-type of (Picked unit)) Equal to Ghost Priest) or ((Unit-type of (Picked unit)) Equal to Gaikoz)) or (((Unit-type of (Picked unit)) Equal to Red Gorgos) or ((Unit-type of (Picked unit)) Equal to Gardosen))) or (((Unit-type of (Picked unit)) Equal to Elizabeth) or (((Unit-type of (Picked unit)) Equal to Troll) or (((Unit-type of (Picked unit)) Equal to Elena) or ((Unit-type of (Picked unit)) Equal to Dark Mage))))
                  • (Unit-type of (Picked unit)) Equal to Dark Troll
                  • (Unit-type of (Picked unit)) Equal to Dark Mage (Kaze&#039;aaze Castle)
                  • (Unit-type of (Picked unit)) Equal to Dark Gorgos
                  • (Unit-type of (Picked unit)) Equal to Kaze&#039;aaze (1st Form)
                  • (Unit-type of (Picked unit)) Equal to Jin Kaze&#039;aaze (2nd Form)
                  • (Unit-type of (Picked unit)) Equal to Black Fairy Queen
                  • (Unit-type of (Picked unit)) Equal to Dark Anmon
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (1)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (2)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (3)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (1)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (2)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (3)
                  • (Unit-type of (Picked unit)) Equal to Nemophila
                  • (Unit-type of (Picked unit)) Equal to Burning Acolyte
                  • (Unit-type of (Picked unit)) Equal to Soulless Nemophila
                  • (Unit-type of (Picked unit)) Equal to Infernal King Fang
                  • (Unit-type of (Picked unit)) Equal to Lenasien
                  • (Unit-type of (Picked unit)) Equal to Vanessa (Wolf Form)
                  • (Unit-type of (Picked unit)) Equal to Starkiln
                  • (Unit-type of (Picked unit)) Equal to Rukkha
                  • (Unit-type of (Picked unit)) Equal to Hera
                  • (Unit-type of (Picked unit)) Equal to Evilis
                  • (Unit-type of (Picked unit)) Equal to Thanatos (Control Form)
                  • (Unit-type of (Picked unit)) Equal to Thanatos (True Form)
              • (Number of units in dungeongroup_Copy_9) Greater than or equal to 1
            • Then - Actions
              • Set neutraltarget = (Position of (Random unit from dungeongroup_Copy_9))
              • Unit - Order (Picked unit) to Neutral Tinker - Cluster Rockets neutraltarget
              • Custom script: call RemoveLocation(udg_neutraltarget)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((Unit-type of (Picked unit)) Equal to Ghost Samurai) or ((Unit-type of (Picked unit)) Equal to Gaikoz)
                  • (Unit-type of (Picked unit)) Equal to Jin Kaze&#039;aaze (2nd Form)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (1)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (2)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (3)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (1)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (2)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (3)
                  • (Unit-type of (Picked unit)) Equal to Nemophila
                  • (Unit-type of (Picked unit)) Equal to Soulless Nemophila
                  • (Unit-type of (Picked unit)) Equal to Burning Knight Spearman
                  • (Unit-type of (Picked unit)) Equal to Hellstrom
                  • (Unit-type of (Picked unit)) Equal to Samsara
                  • (Unit-type of (Picked unit)) Equal to Endarion
                  • (Unit-type of (Picked unit)) Equal to DK - Mark I
                  • (Unit-type of (Picked unit)) Equal to Hera
                  • (Unit-type of (Picked unit)) Equal to Black Fairy Queen
                  • (Unit-type of (Picked unit)) Equal to Elena
              • (Number of units in dungeongroup_Copy_9) Greater than or equal to 1
            • Then - Actions
              • Set neutraltarget = (Position of (Random unit from dungeongroup_Copy_9))
              • Unit - Order (Picked unit) to Human Archmage - Blizzard neutraltarget
              • Custom script: call RemoveLocation(udg_neutraltarget)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Dark Mage
                  • (Unit-type of (Picked unit)) Equal to Elena
                  • (Unit-type of (Picked unit)) Equal to Lich
                  • (Unit-type of (Picked unit)) Equal to Lord Perseo
                  • (Unit-type of (Picked unit)) Equal to Thanatos (Release Form)
              • (Number of units in dungeongroup_Copy_10) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Orc Far Seer - Chain Lightning (Random unit from dungeongroup_Copy_10)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Pumpkin Head
              • (Number of units in dungeongroup_Copy_10) Greater than or equal to 1
            • Then - Actions
              • Wait 1.00 seconds
              • Unit - Set life of (Picked unit) to 0.00
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Partusay
                  • (Unit-type of (Picked unit)) Equal to Dark Mongban
                  • (Unit-type of (Picked unit)) Equal to Kamiki
                  • (Unit-type of (Picked unit)) Equal to Gardosen
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (1)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (2)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (3)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (1)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (2)
                  • (Unit-type of (Picked unit)) Equal to Spectral Gaikoz (3)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (1)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (2)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (3)
                  • (Unit-type of (Picked unit)) Equal to Jin Kaze&#039;aaze (2nd Form)
                  • (Unit-type of (Picked unit)) Equal to Giant Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Cyclops
                  • (Unit-type of (Picked unit)) Equal to Destructive Ice Golem
                  • (Unit-type of (Picked unit)) Equal to Destructive Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Samsara
                  • (Unit-type of (Picked unit)) Equal to Ashtaroth (Boss Stage)
                  • (Unit-type of (Picked unit)) Equal to Yamini
                  • (Unit-type of (Picked unit)) Equal to Ancient Giant
                  • (Unit-type of (Picked unit)) Equal to Rukkha
                  • (Unit-type of (Picked unit)) Equal to Dark Hierophant
                  • (Unit-type of (Picked unit)) Equal to Hera
                  • (Unit-type of (Picked unit)) Equal to Evilis
                  • (Unit-type of (Picked unit)) Equal to Thanatos (True Form)
              • (Number of units in dungeongroup_Copy_11) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Human Mountain King - Thunder Clap
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Giant Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Destructive Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Sataniel&#039;s Warrior
              • (Number of units in dungeongroup_Copy_11) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Orc Blademaster - Bladestorm
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Kamiki
                  • (Unit-type of (Picked unit)) Equal to Giant Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Destructive Stone Golem
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (1)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (2)
                  • (Unit-type of (Picked unit)) Equal to Wicked Kamiki (3)
                  • (Unit-type of (Picked unit)) Equal to Burning Acolyte
                  • (Unit-type of (Picked unit)) Equal to Vanessa (Wolf Form)
                  • (Unit-type of (Picked unit)) Equal to Yamini
                  • (Unit-type of (Picked unit)) Equal to Miston
              • (Number of units in dungeongroup_Copy_11) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Special Rexxar - Battle Roar
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Dark Anmon Scout
                  • (Unit-type of (Picked unit)) Equal to Elite Anmon Scout
                  • (Unit-type of (Picked unit)) Equal to Nemophila
                  • (Unit-type of (Picked unit)) Equal to Samsara
                  • (Unit-type of (Picked unit)) Equal to Bultaros
                  • (Unit-type of (Picked unit)) Equal to Aron
                  • (Unit-type of (Picked unit)) Equal to Fanatic Bomber
                  • (Unit-type of (Picked unit)) Equal to Dark Storm
                  • (Unit-type of (Picked unit)) Equal to Furious Storm
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of (Picked unit)) Not equal to Nemophila
                • Then - Actions
                  • Set neutraltarget = (Position of (Random unit from dungeongroup_Copy_12))
                  • Unit - Order (Picked unit) to Neutral Dark Ranger - Silence neutraltarget
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of (Picked unit)) Equal to Nemophila
                • Then - Actions
                  • Unit - Order (Picked unit) to Neutral Dark Ranger - Silence neutralpoint_Copy
                • Else - Actions
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Nemophila
                  • (Unit-type of (Picked unit)) Equal to Elena
                  • (Unit-type of (Picked unit)) Equal to Kamiki
                  • (Unit-type of (Picked unit)) Equal to Gardosen
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (1)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (2)
                  • (Unit-type of (Picked unit)) Equal to Demonic Gardosen (3)
                  • (Unit-type of (Picked unit)) Equal to Gardosen
                  • (Unit-type of (Picked unit)) Equal to Gardosen
                  • (Unit-type of (Picked unit)) Equal to Black Fairy Queen
                  • (Unit-type of (Picked unit)) Equal to Dark Storm
                  • (Unit-type of (Picked unit)) Equal to Dark Hierophant
                  • (Unit-type of (Picked unit)) Equal to Thanatos (Control Form)
                  • (Unit-type of (Picked unit)) Equal to Thanatos (True Form)
                  • (Unit-type of (Picked unit)) Equal to Hellstrom
              • (Number of units in dungeongroup_Copy_15) Greater than or equal to 1
            • Then - Actions
              • Set neutraltarget = (Position of (Random unit from dungeongroup_Copy_15))
              • Unit - Order (Picked unit) to Night Elf Warden - Blink neutraltarget
              • Custom script: call RemoveLocation(udg_neutraltarget)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Nemophila
                  • (Unit-type of (Picked unit)) Equal to Soulless Nemophila
                  • (Unit-type of (Picked unit)) Equal to Lord Perseo
                  • (Unit-type of (Picked unit)) Equal to DK - Mark I
                  • (Unit-type of (Picked unit)) Equal to DK - Mark II
                  • (Unit-type of (Picked unit)) Equal to Dark Hierophant
                  • (Unit-type of (Picked unit)) Equal to Hera
                  • (Unit-type of (Picked unit)) Equal to Thanatos (Release Form)
                  • (Unit-type of (Picked unit)) Equal to Thanatos (True Form)
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Human Priest - Inner Fire (Random unit from dungeongroup_Copy_12)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Nemophila
                  • (Unit-type of (Picked unit)) Equal to Lord Perseo
                  • (Unit-type of (Picked unit)) Equal to Evilis
                  • (Unit-type of (Picked unit)) Equal to Thanatos (True Form)
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Orc Far Seer - Feral Spirit
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Fanatic Leader
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Orc Shadow Hunter - Healing Wave (Random unit from dungeongroup_Copy_12)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Cursed Cairn Stones
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Night Elf Demon Hunter - Mana Burn (Random unit from dungeongroup_Copy_12)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Fanatic Leader
                  • (Unit-type of (Picked unit)) Equal to Dark Storm
                  • (Unit-type of (Picked unit)) Equal to Furious Storm
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Human Paladin - Resurrection
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Lord Perseo
              • (Number of units in dungeongroup_Copy_15) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Undead Death Knight - Death Pact (Random unit from dungeongroup_Copy_12)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Starkiln
                  • (Unit-type of (Picked unit)) Equal to Yamini
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Orc Troll Berserker - Berserk
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Wooden
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Night Elf Keeper Of The Grove - Tranquility
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Thanatos (Release Form)
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
            • Then - Actions
              • Unit - Order (Picked unit) to Night Elf Priestess Of The Moon - Starfall
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Gargoyle
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 0
              • (Integer((Life of (Picked unit)))) Less than or equal to 8000
            • Then - Actions
              • Unit - Order (Picked unit) to Undead Gargoyle - Stone Form
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Vile Spectre
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 0
              • (Integer((Life of (Picked unit)))) Less than or equal to 500
            • Then - Actions
              • Unit - Order (Picked unit) to Undead Gargoyle - Stone Form
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Stone Form Gargoyle
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
              • (Integer((Life of (Picked unit)))) Greater than or equal to 8000
            • Then - Actions
              • Unit - Order (Picked unit) to Undead Gargoyle - Gargoyle Form
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Stone Form Gargoyle (Hero Dungeon)
              • (Number of units in dungeongroup_Copy_12) Greater than or equal to 1
              • (Integer((Life of (Picked unit)))) Greater than or equal to 500
            • Then - Actions
              • Unit - Order (Picked unit) to Undead Gargoyle - Gargoyle Form
            • Else - Actions
          • Custom script: call RemoveLocation(udg_neutraltarget)
          • Custom script: call RemoveLocation(udg_neutralpoint)
          • Custom script: call RemoveLocation(udg_neutralpoint_Copy)
          • Custom script: call DestroyGroup(udg_dungeongroup_Copy_9)
          • Custom script: call DestroyGroup(udg_dungeongroup_Copy_10)
          • Custom script: call DestroyGroup(udg_dungeongroup_Copy_11)
          • Custom script: call DestroyGroup(udg_dungeongroup_Copy_12)
          • Custom script: call DestroyGroup(udg_dungeongroup_Copy_15)
      • Custom script: call DestroyGroup(udg_dungeongroup)
 

colinjames12

Member
Reaction score
0
i'm sorry but the other trigger is too long to post. I just wanna ask if quest messages and multiboards can produce lag. i only have 2 variables in that too long post.
 

colinjames12

Member
Reaction score
0
can anybody help me please? you can test the map if you want to help. Search Grand Chase PVP Match the one with the bigger file size. Please help!!!
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Just look how many conditions are in that trigger. It is pretty understandable that it lags.
You should really try to minimize the amount of conditions.

For example, all those "Or" conditions with unit types, just give every unit type a distinctive point value or other value you can retrieve with the editor, then just check for the right value.
 

Inflicted

Currently inactive
Reaction score
63
My god, my eyes o.o

Bro, if the other trigger is even longer, I think we have found the problem.

Try minimize the conditions, eg add the units into a Unit Group or give them all a Classification (eg Ancient or Mechanical). Those can be checked, rather than having the huge amounts of triggers.


I did notice this:
Trigger:
  • Section of your trigger..
    • Wait 1.00 seconds
    • Unit - Set life of (Picked unit) to 0.00

Which might be a problem.
 
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