YEP Battle A.I. Core for Actors with Auto-Battle flag Extension

Discussion in 'JS Plugin Releases (RMMV)' started by masterlobo, Sep 11, 2016.

  1. masterlobo

    masterlobo Veteran Veteran

    Messages:
    143
    Likes Received:
    77
    Location:
    Seattle, WA
    This an extension plugin for Yanfly's Battle A.I. Core script


    This will give Actors with the Auto-Battle flag the same A.I. capabilities Yanfly's script gives to enemies.


    Flag Actor requires:


    [​IMG]


    Bear in mind, the actor must have learned the skill specified on the AI Priority notes in order for it to be able to be used.


    Script is plug and play. Place below YEP_BattleAICore.


    Link to script.


    Btw, if you want the AI Priority to be strictly followed, just comment out the following line:

    Code:
    if ((random > this.aiLevel()) && (i != this.actor().aiPattern.length - 1)) continue;
     

    Attached Files:

    Last edited: Jun 12, 2017
    #1
    Roguedeus, Kyuukon, Chaos17 and 7 others like this.
  2. alcreator440

    alcreator440 Veteran Veteran

    Messages:
    148
    Likes Received:
    43
    First Language:
    English
    Primarily Uses:
    RMMV
    Thanks for posting this script. Did you write it? It works great but it seems to lock my game up for a few seconds whenever an actor with even just a couple of ai lines acts in battle.
     
    #2
  3. masterlobo

    masterlobo Veteran Veteran

    Messages:
    143
    Likes Received:
    77
    Location:
    Seattle, WA


    Yup, I wrote it.


    Are you using v1.07 of Yanfly's Battle AI script? I believe 1.08 broke compatibility.
     
    #3
  4. alcreator440

    alcreator440 Veteran Veteran

    Messages:
    148
    Likes Received:
    43
    First Language:
    English
    Primarily Uses:
    RMMV
    Thanks for responding. Yes, I'm using the new version, not v1.07. I'm looking for v1.07 to install now.
     
    #4
  5. wrigty12

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    Are you planning to write a 1.08 compatable version?
     
    #5
    Rayhaku808 likes this.
  6. masterlobo

    masterlobo Veteran Veteran

    Messages:
    143
    Likes Received:
    77
    Location:
    Seattle, WA
    #6
  7. Chaos17

    Chaos17 Dreamer Veteran

    Messages:
    1,253
    Likes Received:
    419
    Location:
    France
    First Language:
    French
    Link is dead :kaocry:
     
    #7
    masterlobo likes this.
  8. masterlobo

    masterlobo Veteran Veteran

    Messages:
    143
    Likes Received:
    77
    Location:
    Seattle, WA
    Fixed. Sorry about that :)
     
    #8
    Chaos17 likes this.
  9. Tatsumaro

    Tatsumaro Veteran Veteran

    Messages:
    205
    Likes Received:
    40
    First Language:
    Portugues
    Primarily Uses:
    RMMV
    Hi, im trying to use your plugin to control 2 Solders, but i cant get what code to use. What a need is them able to use a revive item (lets call it Item12). I think that the code as to be something like this, but i dont understand JS enough to complete. Any suggestion?

    <AI Priority>
    Party Dead Members > 1 +++ Item12 >1: Use item12
    </AI Priority>
     
    #9
  10. kerykeion

    kerykeion Villager Member

    Messages:
    11
    Likes Received:
    2
    First Language:
    English
    Link is broken again, I'd really like this!
     
    #10
    masterlobo likes this.
  11. masterlobo

    masterlobo Veteran Veteran

    Messages:
    143
    Likes Received:
    77
    Location:
    Seattle, WA
    Hmmm, maybe try this?
    <AI Priority>
    Party Dead Members >= 1 +++ Eval $gameParty.numItems($dataItems[12]) >= 1: SKILL X
    </AI Priority>

    Fixed on main post :)

    Also, I believe the script should be compatible with newer versions of Yanfly's Battle AI Core script. If someone else could confirm that would be great!
     
    #11
  12. kerykeion

    kerykeion Villager Member

    Messages:
    11
    Likes Received:
    2
    First Language:
    English
    Your main post redirects me to Yanfly's page with v 1.12. Also, the error that keeps popping up is "Cannot read property 'isPassive' of undefined".

    Edit: Got it working, conflict with a passive skill script. Thanks!
     
    Last edited: Jun 12, 2017
    #12
    masterlobo likes this.
  13. SarahYagami

    SarahYagami Warper Member

    Messages:
    3
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMMV
    I confirm that it's compatible and works again with the latest version.
    This is a very useful script, thank you!
     
    Last edited: May 10, 2018
    #13
    Krystek_My and masterlobo like this.
  14. oToToToToTo

    oToToToToTo Veteran Veteran

    Messages:
    46
    Likes Received:
    9
    First Language:
    English
    Question: is there any way to put the <AI Priority> tags on classes so different actors will do different things depending on their class?
     
    #14
  15. SunAero

    SunAero Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm having an odd issue with this plugin where with it ON, the conditional branch checks to see if an actor knows a skill will ALWAYS return false regardless of them actually knowing that skill.

    I've isolated the problem to be something to do with this script.

    Does anyone have an explanation or a fix for this? I'd really like to use this, since it's giving me no problems in its intended use.

    Thanks!
     
    #15

Share This Page