<sneaktest>
TagThe <sneaktest>
tag is used to simulate a sneak-based skill test against an opponent or rival. This is especially useful for scenarios where stealth, pickpocketing, or evasion are involved.
This is a PvP-style mechanic — the sneak comparison is not against a fixed number but assumes a roll for the opposing party too.
<sneaktest name="Guard" sneak=5>
name
: Displayed name of the opponent.sneak
: Sneak skill level of the opponent.You try to sneak past the castle guard.
<sneaktest name="Castle Guard" sneak=4>
Will result in something like:
**Castle Guard** *Sneak 4*, **PASS!**
or
**Castle Guard** *Sneak 4*, **FAIL!**
p.auto_test
which may be used by following <if>
blocks to branch the narrative.<if>
logic to branch outcomes based on success or failure.The <sneaktest>
tag should always be followed by two <AUTOLINK>
tags:
<AUTOLINK>
will be shown only if the sneak test succeeds.<AUTOLINK>
will be shown only if the sneak test fails.Only one of these links will be enabled based on the test result. This enables clear branching based on the player’s stealth success.