- 91
- Posts
- 15
- Years
- Seen May 4, 2011
Well you can always go about editing the main script of the game. What I wrote above is for events, for instance if you battle a legendary pokemon as an event then you would go about typing that code in the script function to change the battle background and stuff like that.
If that's not what you want, you can go about editing the script "PokeBattle_ActualScene" and go to the line where it says:
Code:battlebg="Graphics/Pictures/battlebg#{id}.png" enemybase="Graphics/Pictures/enemybase#{id}.png" playerbase="Graphics/Pictures/playerbase#{id}.png" (you can use the find option to get to this quicker)
So what you could do here is just make few more lines of codes containing
Code:if $game_map.map_id==id of your map battlebg="Graphics/Pictures/battlebgX.png" enemybase="Graphics/Pictures/enemybaseX.png" playerbase="Graphics/Pictures/playerbaseX.png" else battlebg="Graphics/Pictures/battlebg#{id}.png" enemybase="Graphics/Pictures/enemybase#{id}.png" playerbase="Graphics/Pictures/playerbase#{id}.png" end
As usual replace the X with the specified extension and for the map id type the number that you see in RMXP at the bottom of the window right before the name of the map (don't include the "0" in front of numbers otherwise connections will be disabled). So by this you could define the map for which you want your graphics to change.
The code basically is that one, but instead of the number of the map, i wanted it to be for the Type of Encounter found on Encounters.txt, basically, if it's Water, GoodRod, Cave, Land, etc
I guess theres not THAT much to change on the code you gave me, but i still don't know how to do it, so if you could give me one last help : )