- Joined
- Mar 31, 2013
- Messages
- 259
- Reaction score
- 117
- First Language
- English
- Primarily Uses
- RMMZ
== CONTEXT ==
I am creating a Grid Based Tactical System on the map and I have setup some scripts to write enemy data to put into Game_Troops; however, I do not know how to write it (overwrite) the Troops.json file.
I am not asking for people to do the plugin for me (just wanted to clear that up), I am merely asking what is the code to save the data to the Troops.json file?
(( I understand possibly using JSON.stringify($gameTroop) or JsonEx.stringify($gameTroop) perhaps? Or something with stringify in general )) But after that, I don't know if there's some HTTP or the DeepCopy functions are required, and so on. A little help would be appreciated.
P.S. I also apologize but I didn't know if this goes in here, or in plugin development since I am asking a little help on JS itself - even if the end goal is for the plugin.
I am creating a Grid Based Tactical System on the map and I have setup some scripts to write enemy data to put into Game_Troops; however, I do not know how to write it (overwrite) the Troops.json file.
I am not asking for people to do the plugin for me (just wanted to clear that up), I am merely asking what is the code to save the data to the Troops.json file?
(( I understand possibly using JSON.stringify($gameTroop) or JsonEx.stringify($gameTroop) perhaps? Or something with stringify in general )) But after that, I don't know if there's some HTTP or the DeepCopy functions are required, and so on. A little help would be appreciated.
P.S. I also apologize but I didn't know if this goes in here, or in plugin development since I am asking a little help on JS itself - even if the end goal is for the plugin.

