... | ... | @@ -24,3 +24,33 @@ That's documented here. |
|
|
|
|
|
Following the directions on [*Running the Game*](../running-the-game) will get you mostly set-up for development.
|
|
|
Run `sudo apt install -y solarus-quest-editor` if you haven't, then launch it and choose `File > Load Quest...`, selecting the `voadi` project folder.
|
|
|
|
|
|
## Debugging
|
|
|
|
|
|
Here are some basic commands you can paste into the console while the game is running to test different states.
|
|
|
|
|
|
###### Main
|
|
|
|
|
|
* Save the game: `sol.main.game:save()`
|
|
|
|
|
|
* Get any item (replace **ITEM_KEY**): `sol.main.game:get_item("ITEM_KEY"):set_variant(1)`
|
|
|
|
|
|
* Remove any item (replace **ITEM_KEY**): `sol.main.game:get_item("ITEM_KEY"):set_variant(0)`
|
|
|
|
|
|
* Unfreeze the hero (if she's frozen for some reason): `sol.main.game:get_hero():unfreeze()`
|
|
|
|
|
|
###### Get Tools
|
|
|
|
|
|
* get the stick: `sol.main.game:get_item("stick"):set_variant(1)`
|
|
|
|
|
|
* get the vacuum: `sol.main.game:get_item("vacuum"):set_variant(1)`
|
|
|
|
|
|
###### Get Key items
|
|
|
|
|
|
* get b12: `sol.main.game:get_item("b12"):set_variant(1)`
|
|
|
|
|
|
* get seed: `sol.main.game:get_item("seed"):set_variant(1)`
|
|
|
|
|
|
* get tears: `sol.main.game:get_item("tears"):set_variant(1)`
|
|
|
|
|
|
* get whiskey: `sol.main.game:get_item("whiskey"):set_variant(1)` |