Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Mixxth on February 17, 2011, 08:26:29 pm

Title: [RESOLVED] General questions; involving menu scripts
Post by: Mixxth on February 17, 2011, 08:26:29 pm
RMXP;

Hey guys, I'm using multiple scripts to enhance my menu system, such as nam's achievement logger, BlizzABS, and calling some basic menu options such as skill and equip via script ($scene = Scene_Equip.new, $scene = Scene_Skill.new, $scene = Scene_Item.new) in a custom menu script; everything works fine, the questions I have are;

1: is there a way to alter the color of the backgrounds to all match each-other? or a way to load a picture file as the background OR a way to change the window-skin while in the menu? because at the moment they are all different and it looks retarded. (you sir are my hero atm "ForeverZer0") <--- resolved

2: is there a way to make it so when you exit Nams achieve logger//Blizz menus, that it returns to the menu select screen, because when you exit (item, skill and equip) is returns to the menu, the rest just exit all-together. (you sir are my hero atm "ForeverZer0") <--- resolved

3: I updated my game with BlizzABS 2.84 from 2.3, yet when I add 1 mob onto a map and char IDs 1,2 and make the second char have a heal ability and add said char to the "passive/defensive" corner of the Blizz Behavior menu then let the mob hit me 2 things go wrong; the char with the heal doesn't heal me I get KO'd also the heal char stays near me and gets hit by 50% of the attacks. is there a way to make her stand away from the fight and just heal? [resolved]
Title: Re: General question; involving menu scripts
Post by: ForeverZer0 on February 17, 2011, 08:43:34 pm
1. To place a background image, in each one of the scenes that your menu links to, before the loop in their "main" method, add the lines:

background = Sprite.new
background.bitmap = RPG::Cache.picture('NAME OF PICTURE') # In Graphics/Pictures directory


Then, under the main loop where you will see things being disposed, add this line:
background.dispose


2. For NAM's logger, find the line, probably near the bottom of the "main" method, you will find a line like this:
$scene = Scene_Map.new

Simply change it to:
$scene = Scene_Menu.new

You can also pass an argument to the call to have the index in the menu be set to scene. Whatever index you have the option to enter the scene in the on menu, pass that number (minus one), to the call. For example, if on the main menu this scene was called by selecting the third option, you would use this:
$scene = Scene_Menu.new(2)


3. Sadly, I am not familiar with much of BABS, and someone else will have to help you with that one.
Title: Re: General question; involving menu scripts
Post by: Mixxth on February 18, 2011, 12:55:03 am
Quote from: ForeverZer0 on February 17, 2011, 08:43:34 pm
1. To place a background image, in each one of the scenes that your menu links to, before the loop in their "main" method, add the lines:

background = Sprite.new
background.bitmap = RPG::Cache.picture('NAME OF PICTURE') # In Graphics/Pictures directory


Then, under the main loop where you will see things being disposed, add this line:
background.dispose


so this does put a background picture but its still covered by the lame menu in-front of the picture when the script calls for (    @help_window = Window_Help.new @item_window = Window_Achievement.new) together they cover the screen with grayish windows >.<
Title: Re: General questions; involving menu scripts
Post by: ForeverZer0 on February 18, 2011, 11:30:19 am
I don't get it. You want the picture to be on top of the menu? You wouldn't be able to see the window then. Not a very functional menu if you can't see it.

Either way, you can additional use:
background.z = NUMBER

...where number is something like 100 or -100, depending on how "high" you want the object. Higher numbers will make it it on top, while lower numbers will put it at the bottom.
Title: Re: General questions; involving menu scripts
Post by: Mixxth on February 18, 2011, 06:12:41 pm
Quote from: ForeverZer0 on February 18, 2011, 11:30:19 am
I don't get it. You want the picture to be on top of the menu? You wouldn't be able to see the window then. Not a very functional menu if you can't see it.

Either way, you can additional use:
background.z = NUMBER

...where number is something like 100 or -100, depending on how "high" you want the object. Higher numbers will make it it on top, while lower numbers will put it at the bottom.


lol ya something like that think about it like this (3 sections, 1 - background, 2 - crap menu frames, 3 - words symbolizing items ect) the picture goes behind the menu panels and the words appear on top of it all, i want to simply eliminate the middle man "2", so the words are on top of the picture that I post, the frames look so blank and ugly is makes me sick... lawl

*Edit* Ok I think I've deduced that its the default background changeable by changing the window-skin, is there any way to just make its opacity to like "0"? or yea eliminate the default background?
Title: Re: General questions; involving menu scripts
Post by: ForeverZer0 on February 18, 2011, 10:49:54 pm
There are multiple ways of doing it.

On an instance of a window, using the help window as an example:

@help_window.back_opacity = 0


or

@help_window.windowskin = nil
Title: Re: General questions; involving menu scripts
Post by: Mixxth on February 18, 2011, 11:00:20 pm
Quote from: ForeverZer0 on February 18, 2011, 10:49:54 pm
There are multiple ways of doing it.

On an instance of a window, using the help window as an example:

@help_window.back_opacity = 0


or

@help_window.windowskin = nil



Whoa, fixed, you rock man