If a WALLITEM_COUNTER is set to TOGGLE (rather than ACTIVATE or DEACTIVATE), it will trigger is target as soon as something triggers it at all, not when the count hits 0.
Also, if a WALLITEM_ALCOVE is in the same square as a counter, the counter will be triggered any time something is put into the alcove (even if the alcove has no targets), which will cause the counter to fire off prematurely.
Bugs with Counters
Moderator: George Gilbert
Forum rules
Please read the Forum rules and policies before posting. You may
to help finance the hosting costs of this forum.
Please read the Forum rules and policies before posting. You may

- Gambit37
- Should eat more pies
- Posts: 13769
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Re: Bugs with Counters
Yep, I've reported the problems with alcoves before, and it's due to the inherent nature of how RTC handles mouse-clicks in the dungeon view.
I get the impression that George has changed some quite fundamental aspects of the engine in v0.22, so hopefully these problems have been fixed. Here's some of the threads that refer to these problems:
<a href="http://pub50.ezboard.com/freturntochaos ... 8.topic</a>
<a href="http://pub50.ezboard.com/freturntochaos ... 1.topic</a>
<a href="http://pub50.ezboard.com/freturntochaos ... 2.topic</a>
I get the impression that George has changed some quite fundamental aspects of the engine in v0.22, so hopefully these problems have been fixed. Here's some of the threads that refer to these problems:
<a href="http://pub50.ezboard.com/freturntochaos ... 8.topic</a>
<a href="http://pub50.ezboard.com/freturntochaos ... 1.topic</a>
<a href="http://pub50.ezboard.com/freturntochaos ... 2.topic</a>
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
Re: Bugs with Counters
Yes, I've changed quite a few things; however, the first part (to do with TOGGLE) is behaving exactly as intended.
When a counter changes it's value it sees if it's zero or not. If it is zero, then it performs the action, if it isn't (either has a positive, or negative, value) then it performs the inverse of the action. The inverse of ACTIVATE is DEACTIVATE (i.e. one followed by the other gets you back to where you started) and vice versa for DEACTIVATE.
The inverse of TOGGLE is however TOGGLE (i.e. if you do one followed by another then you get back to where you were). So yes, whenever you have a counter with an action of TOGGLE, then it will always toggle whenever you change it's state...
Changing it's state when you put something in an alcove - that's a bug though!
When a counter changes it's value it sees if it's zero or not. If it is zero, then it performs the action, if it isn't (either has a positive, or negative, value) then it performs the inverse of the action. The inverse of ACTIVATE is DEACTIVATE (i.e. one followed by the other gets you back to where you started) and vice versa for DEACTIVATE.
The inverse of TOGGLE is however TOGGLE (i.e. if you do one followed by another then you get back to where you were). So yes, whenever you have a counter with an action of TOGGLE, then it will always toggle whenever you change it's state...
Changing it's state when you put something in an alcove - that's a bug though!
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact: