Table of Contents

EasyRPG commands

This page lists the commands that have been added to the EasyRPG Player, as well as commands that received new parameters.

To be able to use those commands in a game, the EasyRPG flag must be set in the EasyRPG.ini file of the game.

As of now, those commands can only be used by writing them in raw format, or by using the EasyRPGCommands plugin of the Maniac Patch editor.

The TestGame-EasyRPG includes test cases for those commands, which can be used as references if needed:

New commands

Trigger Event At

The Trigger Event At command allows to call the current page of an event by specifying its coordinates.

The command has the following fields:

Notes:

Raw writing:

2002, "", a, b, c, d, e

Pathfinder

The Pathfinder command allows to make an event move to specified coordinates by avoiding obstacles that are on the route.

The command has the following fields:

Notes:

Raw writing:

2003, "", a, b, c, d, e, f, g, h, i, j, k, l, m, n, o

Wait for Single Movement

The Wait for Single Movement command allows to wait for one event to finish moving before continuing processing the code of the event.

While RPG Maker 2000 and RPG Maker 2003 already include a Wait for All Movement command, this command can easily lead to softlocks in game if one event gets stuck moving.

The command has the following fields:

Notes:

Raw writing:

2051, "", a, b, c, d, e, f

Set Interpreter Flag

ℹ️ This command is not present in the EasyRPGCommands plugin, and can only be written through raw writing as of now.

Current issues with the command: EasyRPG Player issue #3659

The Set Interpreter Flag command allows to temporarily enable or disable a patch flag for the processing of an event. This can for instance be used if you want to enable a patch only to do a specific action without further altering the behaviour of the game.

The command has the following fields:

Notes:

Raw writing:

2053, "patchname", a, b

Process JSON

ℹ️ This command relies on the nlohmann_json dependency used by the EasyRPG Player, which is not shipped on homebrew platforms (Wii, Wii U, 3DS, PS Vita, Switch). As such, attempting to use this command on one of those platforms will fail and will display the warning "CommandEasyRPGProcessJson: JSON not supported on this platform".

Current issues with the command: EasyRPG Player issue #3657

The Process JSON command allows to retrieve values from a string variable to process them as-if it was a JSON file.

The command has the following fields:

Notes:

Raw writing:

2055, "string", a, b, c, d, e, f, g, h, i, j, k

Clone Map Event

The Clone Map Event allows to clone an event from the current map or from another map to the current map.

The command has the following fields:

Notes:

Raw writing:

2056, "eventname", a, b, c, d, e, f, g, h, i, j, k, l

Destroy Map Event

The Destroy Map Event command allows to entirely remove an event from the current map.

When using the command Erase Event on an event, the event is not actually erased, it is just disabled: it is still possible to call the event, and it is possible to bring it back through the Return function of the Erase Event command of the Maniac patch.

The Destroy Map Event command, meanwhile, completely removes the event: the event will no longer exist and will not be able to be called. It can be combined with the command Clone Map Event to remove events that were cloned once they are no longer needed.

The command only has one field, which consists of the ID of the event, with the possibility to use a constant, a variable or variable redirection.

Notes:

Raw writing:

2057, "", a, b

Modified EasyRPG commands

Call System Functions (Open Save Menu)

Since the Maniac patch, the Open Save Menu command was reworked to also allow opening other menus, and was renamed to Call System Functions.

EasyRPG Player assigns a menu value to open one of its exclusive menus.

Open Language Menu

ℹ️ This command is not present in the EasyRPGCommands plugin, and can only be written through raw writing as of now. As it does not take any parameter, you can directly copy it from the TestGame-EasyRPG if needed.

The Open Language Menu function allows to open the language menu of the EasyRPG translation feature.

If this command is used and at least one translation exists, the language menu will be opened. Otherwise, it's the save menu that will be opened.

Raw writing:

11910, "", 207