Remove battle window from popping up

I am attempting to prevent the player battle window and all of its functions from even popping up to keep it from getting in the way of my events, my battles will instead be dialogue based that end when the correct answers are selected. I am aware that it can be phrased out of the games script but i'm not sure where it is and most of the answers in google were for vx ace, not getting anywhere with plugins either, so I have decided to ask here.


battle system.png
Scene_Battle._statusWindow.close();
Scene_Battle._partyCommandWindow.close();
Scene_Battle._actorCommandWindow.close();


Try adding the above Script to Turn 0 of Troop Events. If that doesn't work, change ".close();" to ".visible = false;". See if that works.
Scene_Battle._statusWindow.close();
Scene_Battle._partyCommandWindow.close();
Scene_Battle._actorCommandWindow.close();


Try adding the above Script to Turn 0 of Troop Events. If that doesn't work, change ".close();" to ".visible = false;". See if that works.

Thank-you for your reply, the script is returning the error message "cannot read property 'close' of undefined" for the first choice and "cannot set property 'visible' of undefined" for the second choice you gave me. I placed it in the first event line for the troop events as a script. I'm still a newbie so i'm not sure what went wrong.
Hmm, I think Scene_Battle doesn't immediately create the status window on battle start. I think it'll work on Turn 1, but that'll defeat the purpose. I'll have to get back to this later.
Scene_Battle._statusWindow.close();
Scene_Battle._partyCommandWindow.close();
Scene_Battle._actorCommandWindow.close();


Try adding the above Script to Turn 0 of Troop Events. If that doesn't work, change ".close();" to ".visible = false;". See if that works.

Im reposting Joewoof fix here as he posted it to the other board I made.  https://www.dropbox.com/s/op5gzpbl7br730t/DAX_HideBattleWindow.js?dl=0

Original thread: https://forums.rpgmakerweb.com/threads/remove-battle-window-from-popping-up.58223/