Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> [RMVX] Battle Backgrounds
Ty
post Jan 19 2008, 09:34 PM
Post #1


Level 38
Group Icon

Group: +Gold Member
Posts: 1,007
Type: Scripter
RM Skill: Undisclosed




Script Name: Battle Backgrounds
Written by: Synthesize
Current version: Version 1.00A
Release Date: January 20, 2008

What is this script?
This simple script allows you to have a battle background instead of the abstract background which is the default for RPG Maker VX. Simply define the Background filename in the customization section, along with your Map_ID.

Features:
- Simple
- Easy to use
- Turn ON/OFF the battlefloor
- Once RMVX is released, I will interpret more features

Version History:
V1.00
- Script is released

[Show/Hide] Script:

CODE
#===============================================================================
# Battle Backgrounds - RMVX
#===============================================================================
# Written by Synthesize
# January 20, 2008
# Version 1.00A
#===============================================================================
#                       * This script is untested. *
#===============================================================================
module SynBattleB
  # Place your battle backgrounds in the 'Pictures' folder (Graphics/Pictures)
  # Format = {map_id => Battleback Name}
  Battle_background =
  {
  1 => "001-Grassland01",
  2 => "001-Grassland01"
  }
  #-----------------------------------------------------------------------------
  # Create the battlefloor?
  Create_battlefloor = false
  #-----------------------------------------------------------------------------
  # This was being requested on quite a fe forums now, so I threw a quick script
  # together. It is nice and simple, and does what it is suppsoed to do. Once
  # RMVX is released in English, then I will add additional features into this.
  #-----------------------------------------------------------------------------
end
#-------------------------------------------------------------------------------
# Spriteset_Battle
#-------------------------------------------------------------------------------
class Spriteset_Battle
  alias syn_create_battlefloor create_battlefloor
  #-----------------------------------------------------------------------------
  # Create Battleback
  #-----------------------------------------------------------------------------
  def create_battleback
    image = SynBattleB::Battle_background[$game_map.map_id]
    @battleback_sprite = Sprite.new(@viewport1)
    @battleback_sprite.bitmap = Cache.picture(image)
  end
  def create_battlefloor
    @battlefloor_sprite = Sprite.new(@viewport1)
    syn_create_battlefloor if SynBattleB::Create_battlefloor == true
  end
end
#===============================================================================
#                        * This script is untested *
#===============================================================================  
# Version 1.00A
# January 20, 2008
# Written by Synthesize
#===============================================================================
# Battle Backgrounds - RMVX
#===============================================================================


Questions? Concerns? Post them.


__________________________
My Script Demo link broken? Looking for old scripts? Go here:
http://synthesize.4shared.com
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Ty
post Jan 20 2008, 12:22 PM
Post #2


Level 38
Group Icon

Group: +Gold Member
Posts: 1,007
Type: Scripter
RM Skill: Undisclosed




QUOTE (Rabu @ Jan 20 2008, 04:10 AM) *
Seems to be a good first step. Would be nice, if you will enhace it, when english FV is released, so Battle-Backgrounds are corresponding to Map-Areas, you're on.

And could you give an example, how to exhance this section, when using more backgrounds for other maps.
CODE
{
  1 => "001-Grassland01",
  2 => "001-Grassland01"
  }


Once I get Vx when it comes out, I will enhance it so you can put a tag in the map name, say [F1] then when you enter battle on that map, the battle background will use the 'Forest1' battle background as defined in the customization. As for your question:

CODE
{
  1 => "001-Grassland01",
  2 => "001-Grassland01",
  3 => "Battle Back 3",
  4 => "Back 4"
  }


For every map you want to have battles on, place a comma (Reference above), press enter then insert your map name followed by the battle background. Everything inside the {} brackets is a hash, so the way scripts use them is a script will check the value in the hash, then use the returning value. So in this case the script checks to see what map_id the player is on when the battle starts, so the scripts then 'asks' the hash to return the value that the script uses. So if you are on map 3 and enter a battle, the hash will tell the script to draw a battle background called 'Battle Back 3"


__________________________
My Script Demo link broken? Looking for old scripts? Go here:
http://synthesize.4shared.com
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- Synthesize   [RMVX] Battle Backgrounds   Jan 19 2008, 09:34 PM
- - jens009   Wow. NIce add Synthesize to the RMVX scripts. You...   Jan 19 2008, 09:40 PM
- - Rabu   Seems to be a good first step. Would be nice, if y...   Jan 20 2008, 04:03 AM
- - Lord Grundlefunk   Looks like a simplified version of Moghunter's...   Jan 21 2008, 01:27 AM
- - ComicStripGod   I'm underStand.How i call to this script on ba...   Jan 22 2008, 08:46 AM
- - Synthesize   QUOTE (ComicStripGod @ Jan 22 2008, 08:53...   Jan 22 2008, 09:17 AM
- - kageryuto   i have a question. the background depend on which ...   Mar 1 2008, 09:18 AM
- - Synthesize   QUOTE (kageryuto @ Mar 1 2008, 09:25 AM) ...   Mar 1 2008, 08:21 PM
|- - kageryuto   QUOTE (Synthesize @ Mar 1 2008, 07:28 PM)...   Mar 2 2008, 03:06 AM
|- - semajames   QUOTE (Synthesize @ Mar 2 2008, 11:35 AM)...   Apr 26 2008, 01:15 AM
|- - Shanefpt   QUOTE (semajames @ Apr 26 2008, 04:29 AM)...   Jun 23 2008, 12:57 PM
- - Lentho   One bug with this script is the inability to use t...   May 7 2008, 01:06 PM
- - Icedsnake   For me it say Error Script 'Cache' line 7...   Jun 17 2008, 08:59 AM
|- - Varaosa   QUOTE (Icedsnake @ Jun 17 2008, 06:59 PM)...   Feb 26 2012, 06:53 AM
- - 2gamergirl2   I think what is wrong with yours is that you named...   Jun 17 2008, 10:35 AM
- - puppeto4   QUOTE For me it say Error Script 'Cache' ...   Jun 17 2008, 11:02 AM
- - ChaoticFox9900   Awesome! Thanks for uploading this!   May 16 2009, 09:02 PM
|- - breadlord   please don't necropost.   May 16 2009, 11:00 PM
- - TalesOf_Fantasy   cool script! it's simple and easy. definel...   May 17 2009, 01:30 AM
- - megamario   When You get that error, its from the script, I go...   Nov 12 2009, 11:09 PM
|- - akura   QUOTE (megamario @ Nov 13 2009, 12:09 AM)...   Dec 14 2011, 11:31 AM
- - Jediknightjace   Working great, but does anyone know if there's...   Dec 14 2009, 01:59 PM
|- - ZeroManArmy   QUOTE (Jediknightjace @ Dec 14 2009, 02:5...   Dec 16 2009, 04:42 PM
|- - Jediknightjace   QUOTE (ZeroManArmy @ Dec 16 2009, 08:42 P...   Dec 21 2009, 12:41 PM
- - Hiromu656   sorry for necro, but this is a very useful script:...   Dec 13 2010, 04:49 PM
- - Kread-EX   That's because you are probably entering a bat...   Dec 14 2010, 05:08 AM
- - mozzy   QUOTE (Kread-EX @ Dec 14 2010, 09:08...   Aug 7 2011, 10:05 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 01:31 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker