Trying to create a specific Passive

moldy

Veteran
Veteran
Joined
Nov 15, 2015
Messages
193
Reaction score
29
First Language
English
Primarily Uses
Okay so I'm trying to make a passive using Yanfly's State Core. This passive is a global enemy passive. Anytime an enemy is struck with a physical attack, I want a specific actor to follow up that attack with a normal attack of their own on the same target (by default, skill #001 "Attack"). Here's what I have in my state note tag:


<Custom React Effect>


BattleManager.queueForceAction($gameActors.actor(1), 1, -2);


</Custom React Effect>


The problem I am running into is that it works....but then the second actor will just keep repeatedly attacking the target over and over....infinitely. Is there any way to fix this?
 
Last edited by a moderator:

shockra

Slightly Crazy Programmer
Veteran
Joined
Feb 16, 2016
Messages
444
Reaction score
208
First Language
English
Primarily Uses
RMMV
The problem is that the passive is reacting to the second attack too.  It needs to be set up in a way so that it doesn't trigger off the other attack.  Try creating another skill, identical to attack, and force that instead of a standard attack.  Then use an if statement to stop the reaction if it is the second attack.  Also, I feel like the passive should be on the second actor so that if that actor isn't in the party, it won't cause some kind of error.
 

moldy

Veteran
Veteran
Joined
Nov 15, 2015
Messages
193
Reaction score
29
First Language
English
Primarily Uses
Edit: Sort of figured it out


<Custom Confirm Effect>


if (this.isAttack()) {


BattleManager.queueForceAction($gameActors.actor(1), 313, -2);


}


</Custom Confirm Effect>


Just settled for passive aura for allies. It works sort of. Now my issue is...how the game handles forceactions. It just skips the actors turn (the one following up the attacks) now. What do? :o
 
Last edited by a moderator:

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,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top