RMMZ - [Ask] Special Flag: Auto Battle (2024)

KIUNDEV

Villager

RMMZ - [Ask] Special Flag: Auto Battle (1)

Joined
May 14, 2023
Messages
19
Reaction score
1
First Language
English
Primarily Uses
RMMZ
  • May 26, 2023
  • #1

How does Special Flag: Auto Battle actually works? I found some things that bothers me after some testing:
1. Sometimes they go for normal attack even they have enough resource to do attacking skill.
2. They will focus on 1 enemy. (ex: if you have 8 auto battler, all of them is focusing on 1 enemy until it dies and move on the next target to focus on)
3. They ignore Sp-Parameter: Target Rate %. (upon trying several scenario, 2v2 working fine as they target the 100% 1st then the 0% but when I try 4v4 after killing 1 of 100% target rate they all focusing on the 0% while the other 2 with 100% target rate are still there)

Is there any plugin that could fix any of the above problem?

ATT_Turan

Forewarner of the Black Wind

RMMZ - [Ask] Special Flag: Auto Battle (3)

Joined
Jul 2, 2014
Messages
19,862
Reaction score
19,339
First Language
English
Primarily Uses
RMMV
  • May 26, 2023
  • #2

The code is in Game_Actor.makeAutoBattleActions(), which uses Game_Action.evaluate() to determine the results of a skill.

Basically, the actor goes through the list of available skills. Each one gets tested against all viable targets to see which would take the most damage from it. Then that's repeated for each skill - so it tries to determine the skill that will do the most damage and the target that will take the most damage from it.

KIUNDEV said:

1. Sometimes they go for normal attack even they have enough resource to do attacking skill.

As described above, this would be expected if the regular attack does more damage against one of the enemies.

KIUNDEV said:

2. They will focus on 1 enemy. (ex: if you have 8 auto battler, all of them is focusing on 1 enemy until it dies and move on the next target to focus on)

That makes sense - and it's also sound basic strategy, which is all you can really hope for from a simple auto-battle. Ignoring special considerations, isn't that what you'd do? Focus on one enemy to kill it so it stops hitting you?

KIUNDEV said:

3. They ignore Sp-Parameter: Target Rate %.

Correct. As described above, auto-battle uses some basic intelligence to select the most effective attack; it's not intended to be "stupid" and random. Target Rate is only used by enemies or if you're forcing an action and specifying a random target.

KIUNDEV said:

Is there any plugin that could fix any of the above problem?

I don't think most of these things are problems, so much as you have different expectations from what auto-battle does.

But I know VisuStella has an Actor AI or Auto Battle or something like that plugin. You should be able to find it with a Google.

KIUNDEV

Villager

RMMZ - [Ask] Special Flag: Auto Battle (7)

Joined
May 14, 2023
Messages
19
Reaction score
1
First Language
English
Primarily Uses
RMMZ
  • May 26, 2023
  • #3

ATT_Turan said:

As described above, this would be expected if the regular attack does more damage against one of the enemies.

I tested with equipped 1 skill only that obv have more damage output than normal attack but it sometimes still use normal attack.

ATT_Turan said:

That makes sense - and it's also sound basic strategy, which is all you can really hope for from a simple auto-battle. Ignoring special considerations, isn't that what you'd do? Focus on one enemy to kill it so it stops hitting you?

I wanted it to target enemy based on their target rate like the enemy troops target my party because now it's not fair the enemy with superior stats couldn't stand a chance because my party keep focusing on 1 enemy easily outnumber them in short time.

ATT_Turan said:

Correct. As described above, auto-battle uses some basic intelligence to select the most effective attack; it's not intended to be "stupid" and random. Target Rate is only used by enemies or if you're forcing an action and specifying a random target.

the thing is, they works as intended in case of 2v2 where they always target the 0% after the other get eliminated but somehow it's not working as intended when I try it on 4v4.

edit: it even sometimes doesn't work on 2v2 when I try on more troops.

ATT_Turan said:

But I know VisuStella has an Actor AI or Auto Battle or something like that plugin. You should be able to find it with a Google.

I see that they can have an actor auto battle act like enemy using action patterns but that would be pain to make 1 enemy database for each different weapon type and skill for me.

Last edited:

Shaz

Keeper of the Nuts

RMMZ - [Ask] Special Flag: Auto Battle (9)

Joined
Mar 2, 2012
Messages
46,149
Reaction score
17,033
First Language
English
Primarily Uses
RMMV
  • May 26, 2023
  • #4

[move]Plugin Requests[/move]

You must log in or register to reply here.

RMMZ - [Ask] Special Flag: Auto Battle (2024)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Pres. Carey Rath

Last Updated:

Views: 5492

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Pres. Carey Rath

Birthday: 1997-03-06

Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

Phone: +18682428114917

Job: National Technology Representative

Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.