Scoring

How do I make a condition where after carrying out an action, the score is displayed.

Try this:

[code]A banana is here.

After taking the banana:
if the player carries the banana for the first time:
increase the score by 3;
continue the action;
otherwise:
continue the action.[/code]
Inform will automatically mention that the points have been awarded. And the total score appears by default in the status bar.

It’s best to use a carry out rule here rather than an after rule, since carry out rules are “considered” rather than “abided by”, so it won’t stop the action prematurely. Also, the built in handled property, which is set when something is taken for the first time, comes in handy here.

[code]“Test”

The Testing Room is A Room. A banana is in the testing room.

Carry out taking the banana:
if the banana is not handled, increase the score by 3.

Test me with “take banana / drop banana / take banana”.[/code]

Hope this helps.

Quick question on this subject if I may ?

When using the command…

say "A hollow voice whispers in your ear 'All is now not as solid as it first seems'."; increase the score by 2;
The game works as expected but shows…

[Your score has just gone up by two points.]

…is it possible to stop the score notification ?

It sure is. Try this.

say "A hollow voice whispers in your ear 'All is now not as solid as it first seems'."; increase the score by 2; consider the fix baseline scoring rule;

The fix baseline scoring rule is a standard rule that will set the last notified score to the same value as the score. You only get a score notification when the last notified score and the score are different.

Hope this helps.

Perfect!!!

Many thanks for your help on this.

Cheers.