Auto Battle Actors

sieben43

Veteran
Veteran
Joined
Oct 25, 2015
Messages
66
Reaction score
12
First Language
German, English
Primarily Uses
RMMV
I want to create a kind-of-rows-system, where the 4th and 5th actor of the group are controlled by the AI.

I started creating the state with the autobattleflag, but I can't think of an efficient way to give the state to the actor, since you are allowed to change the party order and the ID of the 4th and 5th actor changes over time. Maybe somebody knows a way or a function of a plugin that would make it easier and more efficient, because I don't want to let the game check the actors ID's and store it to variables every second.

Also, I'm using Yanfly's Party System.

Thanks for help or advice in advance.
 

Zanazaru

Veteran
Veteran
Joined
Aug 17, 2015
Messages
85
Reaction score
6
First Language
German
Do you want specific actors to act on their own accord all the time?

Because there is a feature for this. Under the actor tap double click the features block.

Go to the "other"-tab and select "auto-fight". (Names might be different as my version is still set to german :D )

or  is it supposed to be the 4th and 5th?
 

sieben43

Veteran
Veteran
Joined
Oct 25, 2015
Messages
66
Reaction score
12
First Language
German, English
Primarily Uses
RMMV
I'm german as well :D

Yes I know of the features and I also implemented it. But I want to let the 4th and 5th actor in the party (not in the database) battle on their own, to add a little bit more tactics and to speed up the fights, since you don't have to choose an action for all 5 battlers. But the order of the actor changes over time, so I can't go with the auto-battle-flag in the actors database. I created a state that gives them "auto-battle", but I'm just not sure if it's efficient to let the game check the positions of the actors and store them to variables all the time.
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
$gameParty.members()[X].addState(Y);

$gameParty.members()[X].removeState(Y);

X is member number in fight ( start from 0 )

Y is state with auto fight
 

sieben43

Veteran
Veteran
Joined
Oct 25, 2015
Messages
66
Reaction score
12
First Language
German, English
Primarily Uses
RMMV
$gameParty.members()[X].addState(Y);

$gameParty.members()[X].removeState(Y);

X is member number in fight ( start from 0 )

Y is state with auto fight
Okay thanks, I'll try it out.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top