Page 1 of 1
counters again..
Posted: Tue Feb 20, 2007 6:02 pm
by linflas
activate means increase.
deactivate means decrease.
but what is the best way to reset a counter ?
Posted: Tue Feb 20, 2007 6:11 pm
by George Gilbert
There's an ACTION that can give a counter a specific value. Simply activate an ACTION object that has the counter set action (have a look the coin counter in the advanced example dungeon which does exactly this).
BTW, there's no way to *reset* a counter, just *set* it to a specific value. Counters have no "memory" of what values they used to have.
Posted: Tue Feb 20, 2007 7:20 pm
by THOM
additional note:
If you activate the action-tile COUNTER_SET all counters in the whole dungeon will be set to your value.
If you just want one specific counter to be set you have to make a Clone and give it a unique name like COUNTER_COINTRAP or whatever...
Posted: Tue Feb 20, 2007 8:05 pm
by beowuuf
I believe you can also use the counter ref, or is that only to read a counters current value?
Posted: Wed Feb 21, 2007 1:38 pm
by linflas
works fine, i just remembered that 0 is the value that triggers the counter, not the count value... activate means decrease in fact !