The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Joey_Noob on October 22, 2006, 02:50:05 PM

Title: in Riddicules side-view battle system that doesnt require battlers..
Post by: Joey_Noob on October 22, 2006, 02:50:05 PM
...there are many questions asking "How do make it so when he uses magic -or- shoot a gun he doesnt run up to the enemy"

i need to know this plz can sum1 tell me
Title: Re: in Riddicules side-view battle system that doesnt require battlers..
Post by: Sir Edeon X on October 24, 2006, 05:55:50 PM
What side-view battle system are you using?
I was able to do that in my game "The Spirits of Life" but with the animated side-view battle system.
You can download the demo in the projects/games area.
Title: Re: in Riddicules side-view battle system that doesnt require battlers..
Post by: Joey_Noob on October 25, 2006, 01:42:49 PM
sir edeon i downloaded your demo and i wondered how did you put the cutscene in before the title screen?
Title: Re: in Riddicules side-view battle system that doesnt require battlers..
Post by: Sir Edeon X on October 25, 2006, 03:32:29 PM
hmm... don't remember. Since I'm at college right now, tomorrow I'll teach you okay?  ;D
Gotta check it out at home.
Title: Re: in Riddicules side-view battle system that doesnt require battlers..
Post by: Sir Edeon X on October 26, 2006, 09:13:39 AM
Okay, so to make the cutscene before title:

1) Change the Main script so that after it begins in a new scene- Scene_Cutscene (change it after "Graphics.freeze").
2) Then you make a new scene with the following code:

class Scene_Cutscene
def main
    $data_actors        = load_data("Data/Actors.rxdata")
    $data_tilesets      = load_data("Data/Tilesets.rxdata")
    $data_common_events = load_data("Data/CommonEvents.rxdata")
    $data_system        = load_data("Data/System.rxdata")
    $data_mapInfos     = load_data("Data/MapInfos.rxdata")
    $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_map           = Game_Map.new
    $game_player        = Game_Player.new
    @save_max = 3
    for i in 0..@save_max     
      if FileTest.exist?("Save#{i+1}.rxdata") : $scene = Scene_Title.new end
    end
    $game_map.setup(!!!!!!!!!!)
    $game_player.moveto(XXX, YYY)
    $game_player.refresh
    $game_map.update
    $scene = Scene_Map.new
  end
end

3) Build the map with the cutscene and notice its ID.
4) At the end of the cutscene put the event to "Return to Title Screen"
5) Change the "!!!!!!!!!!" in the script with the ID of the map, and "XXX" and "YYY" with the coordinates you want the hero to start at.
And that's it! It will begin at your map, do the cutscene and then open the title screen.