I created a simple Victory Aftermath plugin and it's running smoothly except for one thing: the battle status windows and turn order windows (I'm using Olivia_BattleSysOTB.js and Olivia_SideBattleUI.js) are still visible while the aftermath is processing. How can I access those windows from my plugin so I can use the hide() or close() functions? Thanks for any and all help!
Accessing objects in another plugin
Learning JavascriptSearch how those windows are implemented in the current scene in the plugin. Usually they're instantiated by new keyword.
The MV convention is, you implement them as properties of current scene. So inside your scene's function you'd type
this._sideBattleWindow.hide();
It's not a working code, just a demonstration as I don't know how she implements it.
If you want, you wan watch my scripting in mv tutorial video, in part 3 I am accessing my own windows through console.
The MV convention is, you implement them as properties of current scene. So inside your scene's function you'd type
this._sideBattleWindow.hide();
It's not a working code, just a demonstration as I don't know how she implements it.
If you want, you wan watch my scripting in mv tutorial video, in part 3 I am accessing my own windows through console.
So I'm really new at coding and I had no idea you could do all that from the console! Thanks!
Console is an awesome tool in Javascript, it really helps you explore the game. Just don't forget that any changes you make through the console are temporary and you need to type them in to code anyway. I forgot once and it was a pain to try to figure it out again 😀
Original thread: https://forums.rpgmakerweb.com/threads/accessing-objects-in-another-plugin.111732/