Skip to main content
Game commands affect gameplay state, trigger systems, and control the game world.
These function signatures are based on analysis of the game’s files. Some behaviors and parameter descriptions are inferred and may not be fully accurate. Furthermore, the game is in Early Access and may change over time.

Battle Commands

start_battle

Initiates a battle encounter.
<<start_battle 1001>>
ParameterTypeDescription
idintBattle configuration ID

start_predefined_battle

Starts a predefined battle configuration.
<<start_predefined_battle 1001>>
ParameterTypeDescription
idintPredefined battle ID

start_level

Starts a game level.
<<start_level 1>>
<<start_level 1 true>>
ParameterTypeDefaultDescription
idintrequiredLevel ID
isPlotbooltrueWhether this is a plot level

pause_battle / resume_battle

Pauses or resumes the current battle.
<<pause_battle>>
<<resume_battle>>

Event Commands

add_event_trigger

Adds a trigger for an event.
<<add_event_trigger "NodeName" "EventName">>
<<add_event_trigger "NodeName" "EventName" "arg1" "arg2">>
ParameterTypeDefaultDescription
nodestringrequiredNode to trigger
eventNamestringrequiredEvent identifier
arg1string""Optional argument
arg2string""Optional argument

event_end

Ends the current event and returns control to gameplay.
<<event_end>>
Always call event_end at the end of your dialogue to properly close the event.

event_cancel

Cancels the current event without completing it.
<<event_cancel>>

clear_all_event

Clears all active events.
<<clear_all_event>>

Character Management

add_character

Adds a character to the player’s party.
<<add_character 1003>>
ParameterTypeDescription
idintCharacter ID
Known Character IDs:
IDCharacter
1000Protagonist
1001Lilith (莉莉丝)
1002Karen (卡莲)
1003Sartre (夏特露)
1004Fouco (弗子)
1005Green (格林)

remove_character

Removes a character from the party.
<<remove_character 1003>>
ParameterTypeDescription
idintCharacter ID

heal_charactor

Heals a character by a percentage.
<<heal_charactor 1002 0.5>>
ParameterTypeDescription
idintCharacter ID
pfloatHeal percentage (0.5 = 50%)
Note the spelling: heal_charactor (not “character”).

injure_charactor

Damages a character by a percentage.
<<injure_charactor 1002 0.25>>
ParameterTypeDescription
idintCharacter ID
pfloatDamage percentage

Items and Currency

change_item

Adds or removes items from inventory.
<<change_item 2007 9 true>>
<<change_item 2008 -1 true>>
<<change_item 1001 2 false>>
ParameterTypeDefaultDescription
idintrequiredItem ID
numintrequiredQuantity (negative to remove)
showbooltrueShow notification

set_item

Sets item quantity directly.
<<set_item 2007 5>>
ParameterTypeDescription
idintItem ID
numintNew quantity

change_gold

Modifies the player’s gold.
<<change_gold 100>>
<<change_gold -50>>
ParameterTypeDescription
valueintGold change (positive or negative)

change_affection

Changes affection level with a character.
<<change_affection 1001 10 true>>
<<change_affection 1002 -10 true>>
ParameterTypeDefaultDescription
idintrequiredCharacter ID
valueintrequiredAffection change
showbooltrueShow notification

change_reputation

Changes player reputation.
<<change_reputation 15 true>>
<<change_reputation -7 true>>
ParameterTypeDefaultDescription
valueintrequiredReputation change
showbooltrueShow notification

Attributes

change_attribute

Changes a player attribute.
<<change_attribute Strength 5 true>>
<<change_attribute Willpower -3 true>>
ParameterTypeDefaultDescription
namestringrequiredAttribute name
valueintrequiredChange amount
showbooltrueShow notification

increase_attribute

Increases an attribute (alias for positive change).
<<increase_attribute DEX 2 true>>
ParameterTypeDefaultDescription
namestringrequiredAttribute name
valueintrequiredIncrease amount
showbooltrueShow notification

add_exp

Adds experience to a character.
<<add_exp 1002 100>>
ParameterTypeDescription
characterIDintCharacter ID
valueintExperience points

Time Management

next_day

Advances to the next day.
<<next_day>>

next_period

Advances to the next time period.
<<next_period>>
<<next_period true>>
ParameterTypeDefaultDescription
skipEventTriggerCheckboolfalseSkip event triggers

jump_to_period

Jumps to a specific day and period.
<<jump_to_period 5 "Morning">>
ParameterTypeDescription
dayintTarget day
periodstringPeriod name

UI Commands

open_view

Opens a game UI view.
<<open_view GuildView>>
<<open_view MapView arg>>
ParameterTypeDefaultDescription
namestringrequiredView identifier
argstringnullOptional argument

open_view_overlay

Opens a view as an overlay.
<<open_view_overlay MapView>>
ParameterTypeDefaultDescription
namestringrequiredView identifier
argstringnullOptional argument

close_view

Closes a UI view.
<<close_view GuildView>>
ParameterTypeDescription
namestringView to close

close_all_view

Closes all open views.
<<close_all_view>>

set_style

Changes the dialogue box style.
<<set_style "bubble">>
<<set_style "normal">>
<<set_style center>>
ParameterTypeDescription
stylestringStyle identifier (bubble, normal, center)

toast

Shows a toast notification.
<<toast "Message">>
ParameterTypeDefaultDescription
valuestringrequiredMessage to display
argsStrstring""Optional arguments

Audio Commands

set_bgm

Changes the background music.
<<set_bgm "music_name">>
<<set_bgm "music_name" 0.5 0.5>>
<<set_bgm "">>
ParameterTypeDefaultDescription
namestringrequiredMusic track name (empty to stop)
fadeOutTimefloat0Fade out duration
fadeInTimefloat0Fade in duration

play_sound_effect

Plays a sound effect.
<<play_sound_effect "sound_name">>
ParameterTypeDescription
namestringSound effect name

Location Commands

set_current_place

Sets the current map location.
<<set_current_place 9>>
ParameterTypeDescription
placeIDintLocation ID

set_available_place

Sets available map locations.
<<set_available_place "1,2,3,9">>
ParameterTypeDescription
placesstringComma-separated place IDs

set_available_mapEvent

Sets available map events.
<<set_available_mapEvent "10001,10002">>
ParameterTypeDescription
mapEventsstringComma-separated event IDs

Miscellaneous

set_player_name

Sets the player’s name.
<<set_player_name "Hero">>
ParameterTypeDescription
namestringPlayer name

save_game

Saves the game at a specific node.
<<save_game "NodeName">>
ParameterTypeDescription
nodeNamestringSave point identifier

return_to_main_view

Returns to the main game view.
<<return_to_main_view>>

line_show / line_hide

Shows or hides the dialogue line.
<<line_show>>
<<line_hide>>

set_auto_advance

Enables or disables auto-advance.
<<set_auto_advance true>>
<<set_auto_advance false>>
ParameterTypeDescription
validboolEnable auto-advance

wait_input

Waits for player input.
<<wait_input>>

wait_time_anim

Waits for time animation to complete.
<<wait_time_anim>>

Common Patterns

Quest Completion

<<change_gold 500>>
<<change_item 10050 1 true>>
<<change_affection 1002 20>>
<<event_end>>

Shop Transaction

<<if get_gold() >= 100>>
    <<change_gold -100>>
    <<change_item 10001 1>>
    Shopkeeper: Here you go!
<<else>>
    Shopkeeper: You don't have enough gold.
<<endif>>

Time Progression

<<next_period>>
<<set_bgm "music_evening">>

Scene End

<<char_remove "Lilith">>
<<event_end>>