Status
Not open for further replies.

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,726
First Language
English
Primarily Uses
RMVXA

Duplicate thread. Closing this one.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

SF_People1_2 added!
index.php

Ami
--- Minimum Requirement ---

M.Knight: Phew...finally,i got the New Game. Let's check the Requirement
"Minimum Requirement:
  • 2.00 Ghz CPU
  • Full HD Support GPU
  • 5GB Memory"
M.Knight: I just have decent Gaming PC,i can play 2010-2015 Games. Hope it's okay
(1 Hour Later,The Game FPS Just Got 10-20)
M.Knight: (Facepalm)
Next goal is to make pull & push + lift & throw systems with mouse support and have skill levels in them and action indicators!
>What's your avatar about? Is it yours?
I did not do that drawing. It's a screenshot taken from a comic featuring characters from Touhou such as Tenshi and Iku (the girl in the avatar). It's drawn by someone under the name of Yohane.
Link to the comic (SFW, but navigating around Dynasty Reader is NSFW)

Forum statistics

Threads
109,171
Messages
1,042,707
Members
141,667
Latest member
Peng
Top