Using the Text Processor to display the value of a Counter

I want to display the value of a counter using the text processor.

The text processor info page says:

{object.attribute}
Displays the value of an object’s attribute. A great example of this is where the player can set the name of the main character, you can use {player.alias} as a stand-in for the character’s name.

By using show library elements I've noticed that the script for set function says:

Set object: expression: game
Attribute: Counter
Value: Value

So does that mean to display the value of a counter I type:

{game.counter}

The problem with this is that it doesn't point to a specific counter. Let's say I've created a counter and called it points, how can I edit this text processor (code?) to point towards points?

I know very very little about code, and the tutorial did not elaborate much on this sort of thing, the other documents didn't contain a lot of easily comprehendible information either. It would be super awesome to have a list of all the script options and expressions with a description of what they do and how to use them in lay mans terms. The intro page claimed that it would be 'easy to learn', the tutorial was easy enough, but the jump from tutorial to other functions seems to be not very comprehensively defined (at least for people with no understanding of code).

Seems this program has a lot of potential though so I will persevere.


Is this a text adventure or a game book?

Text adventure: Your pointscounter will be attached to something, either the game object or the player, probable. If it is the game, just do this:

You have {game.points} points.

If it is the player, do this:

You have {player.points} points.

Game book: Use the counter text processor command:

You have {counter:points} points.

I'm using gamebook. The text processor page did mention this actually, I must have overlooked it.

Thanks!


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums