AssumedPseudonym

Lawful Neutral
Veteran
Joined
Jul 15, 2021
Messages
72
Reaction score
87
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,997
Reaction score
8,630
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
72
Reaction score
87
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
973
Reaction score
434
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

I'm gonna put my project on pause for a tiny bit so I can explore the engine outside of it... Winging it can only get you so far LMFAO
Have seen some of my favorite people here posting and helping others with questions today -- love to see it!
Haven't been on here actively in awhile, project is going strong my biggest issue is the STORY, i'm refining the plot and learning so much i decided to take a writers class to improve even more but the programming and functionality of the game is stepping up nicely!
Hi everyone! Here's what I'm working on today! It's one of the dorms on campus. I know I said I wouldn't use assets but I reused a few things from the cafeteria hehe.
FCuxBOMXMAICK5e
I added a little squish effect when characters change direction to try and make things a bit more lively. Though it's a bit hard to see on the fast moving guys.
2f4fiuy.gif

Forum statistics

Threads
116,125
Messages
1,095,972
Members
151,537
Latest member
Anrirck
Top