Warcraft III resources & community, 2003–2006 · archived

Trigger related bug

5 posts
#1

Trigger related bug

Second attempt:



Hey, i was digging up an older map of mine, age of summoners, downloadable from this site.

I have optimised some of the triggers, fixed some here and there, but i keep running into one and the same problem over and over.

When the game starts all is well, everything runs like it should, and all triggers work well.
But later on in the game, after a while, when there are more units ingame, more triggers already fired, and more variables stored, some triggers stop running.
Per example, when a hero dies, i triggered a nice death message telling you whom died, who killed and howmuch bounty was given. At start it works, but somewhere along the line it just stops showing up, for a to me unknown reason.

I can remember reading something about memory leaks earlier, and was thinking this might have something to do with it... does it?
#2
Maybe you need to clear your variables after their use is done
#3
as in setting their values to 0 or 'no unit' and such? or is there a way to destroy variables?
#4
You can destroy triggers, but not variables. But yes, setting them to no unit, or to use the variable within seconds to prevent multi-instance problems could work out
#5
alright, i'll destroy some triggers and stuff and such then. and reset all variables, let's see if i can get it to work properly..