Hey everyone, I'm looking to create a specific state that I've been having trouble figuring out how to implement.
The state is called Corrupt. Essentially, certain late-game monsters can inflict a state on party members of the player called Corrupt which turns the player's party member into an enemy essentially turning them on auto battle and only attacking allies. That part I've got figured out. Here are the parts I'm stuck on:
I use the Visustella core plugins along with a few others of theirs (including the variable gauges). I've turned MP into the corruption stat because all monsters are inflicted with corruption and the player has to reduce their corruption meter to weaken them (the higher their corruption meter, the more powerful they are). This is displayed as a vertical variable gauge behind the enemy that the player can reduce using specific corruption-reducing skills. Each corruption skill reduces the enemy's MP, then calls a common event to set the EnemyCorruption Variable to equal the enemy's MP. I've hidden the MP bar for all actors and enemies because I want to use the larger vertical bar for the monster's corruption meter.
These late-game monsters can inflict a Corrupt status on player's party members causing them to only attack allies while inflicted with the state and I want to set it to where the only way to turn that party member back into an ally is to either finish the battle or use those corruption/MP reducing skills on their afflicted party member. Where I'm stuck is how to implement this feature. My initial thought was to create a variable gauge for each possible party position with a Party1Corruption, Party2Corruption, etc. variable (5 max party members allowed), have the variable gauge appear above the party member if afflicted by the state. Then just add some conditional within my common event that runs whenever a corruption reducing skill is used and check if the target is a party member, then if so, get the target's position in the party, then reduce their MP accordingly and set their specific corruption variable to equal their MP to adjust their corruption meter accordingly.
**That's what I can't figure out exactly how to do. So how would I run a conditional to check if the target is a party member, then if so, how can I set a variable to equal the target's position in the party. From there I know how to adjust their MP and corruption variable.
**The next thing I'm not sure how to do is how to set it to when the party member's MP or Corruption variable is 0, that the state is cleared.
Any help with either of those two above would be phenomenally appreciated!
Also, if there is a much better way to go about this, let me know as well. I'm pretty layman when it comes to RPG Maker and scripting and no virtually no javascript other than what I've incidentally picked up while working on my project.
I've attached my current common event when the player uses a corruption-reducing skill.
The state is called Corrupt. Essentially, certain late-game monsters can inflict a state on party members of the player called Corrupt which turns the player's party member into an enemy essentially turning them on auto battle and only attacking allies. That part I've got figured out. Here are the parts I'm stuck on:
I use the Visustella core plugins along with a few others of theirs (including the variable gauges). I've turned MP into the corruption stat because all monsters are inflicted with corruption and the player has to reduce their corruption meter to weaken them (the higher their corruption meter, the more powerful they are). This is displayed as a vertical variable gauge behind the enemy that the player can reduce using specific corruption-reducing skills. Each corruption skill reduces the enemy's MP, then calls a common event to set the EnemyCorruption Variable to equal the enemy's MP. I've hidden the MP bar for all actors and enemies because I want to use the larger vertical bar for the monster's corruption meter.
These late-game monsters can inflict a Corrupt status on player's party members causing them to only attack allies while inflicted with the state and I want to set it to where the only way to turn that party member back into an ally is to either finish the battle or use those corruption/MP reducing skills on their afflicted party member. Where I'm stuck is how to implement this feature. My initial thought was to create a variable gauge for each possible party position with a Party1Corruption, Party2Corruption, etc. variable (5 max party members allowed), have the variable gauge appear above the party member if afflicted by the state. Then just add some conditional within my common event that runs whenever a corruption reducing skill is used and check if the target is a party member, then if so, get the target's position in the party, then reduce their MP accordingly and set their specific corruption variable to equal their MP to adjust their corruption meter accordingly.
**That's what I can't figure out exactly how to do. So how would I run a conditional to check if the target is a party member, then if so, how can I set a variable to equal the target's position in the party. From there I know how to adjust their MP and corruption variable.
**The next thing I'm not sure how to do is how to set it to when the party member's MP or Corruption variable is 0, that the state is cleared.
Any help with either of those two above would be phenomenally appreciated!
Also, if there is a much better way to go about this, let me know as well. I'm pretty layman when it comes to RPG Maker and scripting and no virtually no javascript other than what I've incidentally picked up while working on my project.
I've attached my current common event when the player uses a corruption-reducing skill.