Hey guys,
something weird happens in my map: I have an event in a script block calling a trigger, but apparently that trigger gets executed several times… as I m very sure there s no mistake in the script (see below) and also that event only gets called from another scriptblock (not by a misled trigger with some life of its own) i m a bit at a loss. Well… it won’t matter in the game with the wm_announces removed, but it still isn’t as clean as it should be.
Here comes the relevant script part:
bm // some constructible
{
built final
{
setstate bm default
setstate bmmat invisible
wm_announce "Axis built the Mechanism!"
trigger bm bmbuilt // calls the bmbuilt after X secs
}
trigger bmbuilt
{
wm_announce "^1bmbuilt called"
wait 5000
trigger gwinner constructed
trigger eventone eventoneon
}
}
eventone
{
trigger eventoneon
{
setstate triggeronce default //sets a trigger_once default, no diff when its _multiple with -1
wm_announce "^1-- trigger one visible --"
wm_announce "blablabla"
}
trigger triggerevent
{
wm_announce "^1-- triggerevent one visible --"
trigger eventtwo eventtwoon // calls eventtwoon in other scriptblock
}
}
So what happens is that the “trigger eventoneon” apparently gets executed 5 times which you can see in the game.
Funnily enough the “trigger gwinner constructed” initiates his block only once in the other part of the script, while both get started in the same bm block…
Any suggestions? Is this harmful? Thx for help though!
(And for the nitpickers: yea those scripts are not complete… i deleted the stuff that s not touched by the problem.)