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,734
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,506
Reaction score
8,144
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 Profile Posts

I've been working on something on and off for a few years now, and I've been reluctant to share any details on the project before I had anything playable because I did not want to generate hype only for the project to go back on hiatus. That being said I believe what I'm working on is very unique and pushes the boundaries of what RPG Maker projects can be. Bold claims, I know but just wait.
Happy Mother's Day to all the moms :)
Create Anime Art w/ AI, Tall Sprites with Aurora, Customize Variable Display | RPG Maker News #34

[My favorite slow moving track I've made so far]
dd_airport2.jpgdd_combat.jpg
dd_town.jpg
I did an experiment to try to solve the art style problem between RTP and 3D models.
But, it feels this grimdark world is going to end even faster. :kaoswt2:

Forum statistics

Threads
111,193
Messages
1,059,172
Members
144,440
Latest member
Kono
Top