A question about COUNTERS

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. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13769
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

A question about COUNTERS

Post by Gambit37 »

What happens to counters when they reach the specified count?
Do they reset back to 0?
Can they be activated to start counting again?
If not, can counters be reset somehow?

I've had some cool ideas for a puzzle, but I can't see how to do it without resetting counters...
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Re: A question about COUNTERS

Post by George Gilbert »

Counters can't be specifically reset. They have a count value that is decremented / incremented by activating / deactivating them respectively. They only retain their current state rather than their starting state. When they change value to zero they do the thing they're set to do, when they change value to a non-zero value they do the opposite.

You could however implement a reset by having a seperate trigger that deactivates the counter several times?
User avatar
Gambit37
Should eat more pies
Posts: 13769
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: A question about COUNTERS

Post by Gambit37 »

Thanks for the info. COUNTERS obviously work completely differently than I expected! I thought they would start at 0 and count to the value specified, then perform their action.

Is there anyway way of determining the current value of a counter? Is it possible to make some kind of 'dump' of the internals of RTC at any given time? This would really aid dungeon debugging...
User avatar
chiefy
Big chief
Posts: 101
Joined: Thu Feb 27, 2003 12:50 am
Location: MIDDLESEX
Contact:

x,y,z read out

Post by chiefy »

Gambit yeah I know how you feel
but if George hasn't done enough already, here we are asking for more

I have often wished that pressing F10 would display the x,y,z coordinates of your tile while you're "in" your compiled dungeon (play testing it) but I'm really happy to be able to "edit" at all so I'll leave my F9, F8 and F7 ideas for another day :wink:
from your old mate
c h i e f y
global chiefy to yer old seadog maties
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Re: A question about COUNTERS

Post by copperman »

George Gilbert wrote:You could however implement a reset by having a separate trigger that deactivates the counter several times?
I tried employing this as a work around using a wall switch to cycle through a bunch of wall texts then on the last text click reset the counters with the correct number of deactivates.

Firstly I noticed that counters keep counting even when there trigger value has been reached. Secondly that they can become negative. Then I noticed it was hard to keep an accurate account of clicks to deactivates after the cycle had gone over. I appeared to be racing the deactivates.

So I BUM-PITY BUMP this 16 month old question with the request for the counter reset. ;)
Don't be scene or herd!
Post Reply