Skip to content

Verify correctness of Game_Enemy::ChooseRandomAction #1831

@mateofio

Description

@mateofio

The RPG Maker 2003 Steam help file says this:

Process for Choosing Attack Patterns

?The action that the enemy character will take will be chosen based on the following rules.

1.Of all attack patterns, those that fit the ?conditions? will be chosen. If there are multiple relevant conditions, (a) the one with the highest priority and (b) anything within 9 priority points of (a) will be considered.

2.The importance of each attack pattern is calculated based on the effectiveness of the action during the current situation in battle. These values will be mutually compared among the attack patterns that were considered, and converted into a choice probability (the percentage that each pattern comprises out of the total importance value).

3.Using the choice probabilities, the attack pattern will be randomly decided.

This sounds like there is some smart logic here like the autobattle algo which evaluates the effectiveness of the action to weigh the action's probability. Our code does a randomized selection weighed by rating only.

How confident are we in the algo we use?

@CherryDT any help here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions