Skip to content

New Command 2059 - Game Loader Command#3614

Open
jetrotal wants to merge 1 commit into
EasyRPG:masterfrom
EasyRPG-NewFeatures:game-loader-command
Open

New Command 2059 - Game Loader Command#3614
jetrotal wants to merge 1 commit into
EasyRPG:masterfrom
EasyRPG-NewFeatures:game-loader-command

Conversation

@jetrotal

Copy link
Copy Markdown
Contributor

This command allows loading another game hosted in the same folder of current game. Useful for having a game split into chapters, or gamejams.

Syntax:

@raw 2059, "[path and flags]",
0,1, // [0] Exit Behavior Type // [1] Exit Behavior Value (0: Exit, 1: Parent Title, 2: Parent Map/Savestate)
2,3 // [2] Target String Type // [3] Target String Value (Ignored for 0, otherwise ID of String Var)

example:

@raw 2059, "dons_adventure", 0, 2 // loads dons_adventure, and return back to parent_game's previous map when closing it.

@raw 2059, """dons adventure"" --language EN", 1, 100 // when having space or using flag arguments "" "" is needed. also when leaving child game, what's happen is decided by variable 100

A test project that uses it:
demo_loader.zip

This command allows loading another game hosted in the same folder of current game.
Useful for having a game split into chapters, or gamejams.

Syntax:

```js
@raw 2059, "[path and flags]",
0,1, // [0] Exit Behavior Type // [1] Exit Behavior Value (0: Exit, 1: Parent Title, 2: Parent Map/Savestate)
2,3 // [2] Target String Type // [3] Target String Value (Ignored for 0, otherwise ID of String Var)

```

example:
```js
@raw 2059, "dons_adventure", 0, 2 // loads dons_adventure, and return back to parent_game's previous map when closing it.

@raw 2059, """dons adventure"" --language EN", 1, 100 // when having space or using flag arguments "" "" is needed. also when leaving child game, what's happen is decided by variable 100

```
@Ghabry

Ghabry commented Jul 14, 2026

Copy link
Copy Markdown
Member

Honestly weird feature and the web player will hate it. 😅

Anyway. What the code nicely shows is our awful amount of global state.

There are similar hacky approaches for the game browser and the map savegame load

@jetrotal

jetrotal commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

web player could simply have a reload the entire page with different params
thought that would made the experience worse due to the reload routines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants