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
> Simple script tips
Demonata09
post Oct 12 2011, 02:47 PM
Post #1



Group Icon

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




CODE
class Scene_Menu < Scene_Base
  alias ability_option_create create_command_window
  def create_command_window
    return ability_option_create if !WLTR::ABILITY_SETUP::MENU
    s1 = Vocab::item
    s2 = Vocab::skill
    s3 = Vocab::equip
    s4 = Vocab::status
    s5 = N02::ATB_CUSTOMIZE_NAME if defined?(N02) and N02::ATB_CUSTOMIZE
    s6 = Vocab::save
    s7 = Vocab::game_end
    s8 = WLTR::ABILITY_SETUP::ABILITY_TERM
    if defined?(N02) and N02::ATB_CUSTOMIZE
      @command_window = Window_Command.new(160, [s1, s2, s8, s3, s4, s5, s7])
    else
      @command_window = Window_Command.new(160, [s1, s2, s8, s3, s4, s7])
    end
    @command_window.index = @menu_index
    if $game_party.members.size == 0          # ƒ‘ƒƒ†‚人•Œ 0 人の場ˆ
      @command_window.draw_item(0, false)     # ‚‚ƒ†ƒ‚’„ŠŒ–
      @command_window.draw_item(1, false)     # ‚‚ƒ‚’„ŠŒ–
      @command_window.draw_item(2, false)     # …‚™‚’„ŠŒ–
      @command_window.draw_item(4, false)     # ‚ƒ†ƒ‚‚‚’„ŠŒ–
    end
    if $game_system.save_disabled        
      if N02::ATB_CUSTOMIZE# ‚ƒƒ–禁止の場ˆ
        @command_window.draw_item(6, false) # ‚ƒƒ–‚’„ŠŒ–
      else
        @command_window.draw_item(5, false)
      end
    end
  end
  #--------------------------------------------------------------------------
  # — ‚ƒžƒƒ‰選Šžの›–
  #--------------------------------------------------------------------------
  alias update_command_selection_n02 update_command_selection
  def update_command_selection
    return update_command_selection_n02 if !WLTR::ABILITY_SETUP::MENU
    if defined?(N02) and N02::ATB_CUSTOMIZE
      update_command_atb
    else
      update_command_normal
    end
  end

  def update_command_atb
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      if $game_party.members.size == 0 and @command_window.index < 6
        Sound.play_buzzer
        return
      elsif $game_system.save_disabled and @command_window.index == 6
        Sound.play_buzzer
        return
      end
      Sound.play_decision
      case @command_window.index
      when 0      # ‚‚ƒ†ƒ
        $scene = Scene_Item.new
      when 1,2,3,4  # ‚‚ƒ€…‚™€‚ƒ†ƒ‚‚
        start_actor_selection
      when 5      # ATB設š
        $scene = Scene_ATB.new
      when 6      # ‚ƒƒ–
        $scene = Scene_File.new(true, false, false)
      when 7      # ‚ƒƒ‚†
        $scene = Scene_End.new
      end
    end
  end


This script is part of my menu script.. I'm needing help to remove the save option from it.. Any tips here?

Any help would be much appreciated

(If more of the script is needed, I'd be happy to post it all... But i think i got all the menu)

This post has been edited by Demonata09: Oct 12 2011, 02:48 PM


__________________________
Windows 7
HD Radeon 6990
6GB DDR3
Phenom X6 @ 4.5 Ghz
=(
Go to the top of the page
 
+Quote Post
   
Blacklight Sudio...
post Oct 14 2011, 01:03 PM
Post #2



Group Icon

Group: Member
Posts: 4
Type: None
RM Skill: Undisclosed




comment out "s6 = Vocab::save" and anything in the next few lines that says anything about "$game_system.save_disabled"... After that, just change the s#'s accordingly to make things fit right.
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: 23rd May 2013 - 11:14 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker