Hello!
I have an ability system in my game where most armor pieces grant a passive ability, and a set of these passive abilities are stat-boosting passive states that only work if a specific actor (in this case named "Erika") has that piece of armor equipped and nobody else. to achieve this I put the following note tag in her note box
(these are all of the states but this issue will only address the one actually implemented)
and to make it so this passive state activates when wearing the armor I wanted, I put the following note tag/code into the note box of the passive state
However, after putting this code in the game proceeds to crash upon the game's launch, not even making it to the title screen
This only stops happening once I remove the custom passive condition code. So, to put it simply, what exactly did I do wrong here? And how can I fix it?
I have an ability system in my game where most armor pieces grant a passive ability, and a set of these passive abilities are stat-boosting passive states that only work if a specific actor (in this case named "Erika") has that piece of armor equipped and nobody else. to achieve this I put the following note tag in her note box
Code:
<Passive State: 40 to 59>
and to make it so this passive state activates when wearing the armor I wanted, I put the following note tag/code into the note box of the passive state
Code:
<Custom Passive Condition>
if $gameActors.actor(2).hasArmor($dataArmors[410]) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
However, after putting this code in the game proceeds to crash upon the game's launch, not even making it to the title screen
This only stops happening once I remove the custom passive condition code. So, to put it simply, what exactly did I do wrong here? And how can I fix it?