Hi there!
I'm using the Yanfy party system and building a game where almost any NPC can join the party if you can convince them. I want to be able to "collect" battlers similar to Pokemon or Destiny of an Emperor for the NES. I have a 1 member party with 3 back-up characters and I want to be able to send anyone after the 4th to a special character tent, like a Pokemon PC.
I know there are tutorials on how to do this that depend on turning off the formation system - I want to be able to reorganize team-members out of battle, so that's out. I also know there is at least one plug-in that allows for a PC-like storage facility, but again I'd have to disable character switching outside of that, or deal with individually placing each character.
What I tried to do is add a "Team Member" state to any "captured" NPCs. If they don't fit in your party, you can go to the appropriate tent and switch any Actor with the "Team Member" state. Basically, while you're in there, all characters with "Team Member become part of your party, and when you leave, only the top 4 remain, everybody else is kicked off.
Unfortunately, after reading the script-call spreadsheet, and several examples, I still can't seem to check every character for their state and add them if they have a particular one. I keep getting various errors when testing, mostly of an "is not a function" type.
I don't have my exact script in front of me (so my example will be even more wrong than my actual attempt), but it's something like:
loop
"var i +=1;
if var < 150 {
if gameActor(i).state.includes (15) {
gameParty.addActor(i);}
}
else
{
var i =0
break loop
}
Excuse my bad syntax - am I in the ball-park?
Is there a better way to send characters to a "PC" ala pokemon and still have the ability to rearrange the party?
Also, I haven't had a chance to test my script for taking the actors above #4 out of the party again once I leave the tent. Assuming this way will work in the first place, are there any recommendations there?
Thanks folks, this has been an invaluable community so far whenever I'm googling solutions.
I'm using the Yanfy party system and building a game where almost any NPC can join the party if you can convince them. I want to be able to "collect" battlers similar to Pokemon or Destiny of an Emperor for the NES. I have a 1 member party with 3 back-up characters and I want to be able to send anyone after the 4th to a special character tent, like a Pokemon PC.
I know there are tutorials on how to do this that depend on turning off the formation system - I want to be able to reorganize team-members out of battle, so that's out. I also know there is at least one plug-in that allows for a PC-like storage facility, but again I'd have to disable character switching outside of that, or deal with individually placing each character.
What I tried to do is add a "Team Member" state to any "captured" NPCs. If they don't fit in your party, you can go to the appropriate tent and switch any Actor with the "Team Member" state. Basically, while you're in there, all characters with "Team Member become part of your party, and when you leave, only the top 4 remain, everybody else is kicked off.
Unfortunately, after reading the script-call spreadsheet, and several examples, I still can't seem to check every character for their state and add them if they have a particular one. I keep getting various errors when testing, mostly of an "is not a function" type.
I don't have my exact script in front of me (so my example will be even more wrong than my actual attempt), but it's something like:
loop
"var i +=1;
if var < 150 {
if gameActor(i).state.includes (15) {
gameParty.addActor(i);}
}
else
{
var i =0
break loop
}
Excuse my bad syntax - am I in the ball-park?
Is there a better way to send characters to a "PC" ala pokemon and still have the ability to rearrange the party?
Also, I haven't had a chance to test my script for taking the actors above #4 out of the party again once I leave the tent. Assuming this way will work in the first place, are there any recommendations there?
Thanks folks, this has been an invaluable community so far whenever I'm googling solutions.