There is no image for Banner image for mod OMORI Debug Console
There is no image for Icon for mod OMORI Debug Console
OMORI Debug Console
DOWNLOAD download

About this mod

OMORI Console

Press / to open the console

This mod is still in beta, missing features and bugs are to be expected!

List of commands:

  • /clear - Clears the console
  • /reload - Restarts the game
  • /battle [id | name] - Starts a battle
  • /font [font] - Changes a font
  • /endbattle - Ends the battle
  • /maptp [id | name] - Teleports to map
  • /addparty [name] - Adds a character to the party
  • /removeparty [name] - Removes a character from the party
  • /hp [name] [value | max] - Sets the character's HP to value
  • /mp [name] [value | max] - Sets the character's MP to value
  • /heal [name] - Heals the character
  • /switch [name] [on | off] - Sets the switch to on or off. Passing only the name will show the value instead
  • /variable [name] [value] - Sets the variable to value. Passing only the name will show the value instead
  • /event [name] - Runs an event

Known issues:

  • Command Handler runs on "pre_window_onload", so adding commands on "pre_window_onload" may not work.

This example shows a way to create a new command!

if (typeof window.commands !== "undefined") {
    /**
     * Runs on Execute.
     *
     * @param {CommandHandler} handler
     * @param {string[]} args
     *
     * @returns {void}
     */
    const helloOnCommand = (handler, args) => {
        // args = ["hello", ...arguments]
        if (args.length < 2) {
            handler.log("Usage: hello [name]");
            return;
        }

        handler.log(`Hello ${args[1]}!`, "lime");
    };

    /**
     * Shows a list of avaliable options.
     * You don't have to worry about filtering options,
     * the command handler will do it for you!
     *
     * @param {string[]} args
     *
     * @returns {string[]}
     */
    const helloOnSuggestion = (args) => {
        // args = ["hello", ...arguments]
        if (args.length === 2) {
            // TODO: Show options for first argument.
            return ["Example", "First", "Argument", "Options"];
        }
        if (args.length === 3) {
            // TODO: Show options for second argument.
            return ["Example", "Second", "Argument", "Options"];
        }

        // Return nothing on default.
        return [];
    };

    // Add hello command without suggestion callback
    // window.commands.add("hello", helloOnExecute);

    // Add hello command
    window.commands.add("hello", helloOnCommand, helloOnSuggestion);
}

Github: https://github.com/surrealegg/debug-console

Mod owner

Profile picture of surrealegg surrealegg

Screenshots

Licensing information

Like all game mods, this mod contains both original work and a limited number of original game assets. Original game assets are provided for the sake of game compatibility only, and you must own the game on Steam to use this content. By downloading any file from this website you confirm that you have purchased a legal copy of the game and that you will not knowingly re-distribute game content. Additionally, any original content of this mod is licensed under the following terms:

Mozilla Public License Version 2.0

Ready to start modding?

Join the mods.one Discord Server
Learn to install and make mods

Help your eyes out

Change theme