Hello I am relatively new to RPG Maker VX Ace, and well I have my game setup so that enemies are seen on the map. I want to set it up in the event that it will randomly generate different troops that I set with a variable. Is this possible? If it is can someone please advice me on how to perform this action?
Randomly Choose an enemy Troop? Is it possible?
RPG Maker VXAce SupportOkay, so I'm really new to this... Only had the Program about a week.
I did find this in a google search though.
http://rpgmaker.net/scripts/315/
Apparently you set up encounter placeholders and the RNG pulls a number from the available enemies you included in the script to call from.
Didn't look at the code, just the description. Hope it's what you're looking for.
I did find this in a google search though.
http://rpgmaker.net/scripts/315/
Apparently you set up encounter placeholders and the RNG pulls a number from the available enemies you included in the script to call from.
Didn't look at the code, just the description. Hope it's what you're looking for.
Absolutely no need for scripting - that is basic eventing.
Just use control variable to get a random number, and then use battle processing with that variable as designation.
Two event commands per evented enemy - that's all it takes.
Just use control variable to get a random number, and then use battle processing with that variable as designation.
Two event commands per evented enemy - that's all it takes.
There is also a way of doing this which doesn't even need a variable.
In map properties, list the troops you want to appear in that location. You can copy/paste this list as much as you like onto other maps if you have multiple maps for a dungeon. It allows you to be as selective as you want about which troops appear where. Then in your event, when you select Battle Processing, check the 'Same as random encounter' box, and the engine will automatically select at random from the troops you've listed.
In map properties, list the troops you want to appear in that location. You can copy/paste this list as much as you like onto other maps if you have multiple maps for a dungeon. It allows you to be as selective as you want about which troops appear where. Then in your event, when you select Battle Processing, check the 'Same as random encounter' box, and the engine will automatically select at random from the troops you've listed.
Wait but that is going to give me a battles even when you don't run into an enemy right? Maybe I could paint like one or two squares in the map to sort of make it impossible to have random battles outside of touching an actual enemy on the screen. Maybe that will work
you can disable the random enemies completely by event command, and the battle processing will still use that table.
Yes, Event Command Menu, tab 3, 'Change Encounter', 'Disable'.
I use this all the time when the player chooses Visible Enemies. It works to give plenty of variation, but I can control which troops appear on which maps.
I use this all the time when the player chooses Visible Enemies. It works to give plenty of variation, but I can control which troops appear on which maps.
OH! That is awesome! Thank you for your help! 😀 😀 😀 😀 😀 😀
Original thread: https://forums.rpgmakerweb.com/threads/randomly-choose-an-enemy-troop-is-it-possible.41794/