counters again..

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

counters again..

Post by linflas »

activate means increase.
deactivate means decrease.
but what is the best way to reset a counter ?
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post 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.
User avatar
THOM
Artisan
Posts: 198
Joined: Sat Feb 28, 2004 9:22 pm
Location: Cologne, Germany
Contact:

Post 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...
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

I believe you can also use the counter ref, or is that only to read a counters current value?
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post 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 !
Post Reply