finding a better trigger.

Started by inktrebuchet, December 24, 2016, 04:08:01 PM

Previous topic - Next topic

inktrebuchet

I hate asking for help but I've been messing with this code all week and can't seem to find a trigger that's reliable. Any Help would be appreciated.

What I want it to do is just add 1 to var(29) if a round is won. I thought that would be simple enough but every once an awhile it will add more than expected. From what I can tell it's caused by the partners winning state. Any ideas on a trigger that would help limit this to just adding 1 universally?

[state 33333336, X]
type = parentvaradd
trigger1 = win && roundstate = 4 && partner, time = 1 && partner, teamside = 1
v = 29
value = 1

Niitris

I assume it only needs to be done once, use persistent = 0

inktrebuchet

That did the trick, wasn't a trigger at all! Thanks for the quick reply!