Help - Search - Members - Calendar
Full Version: [Solved] Need help with battle background
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
Bowsermiky
Hello everybody, I need some help from more expert RPG Maker users than me.

I was trying to replicate a videogame move in my game. As the move triggers, a common event runs and changes both the character graphic and the battle background one.

Now, the problem is, how do I set the old background back after the move's over? I have no problem with the Character since it's the only one who can use this skill and thus, I just set his graphic to the normal one. But once I've changed the background how do I set it back to the one it was before?

I'll put some pictures to clarify the thing:

Here is the initial situation, battle just started.


Here the move starts, the background and the char graphic change.


Here the move just hits the guy


Here the char graphic turns back to normal and the fight goes on. Tho I want the battle back to turn back to normal as well



Any help would be really appreciated since I have no clue on how to do this at all!

Thanks in advance and hope I've been clear enough!
Jens of Zanicuud
Before the bbg swap, use a call script in the Common Event like this:

CODE
$game_variables[num] = $game_temp.battleback_name


Then, at the common event ending, put this call script...

CODE
$game_temp.battleback_name = $game_variables[num]


when num is the variable number you'd like to use...

It should work...

Jens

N.B. Use a variable number you haven't employed yet, since this script will automatically reset Game Variable number [num] everytime the Common Event is called!
Bowsermiky
Thanks for the help, just one thing. My variable is number 0028, do i type that or just 28 in num's place?

EDIT: Nevermind, I've tried 28 and it works perfectly! I'll do some more testing then edit this post to ask the thread to be closed.

Thanks a lot man!


EDIT2: Ok tested enough, this thread can be closed!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.