Archeia's Advanced AI Conditions

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by Archeia, Feb 13, 2015.

  1. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    <ai_conditions: 1>

    target_states_not: 49

    only_if_target

    </ai_conditions>

     

    Yea. Sorry didn't catch the :. Sneaky lil bugger. HOWEVER, with the exact above code, it's giving me that num error again. Sigh... flips a table. I mean it could be a conflict with another script, which I can't test because the game crashes anytime I load it.

     

    I also tried <ai_conditions: 1985> use_id to see if maybe that was causing it. Same issue.

    Untitled.png
     
    Last edited by a moderator: Mar 1, 2015
    #21
  2. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,632
    Likes Received:
    14,381
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Then it's your script's problem not mine. I used it in an empty project and it works just fine.
     
    #22
  3. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    After some fiddling, I think I found the source of what's wrong. In a brand new project, I get the same error. I decided to try testing the note tag's on various skills. I found out that reflect works, no error, and the script does what's intended. I looked into this closer and noticed that ANY skill that has the scope of "one ally" causes the game to crash. The scope works for everything else, save this one. 
     
    #23
  4. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,632
    Likes Received:
    14,381
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    I tested it out but it's just not 'one ally' it also happens to 'the user' and it only happens on one enemy that I had. I made 3 enemies of the same type trying to recreate the issue but two of them aren't throwing the error. So I'm...confused...why...

    Ughhh, this is going to haunt me all night now and I have work to do. This is why I didn't want to do support.
     
    Last edited by a moderator: Mar 1, 2015
    #24
  5. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    Sorry to cause you torment, you don't have to fix it tonight! I know you are busy, but I do appreciate your time. That is very strange that that two of them aren't throwing the error and one is. When I have the scope to one ally I cannot even get the game to load, just crashes with that error. The skill magic reflect, set to "the user" is working for me. Only when I change it to one ally does it crash.

    Fix it at your convenience, I really want to use this script as it's perfect for what I need and really the only AI that that I've seen that is easy to configure and works as intended. Thanks again for your limited time!
     
    Last edited by a moderator: Mar 1, 2015
    #25
  6. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,632
    Likes Received:
    14,381
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    A quick fix, but I'm not sure if it changes everything else. Try it out

    This wasn't really designed for enemy <-> enemy but for enemy -> actors instead only. It's been so long since I used this script so I don't remember a lot of things on how the script functions.
     
    Last edited by a moderator: Mar 1, 2015
    #26
  7. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    In the new project, with the updated script, same error. Game crashes :(
     
    #27
  8. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,632
    Likes Received:
    14,381
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Last edited by a moderator: Mar 1, 2015
    #28
  9. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    It works!! TYVM!!!!
     
    Last edited by a moderator: Mar 1, 2015
    #29
  10. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,632
    Likes Received:
    14,381
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Okay I updated the script to version 1.0b hopefully all issues are solved ;~;
     
    #30
    nio kasgami likes this.
  11. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    Found another bug! For some reason the healing requirements are not working. Refer to video.





    Another issue I ran into is you cannot check against GROUP buffs. Like, if you put in a state check on a scope of all allies, the game crashes. Is there a way to check on casting/recasting a buff on all targets? If not, oh well, I'll let the default AI distribute them.
     
    Last edited by a moderator: Mar 6, 2015
    #31
  12. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,632
    Likes Received:
    14,381
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    You have it below main dawg.

    [​IMG]
     
    Last edited by a moderator: Mar 6, 2015
    #32
  13. Oriceles

    Oriceles 0 + a.atk * 4 - b.def * 2 Veteran

    Messages:
    384
    Likes Received:
    72
    Location:
    Venezuela
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    The best AI script I've seen by far, gonna test this.
     
    #33
    Archeia likes this.
  14. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    Derp. Ok I moved it into the right spot. It's still not working as intended o_O

    The target_hplt: 70  should only cast if mob has lower life than 70% max. It's just randomly healing targets at random, not even prioritizing the main "damaged" target.
     
    Last edited by a moderator: Mar 6, 2015
    #34
  15. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,632
    Likes Received:
    14,381
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    did you add only if target?
     
    #35
  16. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    The tag is like this:

    <ai_conditions: 2>

    target_hplt: 70

    only_if_target

    </ai_conditions>

     

    -Update-

     

    Was going to compress the project and send to you directly, but it was 648 MB, so that's not going to happen.
     
    Last edited by a moderator: Mar 6, 2015
    #36
  17. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,632
    Likes Received:
    14,381
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Does it also happen in a new project?
     
    #37
  18. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    Yes. That video was on a brand new blank project. The compressed one was that huge size. My RTP has a crap load of custom stuff in it.
     
    #38
  19. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,632
    Likes Received:
    14,381
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Is there a reason you won't use the default AI config for that? :x

    Anyway, the main issue here is that this script isn't really designed for 'enemy allies' but only for actor vs. enemy throwbacks. Healing is so rare between enemies in RPGs that it didn't cross my mind (and a lot of players consider it cheap). So it means I'd have to write more to the script and I'm really ughguh about that. We'll see if I'll ever do it.
     
    Last edited by a moderator: Mar 6, 2015
    #39
  20. Zero0018

    Zero0018 Apprentice Member

    Messages:
    133
    Likes Received:
    1
    First Language:
    English
    What do you mean by default ai? As in the game's base normal ai or the section I of your script's instructions? I don't really understand the difference between section I and section III.

    As for the AI healing, if the script doesn't support it, no worries. I'll try to figure out something else to use. If you do end up adding healing to the script, I will use it then.

    -Update-

    So.... For some reason, the AI will cast this over and over regardless if the target has the state or not. Does it have something to do with the loss of control of the target? I don't get why it works for every other state, but this one? Very strange.

    Berserk - Skill.png

    Berserk - State.png

    Berserk - Unit.png
     
    Last edited by a moderator: Mar 6, 2015
    #40

Share This Page