I apologize for posting so much lately, but this community has been amazingly helpful and insightful! I tried to create a skill where it adds a state to an enemy that grants extra gold if the enemy is killed while affected by that state (I know I could just add gold drops to the enemy encounter, but I thought a skill like this could be fun). I've basically been going through the list of skills from Fire Emblem Engage and trying to poorly replicate them in RPG Maker. The skill works, and adds the state to the enemy, but the state itself doesn't seem to be working yet. I've been using Yanfly's plugins, and I added this code to the custom state I created:
<Custom Passive Condition>
if (user.isStateAffected(1)) {
condition = true;
$gameParty.gainGold(100);
} else {
condition = false;
}
</Custom Passive Condition>
What am I doing wrong? Is my spacing/syntax wrong? Also, what would be the code I would put to add a message that informs the player they've gained gold?
Thank you for all the help and support the community has shown these last few days!
<Custom Passive Condition>
if (user.isStateAffected(1)) {
condition = true;
$gameParty.gainGold(100);
} else {
condition = false;
}
</Custom Passive Condition>
What am I doing wrong? Is my spacing/syntax wrong? Also, what would be the code I would put to add a message that informs the player they've gained gold?
Thank you for all the help and support the community has shown these last few days!