GuideEnter your scripts Database and select "Scene_Menu"
Find the line number 54 until 59
You should be able to see these texts.
- Code:
-
s1 = Vocab::item
s2 = Vocab::skill
s3 = Vocab::equip
s4 = Vocab::status
s5 = Vocab::save
s6 = Vocab::game_end
Each of these are variables that your menu uses. These variables are in the format "s[AutoNumber] = (Object Name on Menu)". The second row which is the numbers determines the arrangements and the number of Functions that you can access from your menu. You can always add a new function by writing "s7-99 = (Menu Name)" on a new line.
Below is an example of a functional coding that will work in the game.
- Code:
-
s1 = Vocab::item
s2 = Vocab::skill
s3 = Vocab::equip
s4 = Vocab::status
s5 = Vocab::save
s6 = Vocab::game_end
s7 = "Stat Distribution"
Below is an example of a Non-FUNCTIONAL, WRONG and should not be done.
- Code:
-
s1 = Vocab::item
s2 = Vocab::skill
s3 = Vocab::equip
s4 = Vocab::status
s5 = Vocab::save
s6 = Vocab::game_end
s7 = Stat Distribution
To add a new function in your Menu you need to also edit the Base Window in your Menu.
You should be able to find these text below.
Below is an example IF you only added 1 new Function / Section to your Menu.
- Code:
-
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7])
Now If you add more than one.. Maybe 10...
- Code:
-
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16])
Now the functions will appear in your menu but does not do anything yet. That is because we haven't set the functions of what the new functions / section in the menu does.
Scroll down until around line number 80 - 100 and you will find these codes.
These are the scenes that will be accessed when the user of the menu selects the new section in your menu.
Becareful while doing this part, As you see clearly it begins with the number 0.
- Code:
-
when 0 # Item
$scene = Scene_Item.new
when 1,2,3 # Skill, equipment, status
start_actor_selection
when 4 # Save
$scene = Scene_File.new(true, false, false)
when 5 # End Game
$scene = Scene_End.new
Now to set which scenes that the new function will access you will need to enter a new line and type these codes. If you only added one new section then it would be "when
6 $scene = (Scene Name).new"
Here is a functional example of the setting.
- Code:
-
when 0 # Item
$scene = Scene_Item.new
when 1,2,3 # Skill, equipment, status
start_actor_selection
when 4 # Save
$scene = Scene_File.new(true, false, false)
when 5 # End Game
$scene = Scene_End.new
when 6
$scene =StatSystem.new
And you have learned the basic how to script a menu! ^^
>> FAQ <<
Q = How do you know what is the name of a scene?
A = Usually when your adding a script you will find a line of the scene name that you can use to call the scene.
Q = How to make your own scenes?
A = I'm not quite sure since I am not that expert in making scripts ^^
This guide is originally made by me and you can only find this guide in rpgmakervx.net (scripterYuki[ME])
Goodluck