[RESOLVED] script help

Started by nathmatt, March 04, 2008, 10:39:58 am

Previous topic - Next topic

nathmatt

March 04, 2008, 10:39:58 am Last Edit: July 25, 2008, 04:43:36 pm by Blizzard
trying to make a menu pop up in my for blizzards job change & upgrade script
i already added it to the menu by overriding the save.

#==============================================================================
# Job_changer
#==============================================================================
class Job_changer
  #--------------------------------------------------------------------------
  # * Main - Handles drawing/disposing windows and the main loop
  #--------------------------------------------------------------------------
  def main
    #Draw Windows
    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
    # List31452956
    @list31452956  = Window_Command.new(160,['job change','skill upgrade',],21)
    @list31452956.windowskin = RPG::Cache.windowskin('001-Blue01')
    @list31452956.x = 236
    @list31452956.y = 140
  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
    # Dispose List31452956
    @list31452956.dispose
  end
  #--------------------------------------------------------------------------
  # * Main Loop
  #--------------------------------------------------------------------------
  def main_loop
    # Update game screen
    Graphics.update
    # Update input information
    Input.update
    # Frame update
    update
  end
  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  def update
    # Update Windows
    update_windows
    #Update list31452956
    update_list31452956 if @list31452956.active and @list31452956.visible
  end
  #--------------------------------------------------------------------------
  # * Update list31452956
  #--------------------------------------------------------------------------
  def update_list31452956
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Branch by command window cursor position
      case @command_window.index
      when 0 # job change
      $scene = Scene_ClassChange.new
     
      when 1 # skill upgrade
       $scene = Scene_SkillChange.new
     
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Window Update
  #--------------------------------------------------------------------------
  def update_windows
    # Update List31452956
    @list31452956.update if @list31452956.visible
  end
end
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Blizzard

March 04, 2008, 10:49:47 am #1 Last Edit: March 04, 2008, 10:53:39 am by Blizzard
Well, actually you don't need to make that. :)

Quote#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Plug-in Save Point by Blizzard
# Version: 2.0b
# Type: Development Tool for Non-Scripters
# Date: 26.5.2006
# Date v2.0: 20.10.2007
# Date v2.0b: 20.2.2008
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Compatibility:
#
#   99% compatible with SDK v1.x. 90% compatible with SDK v2.x. Could cause
#   problems with CMS-es, but very unlikely. Could cause problems with callable
#   scenes.
#
#
# Explanation:
#
#   This add-on allows you to create a save point like menu where the player
#   can change to any scene you specify. You are not limited to savepoints.
#
#
# Features:
#
#   - create a menu that calls scenes within minutes
#   - use any script you have; this add-on allows you to call any scene
#   - returns to the calling scene after finishing processing the other scene
#
#
# new in v2.0:
#   - first REAL public release
#   - completely overworked
#   - now supports any scene
#
# new in v2.0b:
#   - fixed a bug caused by a typing mistake
#   - now beta
#
#
# Instructions:
#   
# - Configuration:
#
#   SCENE_CALLS - add any scene class declarations from other scripts like
#                 Scene_PartySwitcher, Scene_Bestiary, etc., you can also add
#                 any default scene like Scene_Save, Scene_Load, Scene_End etc.
#   SCENE_NAMES - add here the corresponding names for the scenes (in other
#                 words: you can call your scenes however you like)
#   WIN_WIDTH   - if your text gets squeezed together, increase this value
#   EXIT_SAVE   - word displayed to exit the Scene_SavePoint
#   MAP_BACK    - set to false if you don't want a map background or set to
#                 filename of picture file located in your "Pictures" folder
#                 that should be displayed as background
#   HOW_TO_BACK - if you are using a picture as background, set this value to 1
#                 if you want a centered background, to 2 if you want a
#                 stretched background and to 0 if you want it simply to stay
#                 in the upper left corner
#
# - Additional Funtions:
#   
#   You can call the Save Point by using the "Call Script" Event Command. Type
#   in the window following syntax:
#   
#     $scene = Scene_SavePoint.new
#   
#   When calling the scene, you can also specify disabled items by using an
#   array of indices.
#   
#     $scene = Scene_SavePoint.new([0, 2, 3])
#   
#   This example would disable the 1st, the 3rd and the 4th option.
#
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com/
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=


This is the "Plug-in Save Point" from Tons of Add-ons. It's supposed to make coding such menus additionally obsolete. Just get Tons of Add-ons, activate and set it up and you should be fine. :)
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nathmatt

i tried to use ut tons of addons but it wouldnt work with ur abs
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Blizzard

Maybe I need to update Tons again. I'll look into that today. Did you put the scripts int eh right order?

http://forum.chaos-project.com/index.php?topic=23.0
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nathmatt

no going to try that now just noticed that thread
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


nathmatt

i tryed it but im geting an error heres what i did


#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  SCENE_CALLS = ['Scene_ClassChange','Scene_SkillChange','Scene_Save', 'Scene_Load', 'Scene_End']
  SCENE_NAMES = ['job change','skill upgrade','Save Game', 'Load Game', 'End Game']
  WIN_WIDTH = 192
  EXIT_SAVE = 'Exit'
  MAP_BACK = true
  HOW_TO_BACK = 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


nathmatt

i fixed it i had to copy the class changer & skill upgrader & put in there own scenes i  put near all the other 1s dont know if it matters
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Blizzard

Yes, it's possible that the error was caused by a copy. Check out the stickied topic in RMXP database, it has an order in which you should put my scripts for they can work normally.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nathmatt

i had it in ur order but i had to take those out if ur script & put them in the own near the other scenes
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


k9inpoop

i can make it work with the tons of add ons script ??? it is easy