Game Re‐Usable Variables - Dungeons-of-Kathallion/Bane-Of-Wargs GitHub Wiki
Introduction
When creating utilities items, you'll have the possibility to ask the game for variables. You can only ask for yaml data variables or the player' save variable. Here's the table of which variables you can use and what they correspond to.
Variables Table
Variable | What's Inside |
---|---|
player |
All the player' save data. So basically, the player stats. |
map |
The yaml data of the vanilla/plugin 'map.yaml' file |
item |
The yaml data of the vanilla/plugin 'items.yaml' file |
drinks |
The yaml data of the vanilla/plugin 'drinks.yaml' file |
enemy |
The yaml data of the vanilla/plugin 'enemies.yaml' file |
npcs |
The yaml data of the vanilla/plugin 'npcs.yaml' file |
start_player |
The yaml data of the vanilla/plugin 'start.yaml' file |
lists |
The yaml data of the vanilla/plugin 'lists.yaml' file |
zone |
The yaml data of the vanilla/plugin 'zone.yaml' file |
dialog |
The yaml data of the vanilla/plugin 'dialog.yaml' file |
mission |
The yaml data of the vanilla/plugin 'mission.yaml' file |
mounts |
The yaml data of the vanilla/plugin 'mounts.yaml' file |
start_time |
The time of when the game has start. Useful if your utility script take time to do stuff and you want to remove that long time from the elapsed time in game |
generic_text_replacements |
The dictionary that contains the text replacements that can be used anywhere |
preferences |
The preferences data of the player |
map_location |
The current map point digit of the player |
save_file |
The name of the adventurer (name of the save file without its suffix 'save_) |
previous_player |
The last saved player save data (used to rest the save to the older state when the player dies) |
player_damage_coefficient |
The damage coefficient of the player (usually 1 but gets modified by strength effects) |
enemies_damage_coefficient |
The enemies damage coefficient (check this wiki page) |