Skip to content

Implement the RPG_RT Autobattle algorithm #1586

@mateofio

Description

@mateofio

Figure out and implement the RPG_RT auto battle algorithm.

Using it for the AutoBattle command is a bit controversial. Using it for an actor with AutoBattle flag set however is not. If a game dev created an actor with auto battle, the game experience probably demands that actor does more than just attack random enemies. There can also be some smarts from RPG_RT we can reuse event if we don't want to change the AutoBattle command to use skills.

I did some testing and one thing I saw. I had an actor with no skills set on autobattle. He would always attack the first enemy. This is better AI than attacking randomly, as at least he works on killing 1 at a time instead of randomly spreading the damage.

Also I noticed he would attack a different enemy only if his weapon would kill that enemy in a single hit. Adjusting the enemy HP would change which target he chose.

That's all I've got for now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions