AssumedPseudonym

Lawful Neutral
Veteran
Joined
Jul 15, 2021
Messages
71
Reaction score
84
First Language
English
Primarily Uses
RMMV
 I’m trying to do a common event that gets called during the use of an enemy skill, and I’m trying to store the target actor ID of that skill to a variable. I’m already almost positive this is going to require a script call, but my experience with JavaScript is somewhere between negligible and nonexistent. A little help, please?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,942
Reaction score
8,614
First Language
German
Primarily Uses
RMMV
yes and no - there are three ways to go at it, one eventing solution, one by script call and one by plugin.
The pure script call solution is not only tricky but depends on some circumstances however, so you either use a plugin to store that information, or use the evented solution.

in case of the event, you create an invisible state (no icon, no messages, no effect) that is applied as the skill effect, and in the common event you check every possible target to find out who got the state.
 

AssumedPseudonym

Lawful Neutral
Veteran
Joined
Jul 15, 2021
Messages
71
Reaction score
84
First Language
English
Primarily Uses
RMMV
 The state/event solution should do pretty much what I need, actually; much appreciated. I’ll try it when it’s not almost eight-in-the-morning with me needing to be awake in six hours. x.x
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
just remember to remove the target check state from everyone at the end of the common event.
dont want 2 common event skills being used in the same turn to get messed up just because the state was still there from the 1st skill.
do it right and at most should only ever need 2 CE states, "skill target" "skill user"
 

Latest Threads

Latest Posts

Latest Profile Posts

The new Dune movie reminds me of the game Dune 2 made by Westwood. A quality product on its own, but extremely disloyal to its source of inspiration.
Terrible Writing Advice, you've done it again.
1635026211997.png
Feeling like my new profile picture is nice. Thinking of making it semi-permanent, does any one has an opinion? Does it look too evil or does it work as a public profile picture? :)
Bishiba.png
My washing machine is a supernatural being. I lost a piece of clothing in there a month ago; searched up and down, inside other clothes, nothing. It just vanished.
Today, put in a new load. When I pull it out, the missing clothing is back! And a sock was sacrificed in the process :yswt2:

Forum statistics

Threads
116,031
Messages
1,095,108
Members
151,362
Latest member
Haniel_Sword
Top