Hi! My map's triggers stopped working for some odd reason! None of them work at all. My map is entirely GUI-based save for a few custom scripts to minimize memory leaks. It does not have many variables. Some arrays are quite large up to 500+ in size, but I'm pretty sure they're nowhere near the limit of 8192(?).
Recently I added a new trigger. It's meant to "detect" and replace all attacks. Whenever a unit attacks another, I give it the ability "Channel" instead and order it to do it, so that I can entirely do up attacks in the form of triggers. This is what I have:
Events
Unit - A unit Is attacked
Conditions
Actions
Unit - Pause (Attacking unit)
Unit - Unpause (Attacking unit)
Unit - Add Channel (Attack) to (Attacking unit)
Unit - Order (Attacking unit) to Special Malganis - Soul Preservation (Attacked unit)
My map also uses many other triggered spells with a rather complicated triggered spell engine (at least for GUI-based maps) but absolutely nothing I know of can actually cause ALL my triggers to stop working, not just newly done triggers. Previously all my triggered spells ran flawlessly.
I tried to fix it on my own. I lowered a newly created array size of 2000+ to 500+, then viola! All triggers functioned normally again. This is quite puzzling as 2000+ is nowhere near the limit either but never mind. Then I made a few edits here and there and my triggers stopped working again! This time I have no idea where to even start fixing it.
Even the simplest debug trigger like this will not work:
Untitled Trigger 003
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Game - Display to (All players) the text: hi
Does anyone out there know of anything that I may have done that can result in some catastrophic failure of all my triggers?
Recently I added a new trigger. It's meant to "detect" and replace all attacks. Whenever a unit attacks another, I give it the ability "Channel" instead and order it to do it, so that I can entirely do up attacks in the form of triggers. This is what I have:
Events
Unit - A unit Is attacked
Conditions
Actions
Unit - Pause (Attacking unit)
Unit - Unpause (Attacking unit)
Unit - Add Channel (Attack) to (Attacking unit)
Unit - Order (Attacking unit) to Special Malganis - Soul Preservation (Attacked unit)
My map also uses many other triggered spells with a rather complicated triggered spell engine (at least for GUI-based maps) but absolutely nothing I know of can actually cause ALL my triggers to stop working, not just newly done triggers. Previously all my triggered spells ran flawlessly.
I tried to fix it on my own. I lowered a newly created array size of 2000+ to 500+, then viola! All triggers functioned normally again. This is quite puzzling as 2000+ is nowhere near the limit either but never mind. Then I made a few edits here and there and my triggers stopped working again! This time I have no idea where to even start fixing it.
Even the simplest debug trigger like this will not work:
Untitled Trigger 003
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Game - Display to (All players) the text: hi
Does anyone out there know of anything that I may have done that can result in some catastrophic failure of all my triggers?