Hi,
I'd like to post the data of RPG Maker to Ruby on Rails app.
Can anyone know how to deal with it?
I guess I need to change some js codes to post params with ajax.
I'd appreciate your help.
Please explain what you want - your post doesn't make any sense.
Ruby on Rails has nothing to do with any maker - the older makers use a special Ruby-Variant called RGGS, and RMMV has absolutely nothing to do with Ruby since it uses javascript.
You would just make a standard HTTP request to your server, from within the code.
RPG Maker doesn't offer a REST client natively so you will either need to add a library to do so, or just build XHR requests yourself.
Tsukihime,
Thanks for your advice.
Could you advice me where and how to write XHR requests?
I'd appreciate your help.
Reashu,
Thank you for your advice!
I'll read the article.
Can you advice which file should be changed in js folder?
I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.
because this is not (yet) about a specific plugin development
Since you have to trigger the end of the game manually, you can manually execute the script all / plugin command to send the request, as well. You don't need to change any file for this and i recommend you to never do this, anyway. Always extend (or overwrite, if you really have to) objects from a plugin, so it can easily be disabled later.