Multiple evaluation checks? (Yanfly Battle A.I Core)

Discussion in 'Javascript/Plugin Support' started by AdamSakuru, Feb 27, 2017.

  1. AdamSakuru

    AdamSakuru [Null_Value] Veteran

    Messages:
    314
    Likes Received:
    169
    First Language:
    English
    Primarily Uses:
    N/A
    http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/

    Is it possible to have multiple evaluations for a skill condition? And if so what's the correct way to do it?

    <AI Priority>
    Eval (State !== State 12) && (State !== State 13): 14, Highest ATK
    Eval ((user.hp <= user.mhp * 1) && (State !== State 12): 14, Highest ATK
    </AI Priority>

    What I was going for was trying to see if I could have skills that needed more than one thing before they could be executed. I'm not sure if I did the syntax correctly for these since they aren't working.
     
    #1
  2. Fernyfer775

    Fernyfer775 Veteran Veteran

    Messages:
    1,302
    Likes Received:
    806
    First Language:
    English
    Last I checked, (I had asked Yanfly specifically), there was no way to do more than one check. That was a while ago though, so I'm not 100% sure if Yanfly updated the plugin to be able to handle multiple checks.
     
    #2
  3. AdamSakuru

    AdamSakuru [Null_Value] Veteran

    Messages:
    314
    Likes Received:
    169
    First Language:
    English
    Primarily Uses:
    N/A
    Oh okay, that would explain it. I came across this plugin extension for the AI Core at some point:
    https://forums.rpgmakerweb.com/index.php?threads/battle-ai-core-extension.61403/

    It sounds like it might allow for multiple checks since the eval conditions can be custom. Do you know if this would work for doing that?
     
    #3

Share This Page