The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: TMS on December 19, 2009, 04:19:10 PM

Title: Changing Troops Depending on Map Regions
Post by: TMS on December 19, 2009, 04:19:10 PM
Hello. I am making a game with a world map, but would like the player to encounter different troops depending on what area of the map they are in. Is there any way to use events to change the troops encountered on a map?
Title: Re: Changing Troops Depending on Map Regions
Post by: modern algebra on December 19, 2009, 04:51:54 PM
I'm sure there's probably a script out there that creates areas, but no way through eventing alone I don't think, other than making several copies of the same map and transferring the player through each area without fade.
Title: Re: Changing Troops Depending on Map Regions
Post by: Kokowam on December 19, 2009, 05:07:56 PM
1) This isn't an RMXP Troubleshooting related problem. This part of the forums are for actual technical aspects. That's what troubleshooting is usually for. That applies here, too.

2) You'll need to use tileset terrain tags. Set the encounter areas to specific numbers for a map. Set a variable to the hero's terrain tag. Then run conditional branches to create encounters. I don't seem to see a "set map's encounters to" thing so you'll need to make small maps that have only certain encounters.

If you REALLY need some big map or something, you'll need to use random integers for every step you take so that it calculates whether or not you ran into a battle. Then, you use conditional branches to check what terrain tag you're on and give the proper battles.

Much props to one guy (I forgot who) who said terrain tags could be used. You could allow for more customization, but that takes more variables (like different rate of encounter in different areas). I used comments to separate conditional branches, but I didn't explain everything. Hopefully you can learn from this. If you can't learn, hopefully you can at least emulate. If you can't, this kind of system isn't for you :P Learn events a bit more (if ya need).
Title: Re: Changing Troops Depending on Map Regions
Post by: modern algebra on December 19, 2009, 05:10:43 PM
Yeah, terrain tags are a good idea if you wanted to event it. Also, apparently there is a script and I wrote it :P I haven't used RMXP for a looong time ;9

http://rmrk.net/index.php/topic,17124.0.html


I like moo's suggestion though - eventing will give you a lot more control.
Title: Re: Changing Troops Depending on Map Regions
Post by: TMS on December 20, 2009, 01:53:40 AM
Thank you both for the replies. I'll check out both methods.
Title: Re: Changing Troops Depending on Map Regions
Post by: DarkGamer on December 25, 2009, 07:57:51 PM
Well, the easier way is to create Areas in the maps adding the creatures that you want to appear there. I guess it is the easy way so far.
Title: Re: Changing Troops Depending on Map Regions
Post by: Grafikal on December 25, 2009, 07:58:48 PM
Areas is a VX thing.