How to display the value of a counter on a wall ?

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
terkio
Mon Master
Posts: 937
Joined: Tue Jul 10, 2012 8:24 pm

How to display the value of a counter on a wall ?

Post by terkio »

I wonder how it is done.
I saw this in RTC "Girth of life". At a place with a green button, a wall text that displays 0, a blue button.
When clicking on the green button, the wall text value increments. ( the blue, decrements ).
One can go far positive or far negative.
With RTC it is easy to have a counter do that, but I do not see how to display it's updated value as wall text.
"You can be on the right track and still get hit by a train!" Alfred E. Neuman
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: How to display the value of a counter on a wall ?

Post by Gambit37 »

User avatar
Seriously Unserious
Master Superior
Posts: 1418
Joined: Sun May 11, 2008 11:53 am
Location: Wandering around aimlessly in Lynchgate Woods
Contact:

Re: How to display the value of a counter on a wall ?

Post by Seriously Unserious »

I'm guessing that the wall test has a game variable tied into it, much like the %PARTY_LEADER% variable I'm using in my current WIP. I'd like to know if anyone's made a list of all the game variables that can be accessed in any sort of speech, scroll, floor test or wall text messages, as I could use this info in myself.

EDIT: hey Gambit, that's exactly what I'm looking for. I guess we ended up double posting... shades of the Christmas story thread from a couple of months ago... :lol:
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: How to display the value of a counter on a wall ?

Post by Gambit37 »

Always check the Wiki first, there's quite a lot of stuff in there... :-)
User avatar
Seriously Unserious
Master Superior
Posts: 1418
Joined: Sun May 11, 2008 11:53 am
Location: Wandering around aimlessly in Lynchgate Woods
Contact:

Re: How to display the value of a counter on a wall ?

Post by Seriously Unserious »

I guess I'm just not in the habit of looking there. I'll bookmark it's home page, that way I'll be more likely to look in it for answers to my questions before posting them here.
User avatar
terkio
Mon Master
Posts: 937
Joined: Tue Jul 10, 2012 8:24 pm

Re: How to display the value of a counter on a wall ?

Post by terkio »

Thanks. I was not aware of RTC Substitution Strings.
it works perfect.
%VALUE:ref000302-1%
as text in my WALL TEXT with ref000303-1 the ID of my counter.
"You can be on the right track and still get hit by a train!" Alfred E. Neuman
User avatar
terkio
Mon Master
Posts: 937
Joined: Tue Jul 10, 2012 8:24 pm

Sustitution strings example.

Post by terkio »

Here is a tiny example dungeon about substitution strings in wall text, floor text , scroll.
Compass and Altimeter included. :wink:

http://twinfalls.free.fr/dejavu/Walltext.RTC
http://twinfalls.free.fr/dejavu/Walltext.txt
"You can be on the right track and still get hit by a train!" Alfred E. Neuman
Post Reply