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.
How to display the value of a counter on a wall ?
Moderator: George Gilbert
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
How to display the value of a counter on a wall ?
"You can be on the right track and still get hit by a train!" Alfred E. Neuman
- 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 ?
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...
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...
- 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 ?
Always check the Wiki first, there's quite a lot of stuff in there...
- 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 ?
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.
Re: How to display the value of a counter on a wall ?
Thanks. I was not aware of RTC Substitution Strings.Gambit37 wrote:http://dmwiki.atomas.com/wiki/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
Sustitution strings example.
Here is a tiny example dungeon about substitution strings in wall text, floor text , scroll.
Compass and Altimeter included.
http://twinfalls.free.fr/dejavu/Walltext.RTC
http://twinfalls.free.fr/dejavu/Walltext.txt
Compass and Altimeter included.
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