Yanfly Skill Learning System [Item Requirement)

● ARCHIVED · READ-ONLY
Started by snow91 4 posts View original ↗
  1. Hello :)

    I am having some issues with setting up the skills to only apear if the party has a certain item in the inventory.
    I guess it has something to do with the custom code:

    <Learn Show Eval>

    value = true;

    value = false;

    </Learn Show Eval>

    For using a custom code to hide or show the skill, you can use these

    notetags. Returning value as true will cause the skill to appear

    regardless of all other requirements being unmet while returning value as

    false will cause the skill to appear regardless of all other requirements

    being met.

    But just cannot figure it out how it works.
    Anyone some ideas? :D
  2. I've moved this thread to Plugin Support. Thank you.

  3. does this item ever get consumed?
    is it consumed by learning the skill?
    if both are no then use <Learn Require Switch: x> and have the switch turn on when you get the item.

    if the item is consumed at any point and you only want the skill to show while you still have the item
    you will need to use your note tag with a script call.
    im not good at script calls but i think what you need is

    <Learn Show Eval>
    if ($gameParty.hasItem($dataItems[itemId])) {
    value = true;
    }
    else {
    value = false;
    }
    </Learn Show Eval>

    someone correct me if i did this horribly wrong.
    if i did it right... hey 1st time for everything

    http://yanfly.moe/2015/11/14/yep-28-skill-learn-system/
  4. slimmmeiske2 said:
    [move]Plugin Support[/move]
    Thank you very much and sorry^^*

    Tiamat-86 said:
    does this item ever get consumed?
    is it consumed by learning the skill?
    if both are no then use <Learn Require Switch: x> and have the switch turn on when you get the item.

    if the item is consumed at any point and you only want the skill to show while you still have the item
    you will need to use your note tag with a script call.
    im not good at script calls but i think what you need is

    <Learn Show Eval>
    if ($gameParty.hasItem($dataItems[x])) {
    value = true;
    }
    else {
    value = false;
    }
    </Learn Show Eval>

    someone correct me if i did this horribly wrong.
    if i did it right... hey 1st time for everything

    http://yanfly.moe/2015/11/14/yep-28-skill-learn-system/

    Hey Tiamat, thank you for responding^^
    I try to avoid the switches bc i have many actors to be choosen from.
    The item itself will not be consumed. My goal is to show the skill in the learning section once you earned that item.
    Unfortunaly that Script Call in the Note Tag doesn't work. I tried something simillar too, but can't find a way how to make it work x.x