Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Counting things?

$
0
0
I wasn't really sure what else I could set the title to, so... Yeah.

My question has to do with counting things. Specifically, I want a counter to go up whenever the player enters certain passages, and when the counter reaches a certain number, those passages will display a secret message. To give you a better idea of what I want, I'll tell you what exactly I'll do with it.

My game has some stupid options, so I decided to make a game of those options. If you are as stupid as possible, clicking all of the stupid links, you will get a message the next time you're stupid saying "Walnut' earned!" Walnut being the name of an achievement in the game. I'm having problems getting the whole "(count: (history:)" thing to work, so I decided I would just make a counter go up when you visited the stupid pages, and when the counter is high enough, the message pops up. However, I have no clue how to do this. Here's a sort of model depicting what I want to happen.

A thing happened! You...
Be logical
Be logical
Be stupid (Hint: The player chooses this one)

You died. That was pretty stupid of you. (The game tells you when you made a stupid choice so you know if you're making progress on the achievement.)
[An invisible counter goes from 0 to 1]


Another thing happened! You...
Be logical
Be logical
Be stupid (Again, the player picks this one)

You died. You're pretty stupid.
[An invisible counter goes from 1 to 2]
[The game realizes the counter is at the point where the message should pop up, so the next time the player is stupid...]


You died. Wow, you're stupid.
"Walnut" earned!



This is getting long, so TL;DR: How can I make a counter go up when the player picks certain options, and when the counter is high enough, a message appears on one of those options?

Viewing all articles
Browse latest Browse all 1844

Trending Articles