As with your other request, it would be helpful to know what battle system you are using since it may have different windows than the default battle system, and knowing which windows to make transparent is useful to craft the most appropriate solution. Also, you need to be more specific with which windows. Typically, if you refer to a command window in a script, a scripter would understand that to mean instances of Window_Command or instances of any subclasses of Window_Command. In the DBS, the window where you choose to fight or escape and the window where you choose to attack, defend, guard, etc.. are the only "command" windows in the technical sense. But if you actually meant to include other windows in the scene, like the item selection, skill selection, status (the one that shows HP etc. of actors), etc., then you need to be more specific. I would recommend that you:
(a) tell us what battle system you are using; and
(b) specifically list every window that you want to be transparent and every window that you don't. Use pictures pointing out the windows if necessary.
The following snippet is an unoptimized way of making every Command Window (in the technical sense) in the scene transparent.
class Window_Command
alias ma_aznkid_inizcmnd_3hk9 initialize
def initialize(*args, &block)
ma_aznkid_inizcmnd_3hk9(*args, &block)
self.opacity = 0 if SceneManager.scene_is?(Scene_Battle)
end
end
To make a script that is more optimized (alters only the windows actually used in Scene_Battle) or which responds to your actual request (if you didn't mean command windows in the technical sense), I would need the information requested above.