Different Region Battlebacks

ArcaneEli

Mage of Thunder
Veteran
Joined
Mar 24, 2012
Messages
205
Reaction score
35
First Language
English
Primarily Uses
I would love to know if there was a script that:

Allowed different regions to have different battlebacks/BGM playing when you walk on them. I want this so my World Map can have you fight in the Snow and actually have a Snow Background.

I know Hime has a script that does this, sadly if messes with the Map Name Pop-up so if you change maps it still keeps the name of the Region you were in before on the map-name, and if you try to save (using Yanflys) It also appears as the location instead of what map your on.
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
they are already premade in the map_spriteset script but who only work with the field type tileset
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
Is that not like, a default feature? Regions being able to have a different battleback? 
 

Bribolox

Veteran
Veteran
Joined
May 20, 2012
Messages
92
Reaction score
25
First Language
English
Primarily Uses
The default game already does that.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
That is also what I thought ~ again, is that not already possible - being able to assign troops a specific battleback when encountered within a specific region upon a map ?
 

Nanaki_Fan

Veteran
Veteran
Joined
Jul 15, 2014
Messages
501
Reaction score
159
First Language
English
Primarily Uses
That is also what I thought ~ again, is that not already possible - being able to assign troops a specific battleback when encountered within a specific region upon a map ?
I dont think so. I thought the Troop page - change battle back was for testing? I have never had it effect any in-game stuff.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
Hmm.. Just had a look into it and it seems your right ~ I always thought that was a feature already lol.

Guess its my own fault for never scripting battle related crap :D
 

Nanaki_Fan

Veteran
Veteran
Joined
Jul 15, 2014
Messages
501
Reaction score
159
First Language
English
Primarily Uses
Hmm.. Just had a look into it and it seems your right ~ I always thought that was a feature already lol.

Guess its my own fault for never scripting battle related crap :D
Haha no worries. I had to double check as well, thought I might have missed something :p

To the OP - So you are effectively looking for some sort of Tile-related system i.e stepping on this tile (region) start battle draw this process?

This could be done with common events, I think.
 

ArcaneEli

Mage of Thunder
Veteran
Joined
Mar 24, 2012
Messages
205
Reaction score
35
First Language
English
Primarily Uses
Idk why but I always forget to check to see if this could be done with events... And as a matter of fact it can very easily. I swear I like don't read half the stuff in those 3pages of Event Commands.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
The only thing I use from events is Comment, Show Text, Control Variables and script calls. Maybe the odd choice command :D
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
ARGGG I promised myself to stay away from the forum while I will be sick....but no can't stop myself xD

okai for show a way and this will be a cake for dekita to do this via a script 

module REGIONmodule BATTLE_BACK_BETA # regions_id =>["floor_name","Wall_name"] BATTLE_BACK_REG ={ 1 =>["floor", "wall"] }endendclass Spriteset_Battle# then you edit the battleback method for take in consideration the Region ID simple like thatendthen I show you the path.....that's how you can make easy region id battleback ~
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
There are even easier ways of doing it using

$game_map.change_battleback(battleback1_name, battleback2_name) ;)
 
Last edited by a moderator:

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
Events? arent those only for performing script calls and having a little graphic thing?

Code:
class Game_Map  alias :update_region_plaxalias :update_parallax  def update_parallax    update_region_plaxalias    update_region_battleback  end    def update_region_battleback    case region_id($game_player.x, $game_player.y)    when 1 then change_battleback("Region 1 - 1", "Region 1 - 2")    when 2 then change_battleback("Region 2 - 1", "Region 2 - 2")    when 3 then change_battleback("Region 3 - 1", "Region 3 - 2")      # An so on...    else ; setup_battleback # revert to map's default settings    end  end  end
 
Last edited by a moderator:

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
lol is way is even better~ ! 
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
It could probably use some optimization methods for not altering the battleback when its not required, but alas, I am also lazy :p
 

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
Or manually put it this way:

Code:
class Scene_Map < Scene_Base  alias :scene_map_update :update  def update    scene_map_update    case $game_player.region_id     # continue, when 2, when 3.. do your own stuff      when 1        $game_map.change_battleback("Castle", "Brick")    end  endend
 

ArcaneEli

Mage of Thunder
Veteran
Joined
Mar 24, 2012
Messages
205
Reaction score
35
First Language
English
Primarily Uses
There's this



http://himeworks.com/2014/02/map-regions/

Funfact, this is the script I was using and why replying to this message I figured out the Solution to my problem, BUT a new one has randomly arisen, because my Music has numbers a space away from the text (ex: Thunder 1000005th BC the coming of Lightning) i guess it misread the Number as the Volume, so I have to fix that now.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top