Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
Bigace360

Scene_Title_Skip

Recommended Posts

Scene_Title_Skip

Author: Bigace360

Type: Title / Save / Load / GameOver Add-on

 


Introduction

 

This script basically does what the title says, it skips it. This is basically for developers who get tired of seeing the title screen over and over again when there testing there game.


Feature

  • Skips title screen
  • Allows the Developer to add items when he starts the game at the top.


Screenshot

picture skipping the title screen in your head.

 

Demo

Not need

 

Script

 

#==============================================================================
# ** Scene_Title_Skip
# By Bigace360
# Used to test games without having to go through the title screen.
#==============================================================================
class Scene_Title
 #Allows you to change the amount of items you get when you start the game.
 USABLE_ITEM = 10
 WEAPON	  = 10
 ARMOR	   = 10   
 #--------------------------------------------------------------------------
 def main
   if $BTEST
  battle_test
  return
   end
   $data_actors	    = load_data("Data/Actors.rxdata")
   $data_classes	   = load_data("Data/Classes.rxdata")
   $data_skills	    = load_data("Data/Skills.rxdata")
   $data_items		 = load_data("Data/Items.rxdata")
   $data_weapons	   = load_data("Data/Weapons.rxdata")
   $data_armors	    = load_data("Data/Armors.rxdata")
   $data_enemies	   = load_data("Data/Enemies.rxdata")
   $data_troops	    = load_data("Data/Troops.rxdata")
   $data_states	    = load_data("Data/States.rxdata")
   $data_animations    = load_data("Data/Animations.rxdata")
   $data_tilesets	  = load_data("Data/Tilesets.rxdata")
   $data_common_events = load_data("Data/CommonEvents.rxdata")
   $data_system	    = load_data("Data/System.rxdata")
   $game_system = Game_System.new
   command_new_game
   Audio.me_stop
   Audio.bgs_stop
   Graphics.transition
   loop do
  Graphics.update
  Input.update
  update
  break if $scene != self
   end
   Graphics.freeze
 end
 #--------------------------------------------------------------------------
 def update
 end
 #--------------------------------------------------------------------------
 def command_new_game
   $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
   for i in 1...$data_weapons.size
  $game_party.gain_weapon(i, WEAPON)
   end
   for i in 1...$data_armors.size
  $game_party.gain_armor(i, ARMOR)
   end
   for i in 1...$data_items.size
  $game_party.gain_item(i, USABLE_ITEM)
   end
   $scene = Scene_Map.new
 end
end

 

 


 

Compatibility

No known issues.

 


Credits and Thanks

  • Bigace360, for the script


Author's Notes

 

Enjoy!

Share this post


Link to post
Share on other sites

Notice

This script has been add to Warrior of Add-on Script. The final update for the Scene_Title_Skip script has been add to the Add-on script. The script shown on this page is the previous verision. There's nothing that different, other then that I've improve the code a bit.

Share this post


Link to post
Share on other sites

Just out of curiosity, why even bother with a "command_new_game" and have it enter a loop, just to break on the next update.

And since there is nothing to start the audio, you don't need to stop it. That would only be useful if you actually use a title screen, but since this overwrites instead of aliasing, that won't happen.

Share this post


Link to post
Share on other sites

  1. Wouldn't I need the "Command_new_game" for all that stuff inside it to work plus the part add with the items or that all not need, I can test it see after I go to bed in few minutes.
  2. I forgot about that, if you don't go to the title screen then the audio part isn't really needed.

Edit: I Just Aliased command_new_game, and it still works fine and I deleted the audio parts as you said they were useless. I'll add them to the Warrior of Add-Ons update on friday/Saturday.

Edited by bigace

Share this post


Link to post
Share on other sites

There is no point in aliasing anything when you are making it impossible to ever have the original functionality, you may as well just overwrite it.

 

What I meant was something like this:

 

class Scene_Title

alias title_skip main
def main
if $first_load == nil
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
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
$first_load = true
$scene = Scene_Map.new
else
title_skip
end
end
end

 

 

This makes it so that the title is only skipped in the first load. After that, original functionality is restored, and "Returning to Title" doesn't just loop back to the map. As you can seen, there is no loop, and it is all done in one short method. I usually whip one of these little scripts up when writing a script and I have to to constantly keep skipping through the title screen.

Share this post


Link to post
Share on other sites

This what I did, for the Warrior_Addon Script.

 

 

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# ■ Scene_Title_Skip
# ■ Author: Bigace360
# ■ Version: v1.05 [Last update]
# Used to test games without having to go through the title screen.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
class Scene_Title
#Allows you to change the amount of items you get when you start the game.
USABLE_ITEM = 10
WEAPON	  = 10
ARMOR	   = 10  
NEW_SCENE   = Scene_Map.new #The scene you go to after the Title Scene
def main
 battle_test if $BTEST
 $data_actors		= load_data("Data/Actors.rxdata")
 $data_classes	   = load_data("Data/Classes.rxdata")
 $data_skills		= load_data("Data/Skills.rxdata")
 $data_items		 = load_data("Data/Items.rxdata")
 $data_weapons	   = load_data("Data/Weapons.rxdata")
 $data_armors		= load_data("Data/Armors.rxdata")
 $data_enemies	   = load_data("Data/Enemies.rxdata")
 $data_troops		= load_data("Data/Troops.rxdata")
 $data_states		= load_data("Data/States.rxdata")
 $data_animations	= load_data("Data/Animations.rxdata")
 $data_tilesets	  = load_data("Data/Tilesets.rxdata")
 $data_common_events = load_data("Data/CommonEvents.rxdata")
 $data_system		= load_data("Data/System.rxdata")
 $game_system = Game_System.new
 command_new_game
 Audio.me_stop
 Audio.bgs_stop
 Graphics.transition
 loop {Graphics.update; Input.update; update; break if $scene != self}
 Graphics.freeze
end
def update; end
alias ace_command_new_game command_new_game
def command_new_game
 ace_command_new_game
 (1...$data_weapons.size).each {|i| $game_party.gain_weapon(i, WEAPON)}
 (1...$data_armors.size).each {|i| $game_party.gain_armor(i, ARMOR)}
 (1...$data_items.size).each {|i| $game_party.gain_item(i, USABLE_ITEM)}
 $scene = NEW_SCENE
end
end

 

 

The thing is you didn't add the "gain_item" part in your script like I did. However I am making a Testing Script that will include those later, but for now these would be revealent for those who wanted added items to there test file. I'm probably looking at this wrong anyway.

 

Edit: Oh okay, just notice what you did, I'll just add the "gain_item" methods right above the $scene.

Edited by bigace

Share this post


Link to post
Share on other sites

Update

okay after following ForeverZer0's advise, this will (for the last time) be the final update. That will be added to the Warrior_addon script. On friday/saturday with the rest of the updates.

Edited by bigace

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Fcrlovem
      Hello friends🐿️, I'm immersed in the project of a videogame "The Gymkhana of the Treasure" I've been working for months now but I still have a long way to go, I've reached the point where I need help to create more sprites and their respective images with emotions (manga style) , and on the other hand I also needed the support of someone who understands the RGSS to help me with the creation of SCRIPTS that improve the project.
       
      It is a long project, with 4 seasons, and events depending on it, and above all it is about exploration. I have the idea of undertaking with it, therefore I will do marketing courses once we finish it to try to take it to the top, trading it internationally if the players give it a pleasant welcome, translating it into English and Spanish, and later investing profits for it. translate it into more languages and reach more people.
       
      I offer 20% of the profit for each collaborator (I need two people) I look for transparency and good teamwork. I am putting all my heart into this project.
       
      Although I offer 20%, remember that in entrepreneurship, it does not always work out and that failure exists, therefore I do not promise that it will give benefits, but I will give 100% trying to overcome the obstacles that arise.
       
      If you are interested, I would be delighted to see your works to see if they adapt to the style of the video game, especially graphically.
       
      Thank you very much 💖
       
      Postscript: my native language is Spanish, and my English is from Google (warning 😪). 
    • By troyr
      hello, I came to ask a way or script to center the texts without having to use spaces to center them
      I was for a while looking for a script or something to help me focus the texts in rpg maker vx ace, without success
      So I come to ask directly if anyone has any way to focus the texts, thank you very much. :)
    • By Bob423
      Title screen by Kevin.ds
      (you've been replaced shiny :P)
       
      Story

      2000 Years ago a huge city covered nearly all of the world. It was a thriving city where everyone was happy. Scientists discovered something that could make life so much easier. Not that it wasn't easy already. The energy gave the people the ability to summon water, or fire out of thin air, control earth, and wind, as well as heal the injured instantly. This power was in limited supply, however. People began to get greedy, and keep this energy to themselves. It was stored in glass containers, and released for a brief moment when used. The greed was slowly weakening the energy, and the people eventually ran out. They blamed each other for this.
      Then one day, the sky turned black. The city began to sink into the ground, taking most of the people with it. Some people made it out alive. The people began to restart their society. For hundreds of years, everything was fine. There wasn't even any trace of the city.
      One day an unlimited supply of that energy was found. The energy, which the people began to call magic, had been passed down; from generation to generation, through the peoples' souls, but lay dormant until then. Children now had the ability to use magic whenever they wanted. As the children aged, they learned to control their magic, and built schools to teach their children. Schools where the student were able to learn about the kind of magic they wanted to study.
       
      The 3 types of magic are: Attack Magic, Healing Magic, and
      Status Magic.
       
      One particular 16 year old boy named *Bob starts his first day at a school in his hometown of Silverwood Village. His best friend, *Joe happens to be in his first class. Over the course of their first year at the school, they meet a girl named *Cathy, who becomes their friend eventually. Finally, at the end of the year, they take the Final Exam together, and pass. Not long after being informed of their achievement, the wooden training dummies, brought to life by magic, get out of control, and attempt to burn the school down. They all make it out alright, and the teachers use water spells to douse the flames. When they reach the village, they find that their entire home town is on fire! They find a way to escape the flames by jumping over a broken part of a fence. While escaping the flames, they get separated, and Bob falls unconscious. Bob wakes up in a house south of Silverwood Village, and meets an old man, who only says to call him Brian, and that he found Bob unconscious, but not the others. He directs Bob toward the village, and hands him a sword and shield as he sets off to find his friends.
       
      after finding his friends, Bob, with the help of his friends, must save the world from an ancient, corrupted power formerly sleeping under the earth's crust.
       
      *Player can name this character


       
      contents
      places
      features
      characters
      screenshots
      videos
      credits
      download
       
      [/anchor]
       
      Places
       
       

       
      Features
       
       
       

       
      Characters
       
       
       


       
      Screenshots
       
      here's an album of them http://imgur.com/a/6TGnQ








       

      First 19 minutes of the demo
      [media]http://www.youtube.com/watch?v=TSO1x_sagtQ[/media]

       

      Credits
       
       
       
       

       
      Here's a banner made by Kevin.ds

       
      [anchor=download]
       
      UPDATE: Added difficulty levels and made it so the player is forced to chose one of each class.
      this prevents the player from getting stuck on certain parts and forced to restart the game.
      Expert mode is how the game was before i added the difficulty levels.
      Hopefully the game is easier now :D
       
      DOWNLOAD 
      (About 120mb)

      If the above link doesn't work, I'm probably fixing something.
       
       
      Known Bugs
      (That I can't fix, or not without making parts of the game too easy.)
       
       
       
      Tips for stuck people:
       
       
       
      If something seems weird and isn't explained in game,
      (e.g. Caeli Temple being really high in the air when you're inside, but on a mountain when outside, or the Mana Temple seeming less old, and some rooms being different from the rest of the temple)
      it can usually be explained by saying "It's magic"
       
      sorry if the game is broken. Alternatively, you can watch this:
      http://www.youtube.com/playlist?list=PLmZjr8BajltKjHOZWMbmTdl7mpNDzMDyI&feature=mh_lolz
       
      The Hidden City of Arcatis is more of a prequel then an actual beginning...if that makes sense. I've written out what happens in the game as another alternative to playing it. http://pastebin.com/07Ns42cG
    • By Polraudio
      Im wondering if anyone could spare some time to make me a neat script. It doesnt have to be private just for me but for everyone to enjoy and use :D
       
      This script needs 2 parts.
       
      Part 1: I need a private item storage script that will allow a person to store things like they would in real life and be able to have multiple containers. EX: a pot will be able to store lets say 5 items and a chest will be able to store 25 items but those storage containers are not shared.
      If i put items in the pot they wont show up in the chest when i open them and vice versa.
       
      Syntax EX: $scene = Scene_Storage[num, size].new
      num = the storage id. EX: 1 would be the pot, 2 would be the chest,3 would be whatever, etc....
      size = how many items can fit in the container
       
      Full syntax in use: $scene = Scene_Storage[1, 5].new
      That would mean when the callscript is used it will open container #1 with whatever items the player put in them and the player can put a max of 5 items in it.
       
      Part 2: Part 2 might be a little tricky. It needs to be the same as the top one but every item put in these containers is shared across save files.
       
      EX: Save 1 puts potions in container 1. When save 2, 3, or 4 access that same container on their save the potions will be in there. when they take the potions out it will no longer be in there for other saves. This is shared storage.
       
      Syntax EX: $scene = Scene_SharedStorage[num, size].new
       
      Finally the reason for this. The reason for this is because my game is going to be random loot heavy and you will have an item limit so you cant carry 10000lbs worth stuff like other games.
       
      The reason for sharing between saves is simple. If you find a rare item and want to give it to a friend on another save file you have the ability to. You dont want to be an assassin and have a weapon you cant use. just give it to another save then :D.
       
      If you need more info please feel free to ask :D.
    • By avarisclari
      Is there a simple way to create a script for a cutscene that requires you to have all items in your inventory like id's 001-010 for example?
×
×
  • Create New...