My game has more than 4 characters and they can be swapped out and around using a system similar to the PC box system from pokemon. I've been trying to find a way to scan the party made by the player to see if any of the 4 characters they've chosen have a specific skill.
Because there are 20 of these skills and 50 of these characters who have a unique set of 4 of these 20 skills, having a massive list of "is actor 1 who has this skill in the party? no? turn switch off. Is actor 3 who also has this skill in the party? No? turn switch off. Is actor 23 who also has this skill in the party? Yes? Turn switch on." conditional events is exceptionally tedious, particularly for skills with wider distributions. And this tedious method is what I've been doing up until now. I have common events that run as parallel processes which run constantly so long as my "main switch" is on, which is perma on. So if you have actor 23 who has skill 1 in the party and then you remove actor 23, the switch associated with skill 1 is turned off and now you no longer have the benefits of skill 1. But then if you add actor 3 who also has skill 1, it'll flip skill 1's switch back on. Then anything that requires "the skill" is instead just checking it the "skill 1" switch is on or not.
However, that solution is very cumbersome for some of the more common skills where 15-20 of the characters might have it. And even more cumbersome if I decide to allow such a skill to be learned by anyone, because then all 50 characters need to be included as possibilities. I'm worried that down the line having 20 parallel process common events that are just constantly checking if certain characters are in the party and if not, flipping the switch off then going to the next one in the list and doing the same until it finds someone who is in the party and flips it on, or gets to the end and just keeps it off will make the game laggy.
What I was hoping for was some easier way of just basically going "Do any of the 4 members actually in the party have skill 1? No? Switch off. Yes? Switch on."
As an example for why, say if skill 1 were a lockpicking skill/passive, you'd need someone in the party who can lockpick in order to pick locks. Now if there were 19 other passive skills like this, then you'd need your party to be scanned for each of those 19 other skills and for the ones you have to be enabled and the ones you don't have disabled. Manually setting up massive conditional branches, even as common events so I don't have to do it more than once per skill, is not only tedious, but also has me very worried it'll cause lag later due to them constantly running.
Is there any way, whether through ideally less tedious eventing or even scripting to do this? I've not found any XP compatible scripts that do anything similar thus far and eventing seems to only allow checking if a specific single actor has a specific single skill. Alternatively, if there isn't, are my concerns about the way I've been doing it possibly causing lag later valid or am I underestimating the capabilities of the maker?
Because there are 20 of these skills and 50 of these characters who have a unique set of 4 of these 20 skills, having a massive list of "is actor 1 who has this skill in the party? no? turn switch off. Is actor 3 who also has this skill in the party? No? turn switch off. Is actor 23 who also has this skill in the party? Yes? Turn switch on." conditional events is exceptionally tedious, particularly for skills with wider distributions. And this tedious method is what I've been doing up until now. I have common events that run as parallel processes which run constantly so long as my "main switch" is on, which is perma on. So if you have actor 23 who has skill 1 in the party and then you remove actor 23, the switch associated with skill 1 is turned off and now you no longer have the benefits of skill 1. But then if you add actor 3 who also has skill 1, it'll flip skill 1's switch back on. Then anything that requires "the skill" is instead just checking it the "skill 1" switch is on or not.
However, that solution is very cumbersome for some of the more common skills where 15-20 of the characters might have it. And even more cumbersome if I decide to allow such a skill to be learned by anyone, because then all 50 characters need to be included as possibilities. I'm worried that down the line having 20 parallel process common events that are just constantly checking if certain characters are in the party and if not, flipping the switch off then going to the next one in the list and doing the same until it finds someone who is in the party and flips it on, or gets to the end and just keeps it off will make the game laggy.
What I was hoping for was some easier way of just basically going "Do any of the 4 members actually in the party have skill 1? No? Switch off. Yes? Switch on."
As an example for why, say if skill 1 were a lockpicking skill/passive, you'd need someone in the party who can lockpick in order to pick locks. Now if there were 19 other passive skills like this, then you'd need your party to be scanned for each of those 19 other skills and for the ones you have to be enabled and the ones you don't have disabled. Manually setting up massive conditional branches, even as common events so I don't have to do it more than once per skill, is not only tedious, but also has me very worried it'll cause lag later due to them constantly running.
Is there any way, whether through ideally less tedious eventing or even scripting to do this? I've not found any XP compatible scripts that do anything similar thus far and eventing seems to only allow checking if a specific single actor has a specific single skill. Alternatively, if there isn't, are my concerns about the way I've been doing it possibly causing lag later valid or am I underestimating the capabilities of the maker?