Hello! First off I'd like to apologize if I'm posting this in the wrong area or something, its my first time posting on the forum 🙂
I have a character called Robbie, who inflicts a state called Destabilized on enemies. I want it so that when an ally hits an enemy with the Destabilized state, Robbie launches his follow-up attack onto that enemy. I understand the basics of what I'm trying to do but I can't seem to get it to work via scripts (which is how I'd like to do it to avoid having to paste a common event into every single skill in my database.
My JS knowledge is very very limited, so I asked chatGPT to help me hoping that it would be a simple enough task for it to handle, and this is what I have
and I have it under the Battle Events Page like so:
The Common Event that I am running is simply a Force Action event:
If someone could help me, I'd really appriciate it!!!!
I have a character called Robbie, who inflicts a state called Destabilized on enemies. I want it so that when an ally hits an enemy with the Destabilized state, Robbie launches his follow-up attack onto that enemy. I understand the basics of what I'm trying to do but I can't seem to get it to work via scripts (which is how I'd like to do it to avoid having to paste a common event into every single skill in my database.
My JS knowledge is very very limited, so I asked chatGPT to help me hoping that it would be a simple enough task for it to handle, and this is what I have
JavaScript:
if ($gameTroop.members().some(enemy => enemy === target && enemy.isStateAffected(24))) {
$gameTemp.reserveCommonEvent(7);
}
and I have it under the Battle Events Page like so:
The Common Event that I am running is simply a Force Action event:
If someone could help me, I'd really appriciate it!!!!