Is there a way to make it so that different enemies will appear in random encounters depending on which switches are activated? I'm making a game where you recruit the various party members in whatever order you want, and the enemies change depending on which actors you have in your party (I already have a bunch of switches set for each possible order).
Switch-Specific Random Encounters
RPG Maker VXAce SupportP.S., If there is a script that does this, I'd very much appreciate it if someone would link me to it.
not switch based, but there is 1 that is region based (cant recall which one atm)
but its from yanfly.
but its from yanfly.
not directly. there are several other ways to handle this, but it would depend on the number of actor and conditions.
Theoretically tsukihime (himeworks.com) has a script for dynamic encounter tables. That script allows you to add encounters to the base table by script commands and is the only way I know of to change the random encounter tables. However that looks like a bad idea for you if you have more than a few changes, especially with the other limitations on that scripts use.
What should be a better way to handle this is to have troop events transform some of the default enemies based on party members. you would use a common event called by the troop event on turn zero to analyse the party and decide on the changes, and then transform placeholder enemies to the enemies you want the party to fight.
That said, I strongly suggest you check your game mechanics to see if you can't do it a different way.
If the strength of the different actor is so far differing that you need to adapt the enemies to fit the players in order to keep the opposition of managable strength, then game balancing will become a nightmare later on. And that can result in frustration or abandoned work if balancing fails.
Theoretically tsukihime (himeworks.com) has a script for dynamic encounter tables. That script allows you to add encounters to the base table by script commands and is the only way I know of to change the random encounter tables. However that looks like a bad idea for you if you have more than a few changes, especially with the other limitations on that scripts use.
What should be a better way to handle this is to have troop events transform some of the default enemies based on party members. you would use a common event called by the troop event on turn zero to analyse the party and decide on the changes, and then transform placeholder enemies to the enemies you want the party to fight.
That said, I strongly suggest you check your game mechanics to see if you can't do it a different way.
If the strength of the different actor is so far differing that you need to adapt the enemies to fit the players in order to keep the opposition of managable strength, then game balancing will become a nightmare later on. And that can result in frustration or abandoned work if balancing fails.
I probably should've elaborated a bit more. Let me explain.
There are five characters, each with their own little story arc that consists of a dungeon with three floors and a boss at the end. I plan to have the game keep track of the player's progress by having variables and switches that activate whenever a boss is defeated, when a player joins the party, etc.
It probably would've been better to ask if there were a script that could alter enemy encounters through variables instead of switches, since right now I think measuring progress through how many bosses have been completed should be a better option.
I don't plan for there to be too much variety with the five actors. This is my first legit game that I plan on making, as a way of familiarizing myself with the software. It's not supposed to be deep or anything special, just playable. So I don't intend for the battle system to be that complex (though I may try that route in the future).
To be more clear, I plan to go by the amount of actors in the party, not by which actors specifically. I didn't word that correctly in the original post.
Himeworks has several different scripts which you could probably use to achieve this.
For example, you could use Encounter Conditions to make it so that extra enemies appear in the troop when there are, for example, three or more characters in your party. [[ EDIT: after looking at this script more, you can make an entire troop show up or not show up in the random encounter list based on a switch or even based on the number of party members in your party. So just make a set of Encounters for 1 party member, for 2 party members, and so on! ]]
You could combine it with Troop Placeholders, which is more complicated, to choose completely different troops based on how many actors are in your party (or, if you decided to, which actors are in the party). Instead of "small", "large", etc., you would use "one actor", "two actors", etc., and use Encounter Conditions to make sure that only the placeholders for the right number of actors show up.
Hime's scripts are great, but they can sometimes be a bit unintuitive for beginners, so if you're having trouble making a script work correctly, you can post a thread in the RGSS Script Support board on this forum.
Additionally, @Weston Welch, please be mindful not to double-post (posting twice in a row in the same topic, unless someone else has already posted after you, or a few days have passed). It's frowned upon here. If you want to add additional info to your last post, you can simply click "Edit" at the bottom of your post to modify that post. 🙂
For example, you could use Encounter Conditions to make it so that extra enemies appear in the troop when there are, for example, three or more characters in your party. [[ EDIT: after looking at this script more, you can make an entire troop show up or not show up in the random encounter list based on a switch or even based on the number of party members in your party. So just make a set of Encounters for 1 party member, for 2 party members, and so on! ]]
You could combine it with Troop Placeholders, which is more complicated, to choose completely different troops based on how many actors are in your party (or, if you decided to, which actors are in the party). Instead of "small", "large", etc., you would use "one actor", "two actors", etc., and use Encounter Conditions to make sure that only the placeholders for the right number of actors show up.
Hime's scripts are great, but they can sometimes be a bit unintuitive for beginners, so if you're having trouble making a script work correctly, you can post a thread in the RGSS Script Support board on this forum.
Additionally, @Weston Welch, please be mindful not to double-post (posting twice in a row in the same topic, unless someone else has already posted after you, or a few days have passed). It's frowned upon here. If you want to add additional info to your last post, you can simply click "Edit" at the bottom of your post to modify that post. 🙂
Original thread: https://forums.rpgmakerweb.com/threads/switch-specific-random-encounters.121157/