Skip to content

Terminal State

Wither362 edited this page Feb 14, 2023 · 6 revisions

Terminal State (WIP FOR NOW)

Yeah baby, (documentation still wip)

How to enter it

Type terminal in the Main Menu

How to use it

If you wanna make a mod, you’ll need to make (or edit) a .txt file in the data named terminalCharactersList.txt and then type there all of your characters.

So the file directory would be like this:
mods/mod-name/data/terminalCharactersList.txt, if it isn’t, you’re f*cked.

Then, use one of these for your character’s action:


Character actions

Still in process, but you still can use them.

In your txt file, add a new line like this:
characterName--action--argument1,argument2,etc (characterName--action--arguments)

  • characterName: the name of the character or item you want to add
  • action: what action does the engine have to do when selected
  • arguments: a list of argument splited by «,» defined by the actions under this text.

Example:

Description: The description of the action.
Action name: The action declaration (String).
Arguments: Optional arguments for the engine to specify.

(Action) Playing a song

Description: Plays a song at a specified difficulty.
Action name: song
Arguments: difficulty (MUST BE A NUMBER, STILL WIP)

(Action) Open URL

Description: Opens an specified URL.
Action name: openurl
Arguments: link (String)

(Action) Open URL and close game

Description: Opens the specified URL and after a specific amount of seconds crash the game.
Action name: openurl and explode
Arguments:

  • URL (String): The URL to open.
  • Seconds (Float): Amount of seconds to wait before closing the game.