[RESOLVED] General questions; involving menu scripts

Started by Mixxth, February 17, 2011, 08:26:29 pm

Previous topic - Next topic

Mixxth

February 17, 2011, 08:26:29 pm Last Edit: February 19, 2011, 05:01:02 am by Mixxth
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]
Donald Knuth: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food."

ForeverZer0

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.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Mixxth

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 >.<
Donald Knuth: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food."

ForeverZer0

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.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Mixxth

February 18, 2011, 06:12:41 pm #4 Last Edit: February 18, 2011, 06:16:51 pm by Mixxth
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?
Donald Knuth: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food."

ForeverZer0

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
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Mixxth

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
Donald Knuth: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food."