RMMV Battle AI core state skill trigger, is this code correct?

Utsuho Reiuji

Villager
Member
Joined
Jan 23, 2014
Messages
8
Reaction score
1
First Language
English
Primarily Uses
So I want the enemy to use a certain skill on the opponent when the target has a specific state but it doesn't seem to work.

Is this code correct? My struggle will not end T_T


<AI Priority>

State === State 39: Skill 60, Random

</AI Priority>
 

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
328
Reaction score
472
First Language
German
Primarily Uses
RMMV
You could remove the "Random" part and try this:

State === State 39: Skill 60

That is because the plugin defaults to random if no target is specified.
 

Utsuho Reiuji

Villager
Member
Joined
Jan 23, 2014
Messages
8
Reaction score
1
First Language
English
Primarily Uses
Yeah, it still doesn't work :/
Do I have to set the skill priority rating high in the action pattern?Because I only want the skill to be used when enemy has state 39 applied.
 

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
328
Reaction score
472
First Language
German
Primarily Uses
RMMV
As long as you have the condition " State === State 39 " the enemy will only target characters that have the state so that should be fine.

One thing you should check if State 39 is really the state you want.

Another thing is you need to make sure that Skill 60 "can" target the character you wish to hit.
If for example, Skill 60 is set to "1 ally", of course he won't target your party with the skill.

Other than that, I would need a screenshot of the enemy in question to look at the setup.
 

Utsuho Reiuji

Villager
Member
Joined
Jan 23, 2014
Messages
8
Reaction score
1
First Language
English
Primarily Uses
For some reason changing the scope in the skill section from none to 1 Enemy made it work. Regardless thanks for the code!
 

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

Latest Threads

Latest Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,633
Messages
1,015,133
Members
137,292
Latest member
inkdrips
Top