I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
You want the WHOLE window to be invisible? Including the actor name, HP, MP, TP? Or just the background?
'I want every last bit of the window gone. The only thing I want left is the character name, stats, etc. I actually have my own hud for it, I just can't get the default box to go away!'
Sorry for the double'ish post. Totally made it in the wrong section so I just wrote up a new one. Wish I knew how to abort a post awaiting approval :<
Change the W in Window2 to a small w. Don't know if that'll fix it but it's worth a try.
Also, do you have any other scripts running that might be changing the windowskin?
Huh, I thought self.opacity affected the contents as well; I was originally going to include that but didn't think it would work (incidentally I think just opacity is working fine; you don't need to set back_opacity to 0 if opacity is). Oh well, forget the windowskin stuff. XD
@lavra I tried that and I still have the darn box.
I changed the name of the file to the name of the line of code; (I'm actually using the same name as in your example, "WindowBlank"). My Graphic/System name is "WindowBlank.png". I have everything spelled out just right with proper capitalization etc just to be sure. I'm so clueless as to why it won't work; I know a LITTLE about coding, and can certainly load 3rd party scripts/edit them with ease as long as the comments are good etc. I just can't get THIS to work... yet.
Again, thanks for the reply!
You might check your other scripts for Window_BattleStatus or its superclasses, then, to find out what causes this.
If it's free to share, you could post the script here, so other people can take a look at it. For starters, a search for "windowskin" might show you that it is set in a later method, thus overriding the script above, or something similar.
This part here displays your background image:
def create_actor_background return if LNX11::ACTOR_BACKGROUND == 0 viewport = actor_viewport height = LNX11::ACTOR_BACKGROUND_HEIGHT case LNX11::ACTOR_BACKGROUND when 1 # グラデーション @actor_background = Sprite.new back = Bitmap.new(Graphics.width, height) color = LNX11::ACTOR_BG_GRADIENT_COLOR back.gradient_fill_rect(back.rect, color[0], color[1], true) @actor_background.bitmap = back when 2 # ウィンドウ @actor_background = Window_Base.new(0, 0, Graphics.width, height) else if LNX11::ACTOR_BACKGROUND.is_a?(String) # ファイル指定 @actor_background = Sprite.new @actor_background.bitmap = Cache.system(LNX11::ACTOR_BACKGROUND) @actor_background.x = Graphics.width / 2 @actor_background.ox = @actor_background.bitmap.width / 2 height = @actor_background.bitmap.height end end @actor_background.viewport = viewport @actor_background.y = Graphics.height - height @actor_background.z = viewport == @viewport1 ? 120 : -20 update_actor_background endIm currently too sleepy to work something out and since the script relies a lot on graphics i can't put up a test case, but i would try to work with this method.
Putting a fully transparent image for LNX11::ACTOR_BACKGROUND could be an easy solution.
/edit: I found the following line:
ACTOR_BACKGROUND = 2According to the part above, it should create a simple window, which in turn uses the windowskin value. You could try debugging the method with msgbox() or p sprintf() (if console enabled) calls, to see which values it receives.
Or try setting ACTOR_BACKGROUND to 0, since the whole method should be skipped in this case.