Skip to content
Type a keyword to search.
This page was translated with machine assistance. The Simplified Chinese version is the authoritative reference.
Game version 1.3.1

Common Story Commands

Write commands as COMMAND*arguments, separating arguments with #. Replace the demo_ IDs, instance numbers and coordinates in the examples with valid values from your mod or current save. Use complete IDs returned by the relevant search commands for values such as event_instance and application_id.

The 27 extension commands added in 1.3.0 share a result convention: [%result_code%] is 1 on success or 0 on failure. An empty search or an operation that changes nothing can still succeed, so also check the count, ID or change status described by its entry. Other commands use the results described in their own entries.

When one of these extension commands fails, [%arg_str_val2%] contains an error code; the other string results are empty and integer results are 0. Unused fields on success are also empty or 0. NO_WORLD means the world is not ready, BUSY means loading or another state blocks the action, INVALID_ARGUMENT means invalid input, and NOT_FOUND means a missing target. See each entry for its conditions and returned fields.

Preserve a result in a custom variable before running another command that overwrites it. For example:

FIND_CAMP_TASK_INSTANCE*demo_task
SETSTRVAR*demo.task#[%arg_str_val1%]
ACCEPT_CAMP_TASK_INSTANCE*[%str_val:demo.task%]

Use SETSTRVAR for strings and SETINTVAR for integers. IDs are trimmed; string contents follow each entry’s rules. Argument values cannot contain the separator # or line breaks. Changes to game state persist through normal saving; commands do not trigger a disk save. Session-only values such as item handles must be obtained again after loading.

Common Story Commands ...

Loading command data...