How do I force Actor ID to use an action?

Status
Not open for further replies.

thebootknifer

Villager
Member
Joined
Nov 18, 2018
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMMV
I have a small problem with the skills I'm creating.

Currently I force battler 0 to do an action when a state ends using Yanfly's Buffstates plugins.

<Custom Remove Effect>
$gameParty.members()[0].forceAction(46, 1);
BattleManager.forceAction($gameParty.members()[0]);
</Custom Remove Effect>

My problem is, is that actor will not be battler 0 throughout the game. She will be moved around, which will cause these states to fail to force the attack.

Is there a way for it to check for Actor ID two, and which position she is in? And then insert that battler number into this code? I imagine I would have to create a variable to find her battle position and then place that var where the "0"'s are. I do not know how to do that properly.

Thank you!
 

thebootknifer

Villager
Member
Joined
Nov 18, 2018
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMMV
Wowww I think I figured it out after posting this.

<Custom Remove Effect>
$gameActors.actor(2).forceAction(46, 1);
BattleManager.forceAction($gameActors.actor(2));
</Custom Remove Effect>

Wasted thread, Please delete. Sorry.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,682
First Language
English
Primarily Uses
RMMZ
No need to delete. If someone searches for the same thing they will find the answer.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP
We don't delete threads, but I'll go ahead and close this one.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top