Play an event mid-animation

Hey, I was wondering if there was a way to play an event or script mid-animation. For instance, I have an abs, and need a way to light up animations so they dont seem dark with the LMN_LightingTool plugin (the lighting system I'm using).
that completely depends on how the ABS handles the animation.
please give links to the plugins you're using or screenshots of the events in case of an evented ABS.
I am currently using QABS. I can't fit it into a screenshot, but it handles skills in the notetages of a skill. Like so-
<absSettings>

collider: box, 36, 24

infront: true

cooldown: 45

rotate: true

</absSettings>

<absSequence>

user pose atk

trigger

wait 60

</absSequence>

<absOnDamage>

target cancel

target jump away 24

</absOnDamage>

The animations play according to what is specified by the skill, using the "trigger" command. I am wondering if i can play an event during this process (AKA pressing a skill key), in order to show a light source just for the animation. I have zero experience with JavaScript, but can modify it to an extent.
Can you not make the light source a part of the animation? Does the plugin allow you to turn on a switch as part of the sequence? If so, you can have a parallel process event conditioned by the switch, that shows the light source then turns the switch off.
No, as my lighting system has nothing to do with animations. The event would temporarily put a light source at the animation's location, and delete it after the animation (skill animation) finishes.
It does not allow me to turn on a switch as part of the skill sequence, I just checked,
got a link to it?

Also, don't double post as it's against the forum rules. If you just made a post and need to add something else, use the Edit button in the lower left corner of your last post. If someone else has posted since you, you don't need to do that.
https://quxios.github.io/plugins/QABS/-skill-sequence-
Sorry about that. This link explains each action that can happen in a skill.
okay - if you want to try this, make a backup of your plugin just in case it doesn't work.

Find this section of code:
Code:
case 'globalunlock': {
  $gameMap.globalUnlock(null, 0, 0);
  break;
}

(in git, it starts on line 1408)

and add this immediately after:
Code:
case 'switch': {
  this.actionSwitch(action);
  break;
}

Then find this section of code:
Code:
Skill_Sequencer.prototype.actionStore = function() {
  this._stored = new Point(this._skill.collider.x, this._skill.collider.y);
};

(in git, line 1732)

and insert this after it:
Code:
Skill_Sequencer.prototype.actionSwitch = function(action) {
  var cmd = action.shift().toLowerCase();
  var switchId = Number(action[0]);
  switch (cmd) {
    case 'on': {
      $gameSwitches.setValue(switchId, true);
      break;
    } 
    case 'off': {
      $gameSwitches.setValue(switchId, false);
      break;
    }
  }
};


Now you can add
Code:
switch on 50

to turn on switch 50. Then have a parallel process event controlled by switch 50, which moves to the correct area (unless it's already there), does what you want for the light animation, then turns switch 50 off. And of course, use whatever switch number you want instead of 50.

I also gave you a
Code:
switch off 50
in case it ever comes in handy.
Works perfectly! Thanks! How do i close a thread?
report your first post and let the mods know the issue is resolved, and they'll close it for you 🙂
Thank you!
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/play-an-event-mid-animation.112255/