Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Problem with a pair of scripts

Status
Not open for further replies.

Marpy

Member

I found a very nice 'esper' style system, but the thing is.. I'm new to scripting, so it's conflicting with my CMS, and I can't find a way to load it on the menu! I'm sure it's something simple, and it can be fixed easily.. I just need a little push.

Esper System: http://www.rmxp.org/forums/showthread.php?t=11111

CMS: http://www.rmxp.org/forums/showthread.php?t=21243

Neither of which have been edited from the threads. They are all as they were.

Edit: Also, if there were a way to remove all the words 'esper' from the original system, and replace them with what I plan on calling the system, spirits, it would be helpful too. o.o
 

Marpy

Member

Perhaps I haven't made my request clear enough. This is my problem. If I try to load the esper script after my menu script, it over writes the menu. If I add the esper script before my menu, I get this:
http://img.photobucket.com/albums/v389/ ... enshot.png[/IMG]
As you can tell, it's my menu, but I can't figure out how to replace the 'save' option with the 'esper' option, to bring up the esper menu. Also, a way to replace the step count with a counter the number of espers acquired would also be helpful.
 
I might be able to do it (I'm just learning scripting, heh), but I don't have RPG Maker XP any more, so I can't see the script for the Esper system. :/
Could you post the menu part of the Esper script?
 

Marpy

Member

#==============================================================================
# ** 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
end
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
# Make command window
s1 = $data_system.words.item
s2 = $data_system.words.skill
s3 = $data_system.words.equip
s4 = "Status"
s5 = "Save"
s6 = "Spirit Orbs"
s7 = "End Game"
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6,s7])
@command_window.height = 224
@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
# Make play time window
@playtime_window = Window_PlayTime.new
@playtime_window.x = 0
@playtime_window.y = 224
# Make steps window
@steps_window = Window_Steps.new
@steps_window.x = 0
@steps_window.y = 320
# Make gold window
@gold_window = Window_Gold.new
@gold_window.x = 0
@gold_window.y = 416
# Make status window
@status_window = Window_MenuStatus.new
@status_window.x = 160
@status_window.y = 0
# Execute transition
Graphics.transition
# Main loop
loop do
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
# Abort loop if screen is changed
if $scene != self
break
end
end
# Prepare for transition
Graphics.freeze
# Dispose of windows
@command_window.dispose
@playtime_window.dispose
@steps_window.dispose
@gold_window.dispose
@status_window.dispose
end
I don't really know anything of coding, but I think that's it.
 
This topic has been resolved. If Marpy or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top