[RESOLVED] Need a script edit for info cards

Started by Hellfire Dragon, April 06, 2009, 09:40:43 am

Previous topic - Next topic

Hellfire Dragon

April 06, 2009, 09:40:43 am Last Edit: April 08, 2009, 03:57:43 pm by Sally
jbrist's Info. Card Script

I need an edit of this so the player has to press 'C' before the card disappears. Normally it disappears after a few seconds which sucks :(

I also wanted to know how I woud transfer the player using a script. I'm adding an option to the title screen, a battle arena. I want the player to be transfered to a map after selecting the option, how do it?

ty in advance

nathmatt

April 06, 2009, 06:28:45 pm #1 Last Edit: April 07, 2009, 09:14:09 am by nathmatt
just use this for it
change the $data_system.start_map_id to the map id u want to go to change the $data_system.start_x, $data_system.start_y to the x & y u want to go to
Spoiler: ShowHide
def Battle_Arena
    $game_system.se_play($data_system.decision_se)
    Audio.bgm_stop
    Graphics.frame_count = 0
    $game_temp          = Game_Temp.new
    $game_system        = Game_System.new
    $game_switches      = Game_Switches.new
    $game_variables     = Game_Variables.new
    $game_self_switches = Game_SelfSwitches.new
    $game_screen        = Game_Screen.new
    $game_actors        = Game_Actors.new
    $game_party         = Game_Party.new
    $game_troop         = Game_Troop.new
    $game_map           = Game_Map.new
    $game_player        = Game_Player.new
    $game_party.setup_starting_members
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    $game_map.autoplay
    $game_map.update
    $scene = Scene_Map.new
  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


Hellfire Dragon

Awesome! :D ty matt

Can anyone help with the script edit?

nathmatt

April 08, 2009, 09:43:23 am #3 Last Edit: April 08, 2009, 10:51:22 am by nathmatt
ok i made it work the way u want but u will have to change the way u call the script
u call it like this $info = what_u_would_normally_call then on the next line call $scene = Scene_info_cards.new
put this right above his script
lol btw the battle_arena was just new_game
& this code is a striped version of the menu script

Spoiler: ShowHide
class Scene_info_cards

  def main
    @cards_window = $info
    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
    Graphics.freeze
    @cards_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update windows
    @cards_window.update
    if Input.trigger?(Input::C)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # Switch to map screen
      $scene = Scene_Map.new
      return
    end
  end
end

since im calling a new new scene if u want to call more than 1 card or have another window with something else let me know
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


Hellfire Dragon


nathmatt

if u dont need anything else add (resolved) to your topic
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