Hello,
I have this code (provided by Yanfly) that can check if my actors are in battle or not to apply a state :
<Custom Passive Condition>
// Check if the party is in battle.
if ($gameParty.inBattle()) {
condition = true;
} else {
// Otherwise, set the condition to false.
condition = false;
}
</Custom Passive Condition>
I'd like to use that code to check if a switch is "on". For example if switch 60 is on.
Could anyone tell me how to do that, since my javascript experience is non-existent.
I use this plugin : http://www.yanfly.moe/wiki/Auto_Passive_States_(YEP)
For the record, there is a notetag provided in the plugin that is supposed to do that simply by adding to the state the notetag <Passive Condition: Switch x ON>
But it actually works for the OFF version but not the ON version, I don't know why.
Thanks if you can help me.
I have this code (provided by Yanfly) that can check if my actors are in battle or not to apply a state :
<Custom Passive Condition>
// Check if the party is in battle.
if ($gameParty.inBattle()) {
condition = true;
} else {
// Otherwise, set the condition to false.
condition = false;
}
</Custom Passive Condition>
I'd like to use that code to check if a switch is "on". For example if switch 60 is on.
Could anyone tell me how to do that, since my javascript experience is non-existent.
I use this plugin : http://www.yanfly.moe/wiki/Auto_Passive_States_(YEP)
For the record, there is a notetag provided in the plugin that is supposed to do that simply by adding to the state the notetag <Passive Condition: Switch x ON>
But it actually works for the OFF version but not the ON version, I don't know why.
Thanks if you can help me.