100% Orange Juice
Triangle_Guy Feb 16, 2019 @ 8:31am
How the game decides whether to choose defend or evade?
I want to make a physical game, but i don't know what to do when player encounters NPC (Chicken, Robo Ball, Seagull). Is it random or has some rules?

I mean for example - what chicken will choose in this or that situation: defend or evade?
Originally posted by Shade:
It's random to a certain degree, but there are some rules to it.

  • If the AI is at 1 HP and hasn't used Self-Destruct (which it never will unless it happens to get it via Extension), it will always pick Evade. If it does have used Self-Destruct, it will pick Defend instead.

  • If the AI cannot fail the Evade roll and hasn't used Self-Destruct, it will always pick Evade.

  • If your attack roll is a 1 (with modifiers) and the AI hasn't used Self-Destruct, it will always pick Evade.

  • If your attack roll is higher than the AI's remaining HP and it doesn't need anything higher than a 3 to successfully dodge, it will rarely pick Evade, but usually go with Defend instead, even if defending is actually the worse option.
    If your attack roll is higher than the AI's remaining HP and it would need to roll a 4 or higher to dodge, it will always pick Defend, even if defending is the statistically worse option.

    This is why a 2 HP AI Suguri will always pick Defend against a 7, for instance.

  • If the AI would survive the attack roll even if it were to fail the Evade roll, it will occassionally go for it. The chance is lower the higher it would need to roll to successfully dodge, and it will never try to evade if it would only succeed with a 6, but everything else is fair game.

    This is why you sometimes see a full HP AI Kai try to evade a 4, for instance, or a Manager boss trying to evade a 3.

(Note: Whenever I refer to rolling a specific number, it's what the actual number on the die needs to be, without modifiers, unless noted otherwise.)
< >
Showing 1-5 of 5 comments
I'd guess it's on logic, which one is more survivable I would assume.
Of course that'd heavily imply that it'd need a separate GM to play too (unbiased)
Triangle_Guy Feb 16, 2019 @ 8:45am 
Originally posted by pillow-kun:
I'd guess it's on logic, which one is more survivable I would assume.
Of course that'd heavily imply that it'd need a separate GM to play too (unbiased)
That would work, but if it could be based on logic and would be fair, it should be the same in each case. Therefore, it could be based on specific rules. For example: if NPC has less HP than attack value then choose this, and if not choose that. I don't know. I try to figure out what rules would be the best.
Intra Feb 16, 2019 @ 4:49pm 
The computer does not not optimally choose the best option every time. Sometimes it will roll evade if you min roll with +attack, despite having enough to kill. As in, with +2 attack, the CPU does sometimes evade if you roll 1 when they are at 2 HP, Roboball and Seagull specifically.

It seems like they programmed them to have a % chance of making the optimal play.

But even then, they can't understand board state which is something the CPU has no grasp of. They can't grasp psychology and expectation, taking intentional damage to die to revive and kill someone.

So they will always be flawed. You can program them to emulate those states though. You could program a Syura to never play her last card unless it's a gift or its been shown so she can bluff having Beyond Hell.

But that's up to the team if they want things to go that far.
Last edited by Intra; Feb 16, 2019 @ 4:50pm
The author of this thread has indicated that this post answers the original topic.
Shade Feb 16, 2019 @ 7:20pm 
It's random to a certain degree, but there are some rules to it.

  • If the AI is at 1 HP and hasn't used Self-Destruct (which it never will unless it happens to get it via Extension), it will always pick Evade. If it does have used Self-Destruct, it will pick Defend instead.

  • If the AI cannot fail the Evade roll and hasn't used Self-Destruct, it will always pick Evade.

  • If your attack roll is a 1 (with modifiers) and the AI hasn't used Self-Destruct, it will always pick Evade.

  • If your attack roll is higher than the AI's remaining HP and it doesn't need anything higher than a 3 to successfully dodge, it will rarely pick Evade, but usually go with Defend instead, even if defending is actually the worse option.
    If your attack roll is higher than the AI's remaining HP and it would need to roll a 4 or higher to dodge, it will always pick Defend, even if defending is the statistically worse option.

    This is why a 2 HP AI Suguri will always pick Defend against a 7, for instance.

  • If the AI would survive the attack roll even if it were to fail the Evade roll, it will occassionally go for it. The chance is lower the higher it would need to roll to successfully dodge, and it will never try to evade if it would only succeed with a 6, but everything else is fair game.

    This is why you sometimes see a full HP AI Kai try to evade a 4, for instance, or a Manager boss trying to evade a 3.

(Note: Whenever I refer to rolling a specific number, it's what the actual number on the die needs to be, without modifiers, unless noted otherwise.)
risbolla Feb 17, 2019 @ 12:48am 
yeah what he said
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Feb 16, 2019 @ 8:31am
Posts: 5