Table des matières

Language / Langue : FR | EN

Custom actions (.txt format)

Custom actions add freely named commands to your scenario. The player then types actionname target.

Declaration

An action goes either in the exit list of a room (local action) or after the last * (global action):

action:target|condition(s)|effect|OK text|KO text

The player then types open door, combine herb, and so on.

The all target

With all, the command accepts any target. The variable action_cible holds what the player typed, and action_cible_ok holds the last valid target. These names stay in French: they are reserved variables of the engine.

inspect:all|null|null|You look closely at «action_cible».|Nothing of interest here.

Priority and multiple conditions

Full example

open:chest|key|null|You open the chest with the key!|You need a key.
open:chest|null|null|The chest is locked.|null
break:all|null|null|You strike «action_cible» with all your strength!|null