teamupandgosolo

Villager
Member
Joined
Jul 15, 2013
Messages
9
Reaction score
0
First Language
English
Primarily Uses
Hey, so I what I am trying to do is create a script that forces an actor to use a skill. Basically I am using a skill on an actor and I need to have that skill force another skill. My problem is that I want the actor id to be stored in a variable and then have that variable referenced in the force action command. I already have figured out how to store the actor id in a variable and am having the skill used call the common event where I am putting a script that forces the other skill. I just need to know what I need to put in the script to force that actor to use the skill. Here is what I have currently:

$gameActor.actor($gameVariables.value(98)).forceAction(19,-2);
BattleManager.forceAction($gameActor.actor($gameVariables.value(98),19,-2);

Variable 98 is where the actor id is stored. 19 is the skill I want to use. And it is a self skill so I am using -2 so that it effects the same target as the previous self spell.

Any help would be appreciated thanks!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,732
First Language
English
Primarily Uses
RMVXA
Please do not post duplicate threads. One query one thread. I will be closing the other one.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,382
Reaction score
8,099
First Language
German
Primarily Uses
RMMV
there is a stickied topic on the forum of MV that tells all script equivalents of all event commands with their explanation, you can use that to check.
 

Latest Threads

Latest Posts

Latest Profile Posts

Whenever I start on a new chapter, it doesn't feel like the next episodes, but more like sequels :)
It can be frustrating that so many commercial games have used up titles that might otherwise be great for a project.
Light up explosions with QABS and Community Lighting.
qcPQHt9.gif

Forum statistics

Threads
110,655
Messages
1,054,985
Members
143,779
Latest member
Epitaph78
Top