ssod

<mod> Tag

The <mod> tag allows a paragraph to apply a stat change to the player. This can represent things like healing, skill boosts, receiving gold, or losing stamina. The effect only happens once — unless the repeatable option is used.

Syntax

<mod [repeatable] stat value>
<mod [repeatable] stat value flag flagname>

Supported Stats

Also:

Behaviour

Examples

<mod stm 5>                     — Gives the player 5 stamina.
<mod exp 20>                    — Gives the player 20 XP.
<mod repeatable gold -10>      — Takes 10 gold every time they visit.
<mod exp 10 flag saw_intro>    — Adds 10 XP only if the player hasn’t seen this flag before.
<mod skl reg1>                 — Sets skill equal to register 1.
<mod stm flag old_stm>         — Sets stamina to value stored in flag 'old_stm' (if numeric).

Use this tag to reward or penalise the player based on their journey while preventing exploits or repeated triggering.