Skip to content

Game Re‐Usable Variables

Cromha edited this page Feb 18, 2024 · 5 revisions

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
Clone this wiki locally