Banner image for mod OMORI Console
Icon for mod OMORI Console
OMORI Console
DOWNLOAD download

About this mod

OMORI Console

Banner and Icon is made by Leee#9692!

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
  • /healall - Heals everyone
  • /bgm [name] [volume = 100] [pitch = 100] - Plays a BGM with volume and pitch specified
  • /addskill [character] [skill] - Adds a skill from a Character
  • /removeskill [character] [skill] - Removes a skill from a Character
  • /item [name] [amount] - Sets an item with amount specified
  • /healall - heals all party members
  • /restartbattle - restarts current battle
  • /js [code] - executes a Javascript code
  • /sfx [name] [volume = 100] [pitch = 100] - Plays a SE with volume and pitch specified
  • /load [saveid] - loads a save file
  • /save [saveid = currentsaveid] - saves a save file. Specifying an id is optional.

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

Contributors

Profile picture of Lee Lee

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