Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Remove continue option from main menu when not available (v1.0)
RisingPhoenix
post Feb 2 2008, 03:55 PM
Post #1


Level 6
Group Icon

Group: Member
Posts: 82
Type: None
RM Skill: Skilled




I modified the Scene_Title section to only display the Continue option if it is necessary, and since it was simple I decided to throw together a little script in case anyone wanted one. Stick it above Main, but below Scene_Title, and it should work.

CODE
#==============================================================================
#  Edit the title screen to only display continue if the option is available
#  Author: RisingPhoenix
#==============================================================================

class Scene_Title < Scene_Base
    def update
        super
        @command_window.update
        if Input.trigger?(Input::C)
            #Check whether continue option is available
            if @continue_enabled
                #If it is, set up handling for all three options
                case @command_window.index
                when 0    # New Game
                    command_new_game
                when 1    # Continue
                    command_continue
                when 2    # Shutdown
                    command_shutdown
                end
            else
                #Otherwise, only new game and shutdown need handling
                case @command_window.index
                when 0    #New Game
                    command_new_game
                when 1    #Shutdown
                    command_shutdown
                end
            end
        end
    end #ends update
    
    def create_command_window
        s1 = Vocab::new_game
        s2 = Vocab::continue
        s3 = Vocab::shutdown
        #Remove continue option if continue isn't enabled
        if @continue_enabled
            @command_window = Window_Command.new(172, [s1, s2, s3])
        else
            @command_window = Window_Command.new(172, [s1, s3])
        end
        @command_window.x = (544 - @command_window.width) / 2
        @command_window.y = 288
        #Starting location of cursor...
        if @continue_enabled
            @command_window.index = 1
        else
            @command_window.index = 0
        end
        @command_window.openness = 0
        @command_window.open
    end
end


__________________________
「いい気なるな!目障り何だよ!僕の目の前から�消えて
まえ!魔神!煉獄殺!」
ー リオン・マグナス (テイルズオブデスティニー)
"Ii ki naru na! Mezawari nan da yo! Boku no me no mae kara...kiete shimae! Majin! Rengokusatsu!"
- Leon Magnus (Tales of Destiny)
Go to the top of the page
 
+Quote Post
   
Apocalypto
post Jun 24 2008, 05:32 AM
Post #2


Level 1
Group Icon

Group: Member
Posts: 7
Type: Developer
RM Skill: Skilled




works perfect!
good job man, thank you! happy.gif


__________________________
LETS HAVE FUN!


Go to the top of the page
 
+Quote Post
   
bleachx
post Jul 20 2008, 04:28 AM
Post #3


Level 4
Group Icon

Group: Member
Posts: 50
Type: None
RM Skill: Skilled




good script!! i used!!
keep up the good work!!

This post has been edited by bleachx: Jul 20 2008, 04:29 AM
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 11:35 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker