yep, that's basically all i can say, as several of those scripts are scripts i've never used. My biggest guess is the CMS, as it afects the main menu directly.
DerVVulfman's Limit Break Menu
RPG Maker ScriptsThis happens also in other CMS Scripts like the Scrolling Menu.
This is my modified L,s Simple CMS #1.
Could you check what might be wrong.
This is my modified L,s Simple CMS #1.
Could you check what might be wrong.
#==============================================================================
# **Game_Map
#==============================================================================
class Game_Map
def name
$map_infos[@map_id]
end
end
#========================================
# **Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
$map_infos = load_data("Data/MapInfos.rxdata")
for key in $map_infos.keys
$map_infos[key] = $map_infos[key].name
end
end
#==============================================================================
# **Window_Infos
#==============================================================================
class Window_Infos < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 130)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
#---Show Time
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Time")
@total_sec = Graphics.frame_count / Graphics.frame_rate
hour = @total_sec / 60 / 60
min = @total_sec / 60 % 60
sec = @total_sec % 60
text = sprintf("%02d:%02d:%02d", hour, min, sec)
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120, 32, text, 2)
#---Show Steps
self.contents.font.color = system_color
self.contents.draw_text(4, 25, 120, 32, "Steps")
self.contents.font.color = normal_color
self.contents.draw_text(4, 42, 120, 32, $game_party.steps.to_s, 2)
#---Show Money
#Advanced Gold Display mini-script by Dubealex.
case $game_party.gold
when 0..9999
gold = $game_party.gold
when 10000..99999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
when 100000..999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
when 1000000..9999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
end
self.contents.font.color = normal_color
cx = contents.text_size($data_system.words.gold).width
self.contents.draw_text(4, 67, 120-cx-2, 32, gold.to_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(124-cx, 67, cx, 32, $data_system.words.gold, 2)
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
if Graphics.frame_count / Graphics.frame_rate != @total_sec
refresh
end
end
end
#==============================================================================
# **Window_MapName
#==============================================================================
class Window_MapName < Window_Base
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Location")
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 120, 32, $game_map.name.to_s, 2)
end
end
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
# This class performs menu screen processing.
#==============================================================================
class Scene_Menu
#--------------------------------------------------------------------------
# * Object Initialization
# menu_index : command cursor's initial position
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
commands_init
@changer = 0 #Change Party Order by Yargovish
@where = 0 #
@checker = 0 #
end
#--------------------------------------------------------------------------
# * Set Commands
#--------------------------------------------------------------------------
def commands_init
# MenuCommand
@commands = []
s1 = "Item"
s2 = "Skill"
s3 = "Equip"
s4 = "Status"
s5 = "Limit"
s6 = "Ability"
s7 = "System"
@commands.push(s1, s2, s3, s4, s5, s6, s7).flatten!
@system_commands = []
o1 = "Save"
o2 = "Bestiary"
o3 = "Book"
@system_commands.push(o1, o2, o3).flatten!
end
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
#Draw Windows
main_command_window
system_command_window
main_draw
#Execute transition
Graphics.transition
#Main Loop
loop do
#Main Loop
main_loop
break if main_scenechange?
end
#Prepare for transition
Graphics.freeze
#Dispose Windows
main_dispose
end
#--------------------------------------------------------------------------
# * Main Draw - Handles drawing windows
#--------------------------------------------------------------------------
def main_draw
#Draw Windows
# Make Info Window
@infos_window = Window_Infos.new
@infos_window.x = 0
@infos_window.y = 255
# Make map name window
@mapname_window = Window_MapName.new
@mapname_window.x = 0
@mapname_window.y = 384
# Make status window
@status_window = Window_MenuStatus.new
@status_window.x = 160
@status_window.y = 0
end
#--------------------------------------------------------------------------
# * Main Command Window
#--------------------------------------------------------------------------
def main_command_window
# Make command window
@command_window = Window_Command.new(160, @commands)
@command_window.index = @menu_index
# If number of party members is 0
if $game_party.actors.size == 0
# Disable items, skills, equipment, and status
@command_window.disable_item(0)
@command_window.disable_item(1)
@command_window.disable_item(2)
@command_window.disable_item(3)
end
# If save is forbidden
#if $game_system.save_disabled
# Disable save
#@command_window.disable_item(4)
#end
if $game_party.actors.size <= 1 #
@command_window.disable_item(4)
end
end
#--------------------------------------------------------------------------
# * System Command Window
#--------------------------------------------------------------------------
def system_command_window
@load_enabled = false
@sys_command_window = Window_Command.new(128, @system_commands)
@sys_command_window.visible = false
@sys_command_window.active = false
@sys_command_window.x = 100
@sys_command_window.y = 210
@sys_command_window.z = 0
if $game_system.save_disabled
@sys_command_window.disable_item(0)
end
for i in 0..3
if (FileTest.exist?("Save#{i+1}.rxdata"))
@load_enabled = true
end
end
if !@load_enabled
@sys_command_window.disable_item(1)
end
end
#--------------------------------------------------------------------------
# * Main Scene Change
#--------------------------------------------------------------------------
def main_scenechange?
# Abort loop if screen is changed
if $scene != self
return true
end
return false
end
#--------------------------------------------------------------------------
# * Main Dispose
#--------------------------------------------------------------------------
def main_dispose
# Dispose All Windows
@command_window.dispose
@sys_command_window.dispose
@infos_window.dispose
@mapname_window.dispose
@status_window.dispose
end
#--------------------------------------------------------------------------
# * Main Loop
#--------------------------------------------------------------------------
def main_loop
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# Update Windows
update_windows
if @sys_command_window.active
@sys_command_window.z = +500
end
# If command window is active: call update_command
if @command_window.active
update_command
return
end
# If system window is active: call update_sys_command
if @sys_command_window.active
update_sys_command
return
end
# If status window is active: call update_status
if @status_window.active
update_status
return
end
end
#--------------------------------------------------------------------------
# * Window Update
#--------------------------------------------------------------------------
def update_windows
@command_window.update if @command_window.visible
@sys_command_window.update if @sys_command_window.visible
@infos_window.update
@status_window.update
@mapname_window.update
end
#--------------------------------------------------------------------------
# * Frame Update (when command window is active)
#--------------------------------------------------------------------------
def update_command
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Switch to map screen
$scene = Scene_Map.new
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# If command other than save or end game, and party members = 0
if $game_party.actors.size == 0 and @command_window.index < 4
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Branch by command window cursor position
case @command_window.index
when 0 # item
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to item screen
$scene = Scene_Item.new
when 1 # skill
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 2 # equipment
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 3 # status
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 4 # Limit
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 5 # Ability
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 6 #Call System Menu
$game_system.se_play($data_system.decision_se)
@sys_command_window.active = true
@sys_command_window.visible = true
@command_window.active = false
end
return
end
end
#--------------------------------------------------------------------------
# * Update SysCommand Window
#--------------------------------------------------------------------------
def update_sys_command
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
@command_window.active = true
@sys_command_window.active = false
@sys_command_window.visible = false
@sys_command_window.index = 0
@sys_command_window.z = 0
return
end
if Input.trigger?(Input::C)
case @sys_command_window.index
when 0 #Save
# # If saving is forbidden
if $game_system.save_disabled
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to save screen
$scene = Scene_Save.new
when 1 #Bestiary
$game_system.se_play($data_system.decision_se)
$scene = Scene_Bestiary.new
when 2 #Skill Book
$game_system.se_play($data_system.decision_se)
$scene = Scene_SkillBook.new
end
return
end
end
#--------------------------------------------------------------------------
# * Frame Update (when status window is active)
#--------------------------------------------------------------------------
def update_status
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Make command window active
@command_window.active = true
@status_window.active = false
@status_window.index = -1
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# Branch by command window cursor position
case @command_window.index
when 1 # skill
# If this actor's action limit is 2 or more
if $game_party.actors[@status_window.index].restriction >= 2
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to skill screen
$scene = Scene_Skill.new(@status_window.index)
when 2 # equipment
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to equipment screen
$scene = Scene_Equip.new(@status_window.index)
when 3 # status
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to status screen
$scene = Scene_Status.new(@status_window.index)
when 4 #limits
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to skill screen
$scene = Scene_LimitMenu.new(@status_window.index)
when 5 #abilities
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to ability screen
$scene = Scene_AbilityEquip.new(@status_window.index)
end
end
return
end
end
class Scene_Save < Scene_File
alias save_on_decision on_decision
alias save_on_cancel on_cancel
#--------------------------------------------------------------------------
# * Decision Processing
#--------------------------------------------------------------------------
def on_decision(filename)
save_on_decision(filename)
$scene = Scene_Menu.new(6)
end
#--------------------------------------------------------------------------
# * Cancel Processing
#--------------------------------------------------------------------------
def on_cancel
save_on_cancel
$scene = Scene_Menu.new(6)
end
end
class Scene_Load < Scene_File
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias load_initialize initialize
alias load_on_cancel on_cancel
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
@scene = $scene
load_initialize
end
#--------------------------------------------------------------------------
# * Cancel Processing
#--------------------------------------------------------------------------
def on_cancel
load_on_cancel
$scene = @scene
end
end
# **Game_Map
#==============================================================================
class Game_Map
def name
$map_infos[@map_id]
end
end
#========================================
# **Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
$map_infos = load_data("Data/MapInfos.rxdata")
for key in $map_infos.keys
$map_infos[key] = $map_infos[key].name
end
end
#==============================================================================
# **Window_Infos
#==============================================================================
class Window_Infos < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 130)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
#---Show Time
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Time")
@total_sec = Graphics.frame_count / Graphics.frame_rate
hour = @total_sec / 60 / 60
min = @total_sec / 60 % 60
sec = @total_sec % 60
text = sprintf("%02d:%02d:%02d", hour, min, sec)
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120, 32, text, 2)
#---Show Steps
self.contents.font.color = system_color
self.contents.draw_text(4, 25, 120, 32, "Steps")
self.contents.font.color = normal_color
self.contents.draw_text(4, 42, 120, 32, $game_party.steps.to_s, 2)
#---Show Money
#Advanced Gold Display mini-script by Dubealex.
case $game_party.gold
when 0..9999
gold = $game_party.gold
when 10000..99999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
when 100000..999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
when 1000000..9999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
end
self.contents.font.color = normal_color
cx = contents.text_size($data_system.words.gold).width
self.contents.draw_text(4, 67, 120-cx-2, 32, gold.to_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(124-cx, 67, cx, 32, $data_system.words.gold, 2)
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
if Graphics.frame_count / Graphics.frame_rate != @total_sec
refresh
end
end
end
#==============================================================================
# **Window_MapName
#==============================================================================
class Window_MapName < Window_Base
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Location")
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 120, 32, $game_map.name.to_s, 2)
end
end
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
# This class performs menu screen processing.
#==============================================================================
class Scene_Menu
#--------------------------------------------------------------------------
# * Object Initialization
# menu_index : command cursor's initial position
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
commands_init
@changer = 0 #Change Party Order by Yargovish
@where = 0 #
@checker = 0 #
end
#--------------------------------------------------------------------------
# * Set Commands
#--------------------------------------------------------------------------
def commands_init
# MenuCommand
@commands = []
s1 = "Item"
s2 = "Skill"
s3 = "Equip"
s4 = "Status"
s5 = "Limit"
s6 = "Ability"
s7 = "System"
@commands.push(s1, s2, s3, s4, s5, s6, s7).flatten!
@system_commands = []
o1 = "Save"
o2 = "Bestiary"
o3 = "Book"
@system_commands.push(o1, o2, o3).flatten!
end
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
#Draw Windows
main_command_window
system_command_window
main_draw
#Execute transition
Graphics.transition
#Main Loop
loop do
#Main Loop
main_loop
break if main_scenechange?
end
#Prepare for transition
Graphics.freeze
#Dispose Windows
main_dispose
end
#--------------------------------------------------------------------------
# * Main Draw - Handles drawing windows
#--------------------------------------------------------------------------
def main_draw
#Draw Windows
# Make Info Window
@infos_window = Window_Infos.new
@infos_window.x = 0
@infos_window.y = 255
# Make map name window
@mapname_window = Window_MapName.new
@mapname_window.x = 0
@mapname_window.y = 384
# Make status window
@status_window = Window_MenuStatus.new
@status_window.x = 160
@status_window.y = 0
end
#--------------------------------------------------------------------------
# * Main Command Window
#--------------------------------------------------------------------------
def main_command_window
# Make command window
@command_window = Window_Command.new(160, @commands)
@command_window.index = @menu_index
# If number of party members is 0
if $game_party.actors.size == 0
# Disable items, skills, equipment, and status
@command_window.disable_item(0)
@command_window.disable_item(1)
@command_window.disable_item(2)
@command_window.disable_item(3)
end
# If save is forbidden
#if $game_system.save_disabled
# Disable save
#@command_window.disable_item(4)
#end
if $game_party.actors.size <= 1 #
@command_window.disable_item(4)
end
end
#--------------------------------------------------------------------------
# * System Command Window
#--------------------------------------------------------------------------
def system_command_window
@load_enabled = false
@sys_command_window = Window_Command.new(128, @system_commands)
@sys_command_window.visible = false
@sys_command_window.active = false
@sys_command_window.x = 100
@sys_command_window.y = 210
@sys_command_window.z = 0
if $game_system.save_disabled
@sys_command_window.disable_item(0)
end
for i in 0..3
if (FileTest.exist?("Save#{i+1}.rxdata"))
@load_enabled = true
end
end
if !@load_enabled
@sys_command_window.disable_item(1)
end
end
#--------------------------------------------------------------------------
# * Main Scene Change
#--------------------------------------------------------------------------
def main_scenechange?
# Abort loop if screen is changed
if $scene != self
return true
end
return false
end
#--------------------------------------------------------------------------
# * Main Dispose
#--------------------------------------------------------------------------
def main_dispose
# Dispose All Windows
@command_window.dispose
@sys_command_window.dispose
@infos_window.dispose
@mapname_window.dispose
@status_window.dispose
end
#--------------------------------------------------------------------------
# * Main Loop
#--------------------------------------------------------------------------
def main_loop
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# Update Windows
update_windows
if @sys_command_window.active
@sys_command_window.z = +500
end
# If command window is active: call update_command
if @command_window.active
update_command
return
end
# If system window is active: call update_sys_command
if @sys_command_window.active
update_sys_command
return
end
# If status window is active: call update_status
if @status_window.active
update_status
return
end
end
#--------------------------------------------------------------------------
# * Window Update
#--------------------------------------------------------------------------
def update_windows
@command_window.update if @command_window.visible
@sys_command_window.update if @sys_command_window.visible
@infos_window.update
@status_window.update
@mapname_window.update
end
#--------------------------------------------------------------------------
# * Frame Update (when command window is active)
#--------------------------------------------------------------------------
def update_command
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Switch to map screen
$scene = Scene_Map.new
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# If command other than save or end game, and party members = 0
if $game_party.actors.size == 0 and @command_window.index < 4
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Branch by command window cursor position
case @command_window.index
when 0 # item
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to item screen
$scene = Scene_Item.new
when 1 # skill
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 2 # equipment
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 3 # status
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 4 # Limit
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 5 # Ability
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 6 #Call System Menu
$game_system.se_play($data_system.decision_se)
@sys_command_window.active = true
@sys_command_window.visible = true
@command_window.active = false
end
return
end
end
#--------------------------------------------------------------------------
# * Update SysCommand Window
#--------------------------------------------------------------------------
def update_sys_command
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
@command_window.active = true
@sys_command_window.active = false
@sys_command_window.visible = false
@sys_command_window.index = 0
@sys_command_window.z = 0
return
end
if Input.trigger?(Input::C)
case @sys_command_window.index
when 0 #Save
# # If saving is forbidden
if $game_system.save_disabled
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to save screen
$scene = Scene_Save.new
when 1 #Bestiary
$game_system.se_play($data_system.decision_se)
$scene = Scene_Bestiary.new
when 2 #Skill Book
$game_system.se_play($data_system.decision_se)
$scene = Scene_SkillBook.new
end
return
end
end
#--------------------------------------------------------------------------
# * Frame Update (when status window is active)
#--------------------------------------------------------------------------
def update_status
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Make command window active
@command_window.active = true
@status_window.active = false
@status_window.index = -1
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# Branch by command window cursor position
case @command_window.index
when 1 # skill
# If this actor's action limit is 2 or more
if $game_party.actors[@status_window.index].restriction >= 2
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to skill screen
$scene = Scene_Skill.new(@status_window.index)
when 2 # equipment
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to equipment screen
$scene = Scene_Equip.new(@status_window.index)
when 3 # status
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to status screen
$scene = Scene_Status.new(@status_window.index)
when 4 #limits
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to skill screen
$scene = Scene_LimitMenu.new(@status_window.index)
when 5 #abilities
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to ability screen
$scene = Scene_AbilityEquip.new(@status_window.index)
end
end
return
end
end
class Scene_Save < Scene_File
alias save_on_decision on_decision
alias save_on_cancel on_cancel
#--------------------------------------------------------------------------
# * Decision Processing
#--------------------------------------------------------------------------
def on_decision(filename)
save_on_decision(filename)
$scene = Scene_Menu.new(6)
end
#--------------------------------------------------------------------------
# * Cancel Processing
#--------------------------------------------------------------------------
def on_cancel
save_on_cancel
$scene = Scene_Menu.new(6)
end
end
class Scene_Load < Scene_File
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias load_initialize initialize
alias load_on_cancel on_cancel
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
@scene = $scene
load_initialize
end
#--------------------------------------------------------------------------
# * Cancel Processing
#--------------------------------------------------------------------------
def on_cancel
load_on_cancel
$scene = @scene
end
end
Expand to see the code.
HA!, it was an easy error, and one that is easily fixed.
This refers to index value 4, which comes out to be command number five, since we all know that index starts at 0. To fix this, remove the above code block. Now, your script looks like this.
It should work now, no problems, but no guarantees as well.
# If save is forbidden
#if $game_system.save_disabled
# Disable save
#@command_window.disable_item(4)
#end
if $game_party.actors.size <= 1 #
@command_window.disable_item(4)
end
#if $game_system.save_disabled
# Disable save
#@command_window.disable_item(4)
#end
if $game_party.actors.size <= 1 #
@command_window.disable_item(4)
end
Expand to see the code.
This refers to index value 4, which comes out to be command number five, since we all know that index starts at 0. To fix this, remove the above code block. Now, your script looks like this.
#==============================================================================
# **Game_Map
#==============================================================================
class Game_Map
def name
$map_infos[@map_id]
end
end
#========================================
# **Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
$map_infos = load_data("Data/MapInfos.rxdata")
for key in $map_infos.keys
$map_infos[key] = $map_infos[key].name
end
end
#==============================================================================
# **Window_Infos
#==============================================================================
class Window_Infos < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 130)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
#---Show Time
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Time")
@total_sec = Graphics.frame_count / Graphics.frame_rate
hour = @total_sec / 60 / 60
min = @total_sec / 60 % 60
sec = @total_sec % 60
text = sprintf("%02d:%02d:%02d", hour, min, sec)
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120, 32, text, 2)
#---Show Steps
self.contents.font.color = system_color
self.contents.draw_text(4, 25, 120, 32, "Steps")
self.contents.font.color = normal_color
self.contents.draw_text(4, 42, 120, 32, $game_party.steps.to_s, 2)
#---Show Money
#Advanced Gold Display mini-script by Dubealex.
case $game_party.gold
when 0..9999
gold = $game_party.gold
when 10000..99999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
when 100000..999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
when 1000000..9999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
end
self.contents.font.color = normal_color
cx = contents.text_size($data_system.words.gold).width
self.contents.draw_text(4, 67, 120-cx-2, 32, gold.to_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(124-cx, 67, cx, 32, $data_system.words.gold, 2)
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
if Graphics.frame_count / Graphics.frame_rate != @total_sec
refresh
end
end
end
#==============================================================================
# **Window_MapName
#==============================================================================
class Window_MapName < Window_Base
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Location")
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 120, 32, $game_map.name.to_s, 2)
end
end
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
# This class performs menu screen processing.
#==============================================================================
class Scene_Menu
#--------------------------------------------------------------------------
# * Object Initialization
# menu_index : command cursor's initial position
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
commands_init
@changer = 0 #Change Party Order by Yargovish
@where = 0 #
@checker = 0 #
end
#--------------------------------------------------------------------------
# * Set Commands
#--------------------------------------------------------------------------
def commands_init
# MenuCommand
@commands = []
s1 = "Item"
s2 = "Skill"
s3 = "Equip"
s4 = "Status"
s5 = "Limit"
s6 = "Ability"
s7 = "System"
@commands.push(s1, s2, s3, s4, s5, s6, s7).flatten!
@system_commands = []
o1 = "Save"
o2 = "Bestiary"
o3 = "Book"
@system_commands.push(o1, o2, o3).flatten!
end
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
#Draw Windows
main_command_window
system_command_window
main_draw
#Execute transition
Graphics.transition
#Main Loop
loop do
#Main Loop
main_loop
break if main_scenechange?
end
#Prepare for transition
Graphics.freeze
#Dispose Windows
main_dispose
end
#--------------------------------------------------------------------------
# * Main Draw - Handles drawing windows
#--------------------------------------------------------------------------
def main_draw
#Draw Windows
# Make Info Window
@infos_window = Window_Infos.new
@infos_window.x = 0
@infos_window.y = 255
# Make map name window
@mapname_window = Window_MapName.new
@mapname_window.x = 0
@mapname_window.y = 384
# Make status window
@status_window = Window_MenuStatus.new
@status_window.x = 160
@status_window.y = 0
end
#--------------------------------------------------------------------------
# * Main Command Window
#--------------------------------------------------------------------------
def main_command_window
# Make command window
@command_window = Window_Command.new(160, @commands)
@command_window.index = @menu_index
# If number of party members is 0
if $game_party.actors.size == 0
# Disable items, skills, equipment, and status
@command_window.disable_item(0)
@command_window.disable_item(1)
@command_window.disable_item(2)
@command_window.disable_item(3)
end
end
#--------------------------------------------------------------------------
# * System Command Window
#--------------------------------------------------------------------------
def system_command_window
@load_enabled = false
@sys_command_window = Window_Command.new(128, @system_commands)
@sys_command_window.visible = false
@sys_command_window.active = false
@sys_command_window.x = 100
@sys_command_window.y = 210
@sys_command_window.z = 0
if $game_system.save_disabled
@sys_command_window.disable_item(0)
end
for i in 0..3
if (FileTest.exist?("Save#{i+1}.rxdata"))
@load_enabled = true
end
end
if !@load_enabled
@sys_command_window.disable_item(1)
end
end
#--------------------------------------------------------------------------
# * Main Scene Change
#--------------------------------------------------------------------------
def main_scenechange?
# Abort loop if screen is changed
if $scene != self
return true
end
return false
end
#--------------------------------------------------------------------------
# * Main Dispose
#--------------------------------------------------------------------------
def main_dispose
# Dispose All Windows
@command_window.dispose
@sys_command_window.dispose
@infos_window.dispose
@mapname_window.dispose
@status_window.dispose
end
#--------------------------------------------------------------------------
# * Main Loop
#--------------------------------------------------------------------------
def main_loop
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# Update Windows
update_windows
if @sys_command_window.active
@sys_command_window.z = +500
end
# If command window is active: call update_command
if @command_window.active
update_command
return
end
# If system window is active: call update_sys_command
if @sys_command_window.active
update_sys_command
return
end
# If status window is active: call update_status
if @status_window.active
update_status
return
end
end
#--------------------------------------------------------------------------
# * Window Update
#--------------------------------------------------------------------------
def update_windows
@command_window.update if @command_window.visible
@sys_command_window.update if @sys_command_window.visible
@infos_window.update
@status_window.update
@mapname_window.update
end
#--------------------------------------------------------------------------
# * Frame Update (when command window is active)
#--------------------------------------------------------------------------
def update_command
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Switch to map screen
$scene = Scene_Map.new
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# If command other than save or end game, and party members = 0
if $game_party.actors.size == 0 and @command_window.index < 4
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Branch by command window cursor position
case @command_window.index
when 0 # item
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to item screen
$scene = Scene_Item.new
when 1 # skill
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 2 # equipment
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 3 # status
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 4 # Limit
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 5 # Ability
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 6 #Call System Menu
$game_system.se_play($data_system.decision_se)
@sys_command_window.active = true
@sys_command_window.visible = true
@command_window.active = false
end
return
end
end
#--------------------------------------------------------------------------
# * Update SysCommand Window
#--------------------------------------------------------------------------
def update_sys_command
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
@command_window.active = true
@sys_command_window.active = false
@sys_command_window.visible = false
@sys_command_window.index = 0
@sys_command_window.z = 0
return
end
if Input.trigger?(Input::C)
case @sys_command_window.index
when 0 #Save
# # If saving is forbidden
if $game_system.save_disabled
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to save screen
$scene = Scene_Save.new
when 1 #Bestiary
$game_system.se_play($data_system.decision_se)
$scene = Scene_Bestiary.new
when 2 #Skill Book
$game_system.se_play($data_system.decision_se)
$scene = Scene_SkillBook.new
end
return
end
end
#--------------------------------------------------------------------------
# * Frame Update (when status window is active)
#--------------------------------------------------------------------------
def update_status
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Make command window active
@command_window.active = true
@status_window.active = false
@status_window.index = -1
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# Branch by command window cursor position
case @command_window.index
when 1 # skill
# If this actor's action limit is 2 or more
if $game_party.actors[@status_window.index].restriction >= 2
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to skill screen
$scene = Scene_Skill.new(@status_window.index)
when 2 # equipment
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to equipment screen
$scene = Scene_Equip.new(@status_window.index)
when 3 # status
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to status screen
$scene = Scene_Status.new(@status_window.index)
when 4 #limits
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to skill screen
$scene = Scene_LimitMenu.new(@status_window.index)
when 5 #abilities
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to ability screen
$scene = Scene_AbilityEquip.new(@status_window.index)
end
end
return
end
end
class Scene_Save < Scene_File
alias save_on_decision on_decision
alias save_on_cancel on_cancel
#--------------------------------------------------------------------------
# * Decision Processing
#--------------------------------------------------------------------------
def on_decision(filename)
save_on_decision(filename)
$scene = Scene_Menu.new(6)
end
#--------------------------------------------------------------------------
# * Cancel Processing
#--------------------------------------------------------------------------
def on_cancel
save_on_cancel
$scene = Scene_Menu.new(6)
end
end
class Scene_Load < Scene_File
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias load_initialize initialize
alias load_on_cancel on_cancel
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
@scene = $scene
load_initialize
end
#--------------------------------------------------------------------------
# * Cancel Processing
#--------------------------------------------------------------------------
def on_cancel
load_on_cancel
$scene = @scene
end
end
# **Game_Map
#==============================================================================
class Game_Map
def name
$map_infos[@map_id]
end
end
#========================================
# **Scene_Title
#--------------------------------------------------------------------------------
# Setting functions for the Title
#========================================
class Scene_Title
$map_infos = load_data("Data/MapInfos.rxdata")
for key in $map_infos.keys
$map_infos[key] = $map_infos[key].name
end
end
#==============================================================================
# **Window_Infos
#==============================================================================
class Window_Infos < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 130)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
#---Show Time
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Time")
@total_sec = Graphics.frame_count / Graphics.frame_rate
hour = @total_sec / 60 / 60
min = @total_sec / 60 % 60
sec = @total_sec % 60
text = sprintf("%02d:%02d:%02d", hour, min, sec)
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120, 32, text, 2)
#---Show Steps
self.contents.font.color = system_color
self.contents.draw_text(4, 25, 120, 32, "Steps")
self.contents.font.color = normal_color
self.contents.draw_text(4, 42, 120, 32, $game_party.steps.to_s, 2)
#---Show Money
#Advanced Gold Display mini-script by Dubealex.
case $game_party.gold
when 0..9999
gold = $game_party.gold
when 10000..99999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+","+array[2].to_s+array[3].to_s+array[4].to_s
when 100000..999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+array[1].to_s+array[2].to_s+","+array[3].to_s+array[4].to_s+array[5].to_s
when 1000000..9999999
gold = $game_party.gold.to_s
array = gold.split(//)
gold = array[0].to_s+","+array[1].to_s+array[2].to_s+array[3].to_s+","+array[4].to_s+array[5].to_s+array[6].to_s
end
self.contents.font.color = normal_color
cx = contents.text_size($data_system.words.gold).width
self.contents.draw_text(4, 67, 120-cx-2, 32, gold.to_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(124-cx, 67, cx, 32, $data_system.words.gold, 2)
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
if Graphics.frame_count / Graphics.frame_rate != @total_sec
refresh
end
end
end
#==============================================================================
# **Window_MapName
#==============================================================================
class Window_MapName < Window_Base
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Location")
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 120, 32, $game_map.name.to_s, 2)
end
end
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
# This class performs menu screen processing.
#==============================================================================
class Scene_Menu
#--------------------------------------------------------------------------
# * Object Initialization
# menu_index : command cursor's initial position
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
commands_init
@changer = 0 #Change Party Order by Yargovish
@where = 0 #
@checker = 0 #
end
#--------------------------------------------------------------------------
# * Set Commands
#--------------------------------------------------------------------------
def commands_init
# MenuCommand
@commands = []
s1 = "Item"
s2 = "Skill"
s3 = "Equip"
s4 = "Status"
s5 = "Limit"
s6 = "Ability"
s7 = "System"
@commands.push(s1, s2, s3, s4, s5, s6, s7).flatten!
@system_commands = []
o1 = "Save"
o2 = "Bestiary"
o3 = "Book"
@system_commands.push(o1, o2, o3).flatten!
end
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
#Draw Windows
main_command_window
system_command_window
main_draw
#Execute transition
Graphics.transition
#Main Loop
loop do
#Main Loop
main_loop
break if main_scenechange?
end
#Prepare for transition
Graphics.freeze
#Dispose Windows
main_dispose
end
#--------------------------------------------------------------------------
# * Main Draw - Handles drawing windows
#--------------------------------------------------------------------------
def main_draw
#Draw Windows
# Make Info Window
@infos_window = Window_Infos.new
@infos_window.x = 0
@infos_window.y = 255
# Make map name window
@mapname_window = Window_MapName.new
@mapname_window.x = 0
@mapname_window.y = 384
# Make status window
@status_window = Window_MenuStatus.new
@status_window.x = 160
@status_window.y = 0
end
#--------------------------------------------------------------------------
# * Main Command Window
#--------------------------------------------------------------------------
def main_command_window
# Make command window
@command_window = Window_Command.new(160, @commands)
@command_window.index = @menu_index
# If number of party members is 0
if $game_party.actors.size == 0
# Disable items, skills, equipment, and status
@command_window.disable_item(0)
@command_window.disable_item(1)
@command_window.disable_item(2)
@command_window.disable_item(3)
end
end
#--------------------------------------------------------------------------
# * System Command Window
#--------------------------------------------------------------------------
def system_command_window
@load_enabled = false
@sys_command_window = Window_Command.new(128, @system_commands)
@sys_command_window.visible = false
@sys_command_window.active = false
@sys_command_window.x = 100
@sys_command_window.y = 210
@sys_command_window.z = 0
if $game_system.save_disabled
@sys_command_window.disable_item(0)
end
for i in 0..3
if (FileTest.exist?("Save#{i+1}.rxdata"))
@load_enabled = true
end
end
if !@load_enabled
@sys_command_window.disable_item(1)
end
end
#--------------------------------------------------------------------------
# * Main Scene Change
#--------------------------------------------------------------------------
def main_scenechange?
# Abort loop if screen is changed
if $scene != self
return true
end
return false
end
#--------------------------------------------------------------------------
# * Main Dispose
#--------------------------------------------------------------------------
def main_dispose
# Dispose All Windows
@command_window.dispose
@sys_command_window.dispose
@infos_window.dispose
@mapname_window.dispose
@status_window.dispose
end
#--------------------------------------------------------------------------
# * Main Loop
#--------------------------------------------------------------------------
def main_loop
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# Update Windows
update_windows
if @sys_command_window.active
@sys_command_window.z = +500
end
# If command window is active: call update_command
if @command_window.active
update_command
return
end
# If system window is active: call update_sys_command
if @sys_command_window.active
update_sys_command
return
end
# If status window is active: call update_status
if @status_window.active
update_status
return
end
end
#--------------------------------------------------------------------------
# * Window Update
#--------------------------------------------------------------------------
def update_windows
@command_window.update if @command_window.visible
@sys_command_window.update if @sys_command_window.visible
@infos_window.update
@status_window.update
@mapname_window.update
end
#--------------------------------------------------------------------------
# * Frame Update (when command window is active)
#--------------------------------------------------------------------------
def update_command
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Switch to map screen
$scene = Scene_Map.new
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# If command other than save or end game, and party members = 0
if $game_party.actors.size == 0 and @command_window.index < 4
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Branch by command window cursor position
case @command_window.index
when 0 # item
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to item screen
$scene = Scene_Item.new
when 1 # skill
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 2 # equipment
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 3 # status
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 4 # Limit
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 5 # Ability
$game_system.se_play($data_system.decision_se)
# Make status window active
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 6 #Call System Menu
$game_system.se_play($data_system.decision_se)
@sys_command_window.active = true
@sys_command_window.visible = true
@command_window.active = false
end
return
end
end
#--------------------------------------------------------------------------
# * Update SysCommand Window
#--------------------------------------------------------------------------
def update_sys_command
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
@command_window.active = true
@sys_command_window.active = false
@sys_command_window.visible = false
@sys_command_window.index = 0
@sys_command_window.z = 0
return
end
if Input.trigger?(Input::C)
case @sys_command_window.index
when 0 #Save
# # If saving is forbidden
if $game_system.save_disabled
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to save screen
$scene = Scene_Save.new
when 1 #Bestiary
$game_system.se_play($data_system.decision_se)
$scene = Scene_Bestiary.new
when 2 #Skill Book
$game_system.se_play($data_system.decision_se)
$scene = Scene_SkillBook.new
end
return
end
end
#--------------------------------------------------------------------------
# * Frame Update (when status window is active)
#--------------------------------------------------------------------------
def update_status
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Make command window active
@command_window.active = true
@status_window.active = false
@status_window.index = -1
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# Branch by command window cursor position
case @command_window.index
when 1 # skill
# If this actor's action limit is 2 or more
if $game_party.actors[@status_window.index].restriction >= 2
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to skill screen
$scene = Scene_Skill.new(@status_window.index)
when 2 # equipment
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to equipment screen
$scene = Scene_Equip.new(@status_window.index)
when 3 # status
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to status screen
$scene = Scene_Status.new(@status_window.index)
when 4 #limits
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to skill screen
$scene = Scene_LimitMenu.new(@status_window.index)
when 5 #abilities
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to ability screen
$scene = Scene_AbilityEquip.new(@status_window.index)
end
end
return
end
end
class Scene_Save < Scene_File
alias save_on_decision on_decision
alias save_on_cancel on_cancel
#--------------------------------------------------------------------------
# * Decision Processing
#--------------------------------------------------------------------------
def on_decision(filename)
save_on_decision(filename)
$scene = Scene_Menu.new(6)
end
#--------------------------------------------------------------------------
# * Cancel Processing
#--------------------------------------------------------------------------
def on_cancel
save_on_cancel
$scene = Scene_Menu.new(6)
end
end
class Scene_Load < Scene_File
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias load_initialize initialize
alias load_on_cancel on_cancel
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
@scene = $scene
load_initialize
end
#--------------------------------------------------------------------------
# * Cancel Processing
#--------------------------------------------------------------------------
def on_cancel
load_on_cancel
$scene = @scene
end
end
Expand to see the code.
It should work now, no problems, but no guarantees as well.
I understand that part. It worked thanks to you. Problem solved.
this is kinda wierd but i want to have Rue's error
because, i want to disable the limit break menu on the beggining of my game.
then on some point, i would just call a script event that enables the limit break menu. can you help me? :D
ok, i found out what will i have to change in order to get rue's error
i manage to turn to grey but its still selectable, i mean i can set my limit break gain types.. the question is, how can i disable the limit break menu?
and how can i enable it from calling a script event?
because, i want to disable the limit break menu on the beggining of my game.
then on some point, i would just call a script event that enables the limit break menu. can you help me? :D
ok, i found out what will i have to change in order to get rue's error
i manage to turn to grey but its still selectable, i mean i can set my limit break gain types.. the question is, how can i disable the limit break menu?
and how can i enable it from calling a script event?
bojox3m, the limit break option is placed where the save option used to be. That's why it's color became gray. It just became gray but you can still access the lmit menu.
exactly ^^ but how can i disable the limit menu through calling a script event
so, you want the limit menu to be locked till a certain point in the game, then be unlocked? I can talk to an associate of mine and try to find a solution or this.
yes please.. that would be great. thanks Allistor
Perhaps, you can make a new attr_accessor for enabling/disabling Limit menu, like 'Save' does.
ya,,, i'm working on it. i'm writing the code in between sleeping, puking my guts out and trying not to to die from the flu...
im anxious to try the new version!
im really excited to try it :)
sorry for bumping :D but im really excited for this hehe
this is taking longer than planned. I'm currently under the tutelage of Trickster, and am working to make this a hundred times more compatible, without using as much resources.
Nice! your post makes me wanna uhm.. nevermind XD
[QUOTE=SephirothSpawn;183994]Good work man.
@The Families thing : It's a little inside joke we all started. Sit down boys and girls for another... Tales of n00bs...
There once was a user who didn't own the legal version. He created help topic after help topic and request after request. No one would help the poor n00b. But the n00b was not going to give up easily...
One day, he asked for a demo of a script he really wanted. Unfortunately for him, PK cannot open legal rmxp projects. As an act of desperation, "No, um... I can't use a demo. I am no good with demos. Can you just post the scripts."
But the wise n00b slayer Trickster was too wise to be fooled by the n00b. After a long battle and questioning, it was found that the n00b didn't have the PK version. When asked, "Why don't you download and pay for the legal version?", all the n00b could reply was "My family is too poor and depends on me to make my game with this script."
The war between the n00b and n00b Slayer Trickster waged on for eons (ok, a few weeks), but after warns and warns, infraction after infraction, n00b slayer banned the n00b for rmxp.org land, but this isn't the last we would hear from our n00b.
The n00b continued with his multis before he finally was completely banished from the land, but the n00b had found a new kingdom to annoy the hell out of...
The new community he found seemed to be his new home. He posted like crazy, spammed with illogical thoughts, flamed, etc. (essientially, picking up in a new community where he left off in his old one).
Unfortunately for the n00b, the n00b Slayer had a twin with n00b Slayer status within this kingdom : SephirothSpawn.
After months of forgiveness, SephirothSpawn eventually vanquished the n00b from the new kingdom. But you know our n00b ; he would not go down quitely.
Within a days time, the n00b returned. "F-U SephirothSpawn! How dare you banish me from my new home. People liked me here and you ruined it. I just found out I have lung cancer at 14 for smoking too much. This kingdom was the only thing that made me continue to fight the illness, create my game and save my family. You have now ruined it. It is all your fault. I am now going to kill myself, and my family will suffer. I hope this is your life's lesson and that you will grow as a person from this experience." (Not that will put, for you know, he is a n00b, so you would actually have to attempt multiple times to understand what he actually said).
The n00b slayers rejoiced with laughter, but it appears our n00b was lying!
* dun dun dun *
Within a few days and for a week, new members were joining the community with the same characteristics as the fallen n00b. To make a long story short, they were all slain in epic fashion, and the tale of the n00b was lost.
No one has heard the legend of the n00b until this point. You must not speak of it or the n00b may return, and we don't want that to happen now do we?
Oh no! What have I done![/QUOTE]
That's how the families thing started? I was thinking of the Mafia (Wrong kind of families huh?) it seemed so logical considering it was to stop people using an illegal version of RMXP ':|
@The Families thing : It's a little inside joke we all started. Sit down boys and girls for another... Tales of n00bs...
There once was a user who didn't own the legal version. He created help topic after help topic and request after request. No one would help the poor n00b. But the n00b was not going to give up easily...
One day, he asked for a demo of a script he really wanted. Unfortunately for him, PK cannot open legal rmxp projects. As an act of desperation, "No, um... I can't use a demo. I am no good with demos. Can you just post the scripts."
But the wise n00b slayer Trickster was too wise to be fooled by the n00b. After a long battle and questioning, it was found that the n00b didn't have the PK version. When asked, "Why don't you download and pay for the legal version?", all the n00b could reply was "My family is too poor and depends on me to make my game with this script."
The war between the n00b and n00b Slayer Trickster waged on for eons (ok, a few weeks), but after warns and warns, infraction after infraction, n00b slayer banned the n00b for rmxp.org land, but this isn't the last we would hear from our n00b.
The n00b continued with his multis before he finally was completely banished from the land, but the n00b had found a new kingdom to annoy the hell out of...
The new community he found seemed to be his new home. He posted like crazy, spammed with illogical thoughts, flamed, etc. (essientially, picking up in a new community where he left off in his old one).
Unfortunately for the n00b, the n00b Slayer had a twin with n00b Slayer status within this kingdom : SephirothSpawn.
After months of forgiveness, SephirothSpawn eventually vanquished the n00b from the new kingdom. But you know our n00b ; he would not go down quitely.
Within a days time, the n00b returned. "F-U SephirothSpawn! How dare you banish me from my new home. People liked me here and you ruined it. I just found out I have lung cancer at 14 for smoking too much. This kingdom was the only thing that made me continue to fight the illness, create my game and save my family. You have now ruined it. It is all your fault. I am now going to kill myself, and my family will suffer. I hope this is your life's lesson and that you will grow as a person from this experience." (Not that will put, for you know, he is a n00b, so you would actually have to attempt multiple times to understand what he actually said).
The n00b slayers rejoiced with laughter, but it appears our n00b was lying!
* dun dun dun *
Within a few days and for a week, new members were joining the community with the same characteristics as the fallen n00b. To make a long story short, they were all slain in epic fashion, and the tale of the n00b was lost.
No one has heard the legend of the n00b until this point. You must not speak of it or the n00b may return, and we don't want that to happen now do we?
Oh no! What have I done![/QUOTE]
That's how the families thing started? I was thinking of the Mafia (Wrong kind of families huh?) it seemed so logical considering it was to stop people using an illegal version of RMXP ':|
Seph, i luv you...
Lol. Awsm story.
Oh yeah, I love the skins used in this menu.
Lol. Awsm story.
Oh yeah, I love the skins used in this menu.
I need help with
unless $lb_hidden.include?(actor.id)
unless $lb_hidden.include?(actor.id)
i need help with
unless $lb_hidden.include?(actor.id)
sorry for double posting
unless $lb_hidden.include?(actor.id)
sorry for double posting
There's nothing to help... that, and $lb_hidden is a global array in Limit Break (DVV) itself and not with Alistor's Menu for Limit Break.
The $lb_hidden array holds the IDs of actors who's limit break bars are hidden from (or not displayed in) the menu and battlestatus windows. If you put a value of '3' in the array (as such)...
... then actor #3 in your system will now show any limit break bars, nor will have a chime/SE when his limit break maximum has been reached.
Misnomer: The $lb_hidden array does not disable the actor(s) from gaining limitbreak points but merely hides it. Characters with 'hidden' bars may still be able to perform limit breaks 'if' they have limitbreak skills.
The $lb_hidden array holds the IDs of actors who's limit break bars are hidden from (or not displayed in) the menu and battlestatus windows. If you put a value of '3' in the array (as such)...
... then actor #3 in your system will now show any limit break bars, nor will have a chime/SE when his limit break maximum has been reached.
Misnomer: The $lb_hidden array does not disable the actor(s) from gaining limitbreak points but merely hides it. Characters with 'hidden' bars may still be able to perform limit breaks 'if' they have limitbreak skills.
Heyo, sorry for bringing this up, but I'd like to change something about what appears in the menu, and I'm absolutely clueless.
Basically, what I want is for in the limit submenu to only display the limit skills, but not be able to select different gain types, even delete that division from the submenu altogether; the character should always keep the same gain type throughout the game. How would I achieve what I'm looking for? I've tried altering the script, but I'm really unexperienced with all that, so that wouldn't quite work.
Basically, what I want is for in the limit submenu to only display the limit skills, but not be able to select different gain types, even delete that division from the submenu altogether; the character should always keep the same gain type throughout the game. How would I achieve what I'm looking for? I've tried altering the script, but I'm really unexperienced with all that, so that wouldn't quite work.
Hi... umm sorry... but I have a question... How do I add limit break skills? I have everything set up and running, but I have no clue how to assign limit breaks to my characters
[QUOTE=~(Adremmalech)~;311843]Hi... umm sorry... but I have a question... How do I add limit break skills? I have everything set up and running, but I have no clue how to assign limit breaks to my characters[/QUOTE]
I'll assume that you've added all the Limit Break scripts (these two and DerVVulfman's basic script)
Now anyway it's in the standard one that you'll get to name your Limit Break. In the database you add a new element that you name the exact same thing. Now you tag the skills that you want to use as a Limit Break in the Skill menu, and voila, that should do it.
I had some problems with it at first, but it's simple as that.
I'll assume that you've added all the Limit Break scripts (these two and DerVVulfman's basic script)
Now anyway it's in the standard one that you'll get to name your Limit Break. In the database you add a new element that you name the exact same thing. Now you tag the skills that you want to use as a Limit Break in the Skill menu, and voila, that should do it.
I had some problems with it at first, but it's simple as that.
nvm... I found out how... now my problem is that the little checkbox doesnt show up in my skill database
You need to create the actual limit break 'Element'. It's an element in the same way as Fire, Earth, Water, vs Undead...
Once you create that, and make sure it's the same name as the one you have in the Limit Break DVV script itself, you're ready to go.
Once you create that, and make sure it's the same name as the one you have in the Limit Break DVV script itself, you're ready to go.
Thanks, I was able to find it shortly after my post.... XD great system!! it actually works perfect with some of the other battle scripts Im running
I may yet add a few more 'gain rates'.
With the way Alistor's menu script is set up, he no longer needs to edit it anymore. The end-user can do it.
If I do add more rates, I'll post how to add 'em into his menu.
With the way Alistor's menu script is set up, he no longer needs to edit it anymore. The end-user can do it.
If I do add more rates, I'll post how to add 'em into his menu.
When i open the menu it doesn't show the Limit Break option.
edit:
Basically when i open the games menu. The Limit Break Option isn't there.
and how do i set moves to be used as the Limit Break?
edit:
Basically when i open the games menu. The Limit Break Option isn't there.
and how do i set moves to be used as the Limit Break?
[QUOTE=Chimp_dude2;313685]When i open the menu it doesn't show the Limit Break option.
edit:
Basically when i open the games menu. The Limit Break Option isn't there.
and how do i set moves to be used as the Limit Break?[/QUOTE]
Second question, look, litterally, three posts above yours. For question number one, have you installed both scripts of this menu thingy? I had only installed the first one and it did not function untill I installed the second. Could be possibly that.
I'd like to question again if there's a possibility to delete the "Gain Type" selection in the Limit Break submenu? They should not be able to change it, in fact there shouldn't even be more than one type (I've solved the latter in the script database.)
edit:
Basically when i open the games menu. The Limit Break Option isn't there.
and how do i set moves to be used as the Limit Break?[/QUOTE]
Second question, look, litterally, three posts above yours. For question number one, have you installed both scripts of this menu thingy? I had only installed the first one and it did not function untill I installed the second. Could be possibly that.
I'd like to question again if there's a possibility to delete the "Gain Type" selection in the Limit Break submenu? They should not be able to change it, in fact there shouldn't even be more than one type (I've solved the latter in the script database.)
Original thread: https://www.hbgames.org/forums/viewtopic.php?t=18319