Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

2 Pages V   1 2 >  
Closed TopicStart new topic
> [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
   
jens009
post Jan 19 2008, 09:40 PM
Post #2


L Did you know? Death gods... only eat apples
Group Icon

Group: +Gold Member
Posts: 2,976
Type: Scripter
RM Skill: Skilled




Wow. NIce add Synthesize to the RMVX scripts.

You should eventually convert most of XP scripts to VX. ;-]


__________________________

My RMXP Project:


Farewell RRR. =]
Go to the top of the page
 
+Quote Post
   
Rabu
post Jan 20 2008, 04:03 AM
Post #3


Level 4
Group Icon

Group: Member
Posts: 49
Type: None
RM Skill: Undisclosed




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"
  }


This post has been edited by Rabu: Jan 20 2008, 04:10 AM
Go to the top of the page
 
+Quote Post
   
Ty
post Jan 20 2008, 12:22 PM
Post #4


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
   
Lord Grundlefunk
post Jan 21 2008, 01:27 AM
Post #5


Level 2
Group Icon

Group: Member
Posts: 21
Type: None
RM Skill: Beginner




Looks like a simplified version of Moghunter's script. Nice Job.

This post has been edited by Lord Grundlefunk: Jan 21 2008, 01:28 AM
Go to the top of the page
 
+Quote Post
   
ComicStripGod
post Jan 22 2008, 08:46 AM
Post #6



Group Icon

Group: Member
Posts: 2
Type: None
RM Skill: Undisclosed




I'm underStand.How i call to this script on battle?
I ask this because i'm think Changed The Snece.
Go to the top of the page
 
+Quote Post
   
Ty
post Jan 22 2008, 09:17 AM
Post #7


Level 38
Group Icon

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




QUOTE (ComicStripGod @ Jan 22 2008, 08:53 AM) *
I'm underStand.How i call to this script on battle?
I ask this because i'm think Changed The Snece.


As long as this script is under all other scripts, it will work. It is called automatically in when a battle starts.


__________________________
My Script Demo link broken? Looking for old scripts? Go here:
http://synthesize.4shared.com
Go to the top of the page
 
+Quote Post
   
kageryuto
post Mar 1 2008, 09:18 AM
Post #8


Level 2
Group Icon

Group: Member
Posts: 15
Type: None
RM Skill: Undisclosed




i have a question. the background depend on which map you are, right? ok, thats fine. but what about a map with more than 1 landscape. for example desert, snow and forest( on the world map). what to do?
Go to the top of the page
 
+Quote Post
   
Ty
post Mar 1 2008, 08:21 PM
Post #9


Level 38
Group Icon

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




QUOTE (kageryuto @ Mar 1 2008, 09:25 AM) *
i have a question. the background depend on which map you are, right? ok, thats fine. but what about a map with more than 1 landscape. for example desert, snow and forest( on the world map). what to do?


The problem with is, I think RMVX removed Terrain Tag support, which would have been the easiest way to get that done. So if that is the case, you would have to come up with a different way of making it work.


__________________________
My Script Demo link broken? Looking for old scripts? Go here:
http://synthesize.4shared.com
Go to the top of the page
 
+Quote Post
   
kageryuto
post Mar 2 2008, 03:06 AM
Post #10


Level 2
Group Icon

Group: Member
Posts: 15
Type: None
RM Skill: Undisclosed




QUOTE (Synthesize @ Mar 1 2008, 07:28 PM) *
QUOTE (kageryuto @ Mar 1 2008, 09:25 AM) *
i have a question. the background depend on which map you are, right? ok, thats fine. but what about a map with more than 1 landscape. for example desert, snow and forest( on the world map). what to do?


The problem with is, I think RMVX removed Terrain Tag support, which would have been the easiest way to get that done. So if that is the case, you would have to come up with a different way of making it work.


the problem is i dont know ruby and i even cant programming. i need someones help
Go to the top of the page
 
+Quote Post
   
semajames
post Apr 26 2008, 01:15 AM
Post #11


Level 10
Group Icon

Group: Revolutionary
Posts: 164
Type: Event Designer
RM Skill: Advanced




QUOTE (Synthesize @ Mar 2 2008, 11:35 AM) *
QUOTE (kageryuto @ Mar 1 2008, 09:25 AM) *
i have a question. the background depend on which map you are, right? ok, thats fine. but what about a map with more than 1 landscape. for example desert, snow and forest( on the world map). what to do?


The problem with is, I think RMVX removed Terrain Tag support, which would have been the easiest way to get that done. So if that is the case, you would have to come up with a different way of making it work.


http://f44.aaa.livedoor.jp/~ytomy/software/tkool/index.html

VXTilesetTool allows terrain tags and directional movement.


__________________________
I hereby challenge you all to beat me!
http://www.rpgrevolution.com/forums/index....e=play&g=23
Good luck!
Go to the top of the page
 
+Quote Post
   
Lentho
post May 7 2008, 01:06 PM
Post #12


Level 4
Group Icon

Group: Member
Posts: 50
Type: Developer
RM Skill: Skilled




One bug with this script is the inability to use the "Battle Test" feature in VX due to an error with the Cache. Anyone know how to fix this?
Go to the top of the page
 
+Quote Post
   
Icedsnake
post Jun 17 2008, 08:59 AM
Post #13



Group Icon

Group: Member
Posts: 1
Type: Artist
RM Skill: Skilled




For me it say Error

Script 'Cache' line 75: type error occurred.
cannot convert nil into String.

anny one can help me out ??
Go to the top of the page
 
+Quote Post
   
2gamergirl2
post Jun 17 2008, 10:35 AM
Post #14


Level 3
Group Icon

Group: Member
Posts: 32
Type: None
RM Skill: Beginner




I think what is wrong with yours is that you named your maps. So instead of your map name being MAP001 (or whatever the default map names are), you named it Feild1 or something like that. I am not sure, and I have a feeling I am wrong, but I think you should change this:

1 => "001-Grassland01"



to this:

(map name) => "001-Grassland01"

so for example it would be this:

Field1 => "001-Grassland01"


Edit: Ok nevermind it didnt work lol i am totally stupid dont listen to me! Lol nvm nvm nvm nvm! Hopefully someone who is WAY more skilled then me comes along and helps you Icedsnake but sorry i couldnt lol.

This post has been edited by 2gamergirl2: Jun 17 2008, 10:46 AM


__________________________
[Show/Hide] Well.....Everyone I know says its REALLY weird to think that anime and video game characters are HOT! BUT I CAN'T HELP IT! IT'S THE WAY GOD MADE ME! Awwww....they are all just soooo freaking HOT!
SORA AND ROXAS I TOTTALY <3 YOU 100% ........And yah gotta love Cloud <3
And Ichigo's SOOOOOOOOOO HOT <3!!!!!!! XDDDDDDD

And those are just a few examples XD. So SERIOUSLY?! JUST BECAUSE IM OBSESSED DOES THAT MAKE ME CRAZY!?!?!??!?!?! ANSWER ME!!! AAAAAAANSWER MEEEEEE!!!!!!!!!


Visit My Website!!! ITS COOL! (still under construction though lol)

[Show/Hide] My Personalty/Multiple Intelligences
1% of people are like me!!!! Should i feel weird and alone, or awesome and special?


WOOOT WOOOOOOOOT!!!!!!!!! -2gamergirl2
Go to the top of the page
 
+Quote Post
   
YanXie
post Jun 17 2008, 11:02 AM
Post #15


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




QUOTE
For me it say Error

Script 'Cache' line 75: type error occurred.
cannot convert nil into String.

anny one can help me out ??


This problem has happened several times to some members in the forum, and the reason is the same. Using unofficial translated english VX copy.

To fix that, you'll need to uninstall that unofficial VX, and install the official english version of VX.

Refer to this thread for some more detail :

http://www.rpgrevolution.com/forums/?showtopic=15276

cheers,puppeto4. smile.gif




__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
Shanefpt
post Jun 23 2008, 12:57 PM
Post #16



Group Icon

Group: Member
Posts: 3
Type: Artist
RM Skill: Beginner




QUOTE (semajames @ Apr 26 2008, 04:29 AM) *
QUOTE (Synthesize @ Mar 2 2008, 11:35 AM) *
QUOTE (kageryuto @ Mar 1 2008, 09:25 AM) *
i have a question. the background depend on which map you are, right? ok, thats fine. but what about a map with more than 1 landscape. for example desert, snow and forest( on the world map). what to do?


The problem with is, I think RMVX removed Terrain Tag support, which would have been the easiest way to get that done. So if that is the case, you would have to come up with a different way of making it work.


http://f44.aaa.livedoor.jp/~ytomy/software/tkool/index.html

VXTilesetTool allows terrain tags and directional movement.


Ummmm... Is there anyone here that knows Japanese that can translate the functions of the tileset tool so that and English speaking user can get the advantages of using terrain tags? I'm not asking for a hack but just like, button at the top left does ~(blah blah blah) and the one under, etc etc...? Sorry, just not Japanese.
Go to the top of the page
 
+Quote Post
   
ChaoticFox9900
post May 16 2009, 09:02 PM
Post #17


Level 1
Group Icon

Group: Member
Posts: 6
Type: Event Designer
RM Skill: Beginner




Awesome! Thanks for uploading this!


__________________________
Go to the top of the page
 
+Quote Post
   
breadlord
post May 16 2009, 11:00 PM
Post #18


What did you expect...
Group Icon

Group: Revolutionary
Posts: 461
Type: Developer
RM Skill: Intermediate




please don't necropost.


__________________________

Check out my project http://www.rpgrevolution.com/forums/index....showtopic=29698
[Show/Hide] I thought my sig was to big so... Clicky clicky


[Show/Hide] My RRR card, Thanks Holder!!




[Show/Hide] What things am I, CLICK!!!

I taste a bit like Almonds.


Mmm, the taste of almonds - anathema to many with nut allergies, and a bad sign for many more, as my taste is not unlike that of cyanide. Am I good or am I poison? A risky thing to guess about. What Flavour Are You?



What Mystical creature are you?
Pegasus



You are a shy, night time person and you are very gentle and soft hearted. You are like the opposite from your cousin the unicorn.


Which Final Fantasy Character Are You?
Final Fantasy 7


[Show/Hide] Can you read this?
Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.


[Show/Hide] Personality things




Your answers suggest you are a Strategist

The four aspects that make up this personality type are:



Summary of Strategists

* Quiet, easy-going and intellectually curious
* Use logical, objective thinking to find original solutions to problems
* Think of themselves as bright, logical and individualistic
* May be impractical, forgetting practical issues, such as paying bills or doing the shopping

More about Strategists

Strategists are quiet people who like to get to the heart of tough problems on their own and come up with innovative solutions. They analyse situations with a sceptical eye and develop ways of measuring everything, including themselves.

Strategists are the group most likely to say they are unhappy in their job, according to a UK survey.

Strategists are generally easy-going. They are intellectually curious and enjoy abstract ideas. Sometimes they like thinking of a solution to a problem more than taking practical steps to solve it.

In situations where they can't use their talents, are unappreciated, or not taken seriously, Strategists may become negatively critical or sarcastic. Under extreme stress, Strategists could be prone to inappropriate, tearful or angry outbursts.

Strategists may be insensitive to the emotional needs of others or how their behaviour impacts the people around them.


Go to the top of the page
 
+Quote Post
   
TalesOf_Fantasy
post May 17 2009, 01:30 AM
Post #19


Level 3
Group Icon

Group: Member
Posts: 42
Type: Artist
RM Skill: Skilled




cool script! it's simple and easy. definely gonna use it


__________________________



MZ Multimedia Studios current projcts:

Divine Fantasy
Entusia 'The Unlimited Sky'
Go to the top of the page
 
+Quote Post
   
megamario
post Nov 12 2009, 11:09 PM
Post #20


Level 2
Group Icon

Group: Member
Posts: 27
Type: Mapper
RM Skill: Intermediate




When You get that error, its from the script, I got it too so i removed it and it still said it. Then i removed the battle back picture and it went fine! wink.gif


__________________________
I love Waffles, I love Pancakes, hmmmm French Toast?

[Show/Hide] Open it?




[Show/Hide] My FF Caracters
FF9Yay!
FF10


[Show/Hide] Current Project
Game Title: FFIX - Legend Of The Chocobo Knight
Story:9%
Characters:12%
Scripts:21%
Maps:1.8%

Overall Percent: 2.5%


[Show/Hide] Open if you Dare!
You Just got Shoop Da Whooped
Go to the top of the page
 
+Quote Post
   

2 Pages V   1 2 >
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: 25th May 2013 - 04:51 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker