Snow Rose Games
Hello! It looks like you are not logged in or registered. Please log in or register now.


When Passion and Fun Meet
 
PortalPortal  HomeHome  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  Log inLog in  
WE MOVED! "www.snowrosegames.webs.com"
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Our Games


Who is online?
In total there are 5 users online :: 0 Registered, 0 Hidden and 5 Guests

None

Most users ever online was 31 on Fri Jan 17, 2014 1:20 pm
Latest topics
» Romance RP
Fri Nov 10, 2017 5:48 am by phoenixgirl

» Where is my Light?
Sun Aug 06, 2017 3:46 am by Miss Nile

» Romance RP
Sun Jul 30, 2017 6:16 am by phoenixgirl

» Happy Birthday, phoenixgirl!
Thu May 18, 2017 4:57 pm by phoenixgirl

» Happy (Belated) Birthday, Love! ^^
Thu Apr 13, 2017 3:22 am by Miss Nile

» Romance RP
Tue Mar 21, 2017 5:52 am by Miss Nile

» Romance RP
Sun Jan 08, 2017 3:53 am by phoenixgirl

» Romance RP
Mon Dec 05, 2016 5:50 am by phoenixgirl

» Register your RP's Character!
Sun Nov 27, 2016 4:00 am by phoenixgirl

Search
 
 

Display results as :
 

 


Rechercher Advanced Search

Share | 
 

 Simple Guide on Editing Menu

View previous topic View next topic Go down 
AuthorMessage
Rzuzakini
.
.
avatar

Female
Number of posts : 87
Age : 32
Location : Japan
Title : Cookie Lover
Registration date : 2008-12-20

PostSubject: Simple Guide on Editing Menu   Fri Jun 25, 2010 9:58 am

Guide

Enter 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
Back to top Go down
Rzuzakini
.
.
avatar

Female
Number of posts : 87
Age : 32
Location : Japan
Title : Cookie Lover
Registration date : 2008-12-20

PostSubject: Re: Simple Guide on Editing Menu   Sat Jun 26, 2010 2:43 am

Anyone ^^>?
Back to top Go down
 
Simple Guide on Editing Menu
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Snow Rose Games :: The RMXP Forums :: Resources Home :: Scripts-
Jump to: