So, I want to make a "passive leader skill" with the following criteria:
1. It's active only when a specific character is the "leader" & that character is alive. (they are always member #1 in the party)
2. The skill usually does something based on the leader's level (raises atk by leader level for example)
3. The skill should effect each character in the party.
I'm currently using Yanfly's Auto Passive State & Base Parameter Control Plugins. I set my 5th variable upon character selection as leader so that it reflects the actorId of the chosen character. Below are my attempts at creating a leader skill for my first character that increases the atk by his level. I also set the actor passive list for the auto passive state plugin to have state 7, this state, as always set.
State doesn't apply.
State doesn't apply... must be something I'm doing wrong on the condition...
State applies but nothing happens.
State applies and atk increases by 1.
So, thoughts on what I might be doing wrong around the condition? Also, is it even possible to use a variable in the base parameter control notetag command like that? Any other ideas on how I can accomplish the same goal?
Thanks in advance!
1. It's active only when a specific character is the "leader" & that character is alive. (they are always member #1 in the party)
2. The skill usually does something based on the leader's level (raises atk by leader level for example)
3. The skill should effect each character in the party.
I'm currently using Yanfly's Auto Passive State & Base Parameter Control Plugins. I set my 5th variable upon character selection as leader so that it reflects the actorId of the chosen character. Below are my attempts at creating a leader skill for my first character that increases the atk by his level. I also set the actor passive list for the auto passive state plugin to have state 7, this state, as always set.
var characterLevel = $gameActors.actor(1).level;
<atk Plus: +characterLevel>
<Custom Passive Condition>
if ($gameVariables[5] == 1 && $gameParty.members()[0].isAlive()) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
<atk Plus: +characterLevel>
<Custom Passive Condition>
if ($gameVariables[5] == 1 && $gameParty.members()[0].isAlive()) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
State doesn't apply.
var characterLevel = $gameActors.actor(1).level;
<atk Plus: +characterLevel>
<Custom Passive Condition>
if ($gameVariables[5] == 1) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
<atk Plus: +characterLevel>
<Custom Passive Condition>
if ($gameVariables[5] == 1) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
State doesn't apply... must be something I'm doing wrong on the condition...
var characterLevel = $gameActors.actor(1).level;
<atk Plus: +characterLevel>
<atk Plus: +characterLevel>
State applies but nothing happens.
<atk Plus: +1>
State applies and atk increases by 1.
So, thoughts on what I might be doing wrong around the condition? Also, is it even possible to use a variable in the base parameter control notetag command like that? Any other ideas on how I can accomplish the same goal?
Thanks in advance!