YesNoOk
avatar

Reimu's AI Patch Attacks Too Early (Read 1612 times)

Started by NICK54222, February 26, 2019, 08:46:52 pm
Share this topic:
Reimu's AI Patch Attacks Too Early
#1  February 26, 2019, 08:46:52 pm
  • avatar
  • **
    • USA
For some reason, Reimu Hakurei from Nachel has an AI Patch that sometimes attacks too early. It is at Level 10, but I'm not sure why it does this. Usually, it occurs in the first round and when it's a 2v2 battle or so.

Is there a way to fix it or is something else causing it?

Here's the link to the AI:
http://www.geocities.jp/kazayuuka/index.htm

Please let me know of any solutions as soon as you can. Thank you.
Last Edit: February 26, 2019, 08:59:30 pm by NICK54222
Re: Reimu's AI Patch Attacks Too Early
#2  February 28, 2019, 08:48:55 am
  • *****
  • Shame on you!
    • USA
Usually when the character attacks before the round starts it's because of it's intro.
The dev doesn't add,
[State 190, 2] ;Assert this until you want "round 1, fight" to begin
type = AssertSpecial
trigger1 = 1
flag = Intro
or gives ctrl too soon. This can happen by switching to statedef 0. Usually Statedef 0 wont give ctrl to the player but some do.


Check all of the intro poses and Statedef 0 for ctrl.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Reimu's AI Patch Attacks Too Early
#3  February 28, 2019, 12:24:06 pm
  • avatar
  • **
    • USA
So should I add ctrl = 0 to the intro states or is there another code I should use?
Re: Reimu's AI Patch Attacks Too Early
#4  February 28, 2019, 02:35:47 pm
  • avatar
  • **
    • USA
I think it worked just fine like that for the most part. Thanks for your help. I'll let you know if any other problems occur.
Re: Reimu's AI Patch Attacks Too Early
#5  February 28, 2019, 04:01:16 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
also, ensure that the every AI routine in the CMD include a triggerall = roundstate=2.
This will prevent the AI performing moves during the intro or in the winposes
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Reimu's AI Patch Attacks Too Early
#6  February 28, 2019, 11:39:25 pm
  • avatar
  • **
    • USA
There's an AI CNS file for Reimu as well. Should I put that triggerall code in there as well?
Re: Reimu's AI Patch Attacks Too Early
#7  March 01, 2019, 10:22:11 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
the triggerall = roundstate=2 has to go to the -1 states (like the ones available in the CMD).
It's not necessary to add it in the individual positive states (the actual moves)
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Reimu's AI Patch Attacks Too Early
#8  March 01, 2019, 12:47:54 pm
  • avatar
  • **
    • USA
Ok, I'll look into it. I'll make sure all -1 states have that trigger.