Skip to content

[Feature Request] Inject event commands via Javascript #2563

@jetrotal

Description

@jetrotal

Name of the game:

Any game

Player platform:

Initially Web Player


I started working on a javascript game that interact with twitch chat.
image

Now I'm about to start working on visuals for the game and I thought that would be nice to use EasyRPG's
Web Player as the visual output.

For that, would be amazing to have a way to inject code inside the Game's iframe through JS.

I Imagine an API that has functions like:

easyAPI.getSwitchList( ); //returns {"doorIsOpen":"on", "chest01":"on", "chest02","off"}
easyAPI.setSwitch("chest01","toogle"); //returns "chest01":"off"

easyAPI.getHeroesList( );  //returns  {0:{name:"Alex", class:"warrior", hp:"200"}, 1:{name:"Blaze", class:"mage", hp:"110"}}
easyAPI.hero[0].setAttr(Name,"Chrono"); //returns  {0:{name:"Chrono", class:"warrior", hp:"200"}

Thanks in advance, EasyRPG is a great tool and I love it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions