Action counter for each floor.

[code]“Six-Shooter” by Chin Kee Yong

The Saloon is a room. “The patrons are grinning. It’s double or nothing. Time to show the guys how much whiskey a real man can take.”

The bottle of whiskey is in the Saloon. “Here’s the bottle you ordered.” The description is “Strong stuff, and make no mistake.”

Instead of dropping the bottle of whiskey, say “No dice. You have to go all the way.”

The bottle of whiskey has a number called the sips taken.

Instead of drinking the bottle of whiskey (this is the whiskey drinking rule):
increment the sips taken of the bottle of whiskey;
if the sips taken of the bottle of whiskey is:
– 1:
say “You pop off the cap and take a swig. That’s one.”;
– 2:
say “And that’s two.”;
– 3:
say “Three for the count.”;
– 4:
say “Four for the road.”;
– 5:
say “Number five for the valley.”;
– 6:
say “And number six for the Devil.”;
– 7:
say “Seven swigs it is, and what do you know? The bottle’s bone dry. You slam it on the table to general applause.”;
now the bottle of whiskey is nowhere; [This removes the bottle from play until you put it somewhere in the game world again.]
end the story saying “Looks like you won the bet after all”.[/code]

@chinkeeyong, your a genius :slight_smile: I Try to wirte a counter with the following specs…
If your in a Room with a person , the counter should increment the action counter for each command. After 10 commands or so the game should end.
If the player went out of the room and enter again ,the counter should restart from 0.

I try it like : A Room has a number called action count.
Every turn when the player can see a person:
increment the action count of the location;

Its not workin, the documentation is not very helpfull, i cant find anything about it.

[code]The anxiety counter is a number that varies.

Last every turn (this is the anxiety daemon rule):
if a person other than the player is in the location:
increment the anxiety counter;
if the anxiety counter is:
– 1:
say “You feel a bit nervous being around someone.”;
– 4:
say “You’re starting to feel very nervous indeed.”;
– 7:
say “Your social anxiety is beginning to be crippling!”;
– 9:
say “Gah! Why can’t they just leave you alone!”;
– 10:
say “Oh dear. Your social anxiety has entirely overtaken your higher brain functions.”;
end the story saying “You have died of embarrassment”;
otherwise if the anxiety counter is not 0:
now the anxiety counter is 0;
say “Whew! You feel much better without other people around.”[/code]