My game has a similar system to the S.P.E.C.I.A.L system in Fallout. I'm trying to make is so that a character can't equip weapons/items unless their stat is high enough. I found a plugin that let me limit equipment by stats but there was no way to differentiate whose stats were checked so I gave up on it. I saw a similar yanfly plugin and after looking around and playing with it I saw the "insanity" scripting feature and figured that would work. The base script is...
<Custom Equip Requirement Condition>
if (user.name() === ‘Harold’) {
condition = true;
} else {
condition = false;
}
</Custom Equip Requirement Condition>
I'm trying to use that and get it to work with an additional line to check a variable like so...
<Custom Equip Requirement Condition>
if (user.name() === 'Harold')
if $gameVariables.value(301) >== 1
{
condition = true;
} else {
condition = false;
}
</Custom Equip Requirement Condition>
It doesn't work but I feel like this should, in theory, I'm just not writing the coding right. What would be the proper way for me to write that? Assuming I can even get it to work the way I want.
<Custom Equip Requirement Condition>
if (user.name() === ‘Harold’) {
condition = true;
} else {
condition = false;
}
</Custom Equip Requirement Condition>
I'm trying to use that and get it to work with an additional line to check a variable like so...
<Custom Equip Requirement Condition>
if (user.name() === 'Harold')
if $gameVariables.value(301) >== 1
{
condition = true;
} else {
condition = false;
}
</Custom Equip Requirement Condition>
It doesn't work but I feel like this should, in theory, I'm just not writing the coding right. What would be the proper way for me to write that? Assuming I can even get it to work the way I want.