ssod

<effect> Tag Documentation

The <effect> tag in The Seven Spells of Destruction is used to apply an environmental or status effect to the player, triggered from within paragraph content.


Syntax

<effect EffectName>

Description

When encountered in paragraph content, the <effect> tag causes a named passive effect to be triggered for the current player. These effects are defined in the passive_effects database table and must be pre-configured.


Behaviour


Passive Effect Mechanics

Each passive effect includes:

Each script is written in server-side JavaScript (ES5-style), and the engine provides various bindings for interacting with the player’s state.


Timing


Use Cases

This tag is used to simulate:


Example

<effect VenomPoison>

This might apply a poison effect to the player, reducing stamina over time and preventing combat healing for several turns.


Notes