SolaarNoble
NPC
- Xy$
- 0.00
hey all 0/
so im relatively new to MV and javascript so i can't figure out how to make yanflys learn skill system require a stat to learn the skill. I know it needs a note in the actual skill itself since i tested level requirement and previously learned skill requirements as well. It's only when i want it to check a parameter that it gives me an error. I was either getting actor not defined or parameter not set errors when i checked by pressing F8.
it says to use:
<Learn Require Eval>
value = true;
value = false;
</Learn Require Eval>
I basically want to know how to make it so that at least X of stat Y is needed ie STR >=50 is required to learn Twin Slash
Thanks for any help 0/
Edit: I figured out i can do it with
<Learn Require Eval>
if (this._actor.atk < 50) { value = false; }
</Learn Require Eval>
but now this issue is using that AND having them know a certain spell at the same time ie 50 atk and the fire spell to learn flame slash
<Learn Require Eval>
value = user.isLearnedSkill(ID#)
</Learn Require Eval>
this works for just having the spell be a custom requirement but i cant figure it out to have both a spell requirement and a stat requirement without getting an error XD
so im relatively new to MV and javascript so i can't figure out how to make yanflys learn skill system require a stat to learn the skill. I know it needs a note in the actual skill itself since i tested level requirement and previously learned skill requirements as well. It's only when i want it to check a parameter that it gives me an error. I was either getting actor not defined or parameter not set errors when i checked by pressing F8.
it says to use:
<Learn Require Eval>
value = true;
value = false;
</Learn Require Eval>
I basically want to know how to make it so that at least X of stat Y is needed ie STR >=50 is required to learn Twin Slash
Thanks for any help 0/
Edit: I figured out i can do it with
<Learn Require Eval>
if (this._actor.atk < 50) { value = false; }
</Learn Require Eval>
but now this issue is using that AND having them know a certain spell at the same time ie 50 atk and the fire spell to learn flame slash
<Learn Require Eval>
value = user.isLearnedSkill(ID#)
</Learn Require Eval>
this works for just having the spell be a custom requirement but i cant figure it out to have both a spell requirement and a stat requirement without getting an error XD
Last edited: