MV Anyone know how to use the Irina Action Cutin Plugin? (4 or more Actors)

I've been trying to figure out how to use this plugin for a while now. I can get the banner for 1 character (actor) to pop up. But, can't get it to work for 4/5 party members.

I read the documentation, but confused as to where to put the information to use all 4/5 actors. The notetag? As a template in the Parameters in the plugin under Template? Or do I have to call this as a script? I've been looking for information on this throughout the forums and nobody has answered this question as it's been asked before. I looked at pretty much all of the posts about this plugin trying to find answers. Pretty much with responses like "Just read the documentation, not that hard or it's there" lol. Doesn't really help when you don't know what to do with that information. It's probably something simple, but maybe it just went over my head.

This was written in the documentation.
JavaScript:
var battlers = [];
battlers.push($gameActors.actor(1));
battlers.push($gameActors.actor(2));
battlers.push($gameActors.actor(3));
battlers.push($gameActors.actor(4));
var settings = $actionCutinSettings($dataSkills[10]);
var template = 'Horizontal';
$actionCutinTemplate(battlers, settings, template);
- This uses the templates found in the Plugin Parameters to create multiple cutins of battlers at a time and using certain notetag settings from a designated skill selected by the game dev. In the above example, actors 1 through 4 are listed as a part of the battlers, with notetag settings from skill 10 in the database, and the 'Horizontal' template that's defined in the Plugin Parameters

I tried something like this too <Action Cutin Allies: template Horizontal>

Here's an example of one of the parameter templates too. Maybe I have to do something with the code above to use it as a template idk.

JavaScript:
var totalTime = Math.max(120, 80 + (battlers.length * 10));
for (var i = 0; i < battlers.length; i++) {
    var battler = battlers[i];
    var settings = JsonEx.makeDeepCopy(settings) || $actionCutinSettings();
    settings.height = Math.round(Graphics.boxHeight / battlers.length) - (settings.borderThickness * 2);
    settings.y = settings.height * (i + 0.5) + (settings.borderThickness * 2 * (i + 0.5));
    settings.forcedScale = 5.0;
    settings.forcedOffsetY = 48;
    settings.shiftDistanceX = 400;
    settings.shiftDistanceY = 0;
    settings.duration = totalTime - (i * 10);
    settings.backgroundHue = i * Math.round(360 / battlers.length);
    var time = 1000 / 60 * i * 10;
    setTimeout($actionCutin.bind(this, battler, settings), time);
}

But, yeah if anyone can please help let me know. Would really appreciate it. Especially if you own the plugin and know how to use it. Tried to put it in notetags in the skills, under the actor, class, etc and that didn't work. So I'm guessing either I make a template settings or call it as a script. (This looks to be a script for sure) But no idea how I would call it as a script for all battles since most of my battles are randomized anyways.

I was hoping this would come as a default parameter settings since it looked to be advertised that way. There's more documentation here. It's a little frustrating but mainly because I don't know what to do with it. (My own skill issue)

Irina Action Cutin Plugin
That's all JavaScript, so you have to put it someplace that executes code.

Tried to put it in notetags in the skills, under the actor, class, etc and that didn't work.
When asking for help, please always show what you've tried to do that didn't work. That's the correct way to use it, so without seeing what you tried we can't really tell you what you did wrong.

Some of the instructions in all of the examples are in English - did you follow them? The first code you pasted above references cutin settings from skill 10, as opposed to examples which reference the default settings:
1712665688192.png


So instead of pasting examples from the documentation, please show us what you actually have in your project. Best way is probably to show a screenshot of the skill/state/whatever you're putting it into, and then separately paste the notetag (use the CODE tags, the </> on the edit bar).
I have this code in a Common Event:

Code:
var battlers = [];
var battler = $gameActors.actor(1);
battler.changeActionCutinFaceData('picture', 'Actor_1_Bust');
battlers.push(battler);
battler = $gameActors.actor(2);
battler.changeActionCutinFaceData('picture', 'Actor_2_Bust');
battlers.push(battler);
var settings = $actionCutinSettings();
var template = 'Vertical';
$actionCutinTemplate(battlers, settings, template);

Then I call this common event from a troop event. This is for 2 actors. I imagine it would be similar for more than 2.
That's all JavaScript, so you have to put it someplace that executes code.


When asking for help, please always show what you've tried to do that didn't work. That's the correct way to use it, so without seeing what you tried we can't really tell you what you did wrong.

Some of the instructions in all of the examples are in English - did you follow them? The first code you pasted above references cutin settings from skill 10, as opposed to examples which reference the default settings:
View attachment 301389

So instead of pasting examples from the documentation, please show us what you actually have in your project. Best way is probably to show a screenshot of the skill/state/whatever you're putting it into, and then separately paste the notetag (use the CODE tags, the </> on the edit bar).
Well normally for a skill you'd write <Action Cutin> under the skill that you're trying to get the popup for. But, that only works for one actor at a time. There's various other settings that go with this that just apply changing pictures, position, etc. You can apply the Action Cutin in the Parameters to every skill if you wanted to too. But, that still only works for 1 actor at a time.

For skill 10 that's what I was testing it with. I know that the 10 in the code posted above was for Skill # 10.
JavaScript:
var settings = $actionCutinSettings($dataSkills[10]);

I tried to paste this code down below in the 2nd example of this response into the parameter plugin settings under the 4th template option. There's 3 Templates by Default. An example, Horizontal, and Vertical template. What I linked up above in my first post (2nd section) is an example of Horizontal and everything in the box related to the settings for it.

The 4th default template box has code like this.

JavaScript:
for (var i = 0; i < battlers.length; i++) {
   // Get current battler.
   var battler = battlers[i];
   // Get current settings or make new default settings.
   var settings = settings || $actionCutinSettings();
   // Display action cutin
   $actionCutin(battler, settings);
}

Which I replaced with
JavaScript:
{
var battlers = [];
battlers.push($gameActors.actor(1));
battlers.push($gameActors.actor(2));
battlers.push($gameActors.actor(3));
battlers.push($gameActors.actor(4));
var settings = $actionCutinSettings($dataSkills[10]);
var template = 'Horizontal';
$actionCutinTemplate(battlers, settings, template);
}

So that obviously wasn't right since I was missing something lol.

Tried a variant of
JavaScript:
for (var i = 0; i < battlers.length; i++) {
var battler = battlers[i];
var battlers = [];
battlers.push($gameActors.actor(1));
battlers.push($gameActors.actor(2));
battlers.push($gameActors.actor(3));
battlers.push($gameActors.actor(4));
var settings = $actionCutinSettings($dataSkills[10]);
var template = 'Horizontal';
$actionCutinTemplate(battlers, settings, template);
}

Which I dont think does anything either lol.

I figured after I made the new template I would type this into the notebox under the skill. <Action Cutin Allies: template 4 Way> to call for the new template, but that didn't work. Tried <Action Cutin Allies: 4 Way> <Action Cutin 4 Way> etc in both the "Skills and Actor" settings. I tried both separately too.

There's no options in the documentation on how to add 4 or 5 battlers in the Help section of the plugin. It's just the script so I'm guessing I have to call for that script and can't include anything in a notetag under a skill or actor to get it to work.

I then tried to add this code here as a script that I listed in this response in a battle troop common event which didn't work either.
JavaScript:
var battlers = [];
battlers.push($gameActors.actor(1));
battlers.push($gameActors.actor(2));
battlers.push($gameActors.actor(3));
battlers.push($gameActors.actor(4));
var settings = $actionCutinSettings($dataSkills[10]);
var template = 'Horizontal';
$actionCutinTemplate(battlers, settings, template);

Which should work since it's a script. It was still just the same animation as a 1 player popup. Unless I have to set a conditional for it, but shouldn't have to. I doubt any plugins are messing with it. So I think it's just me not knowing how to use the code.
I have this code in a Common Event:

Code:
var battlers = [];
var battler = $gameActors.actor(1);
battler.changeActionCutinFaceData('picture', 'Actor_1_Bust');
battlers.push(battler);
battler = $gameActors.actor(2);
battler.changeActionCutinFaceData('picture', 'Actor_2_Bust');
battlers.push(battler);
var settings = $actionCutinSettings();
var template = 'Vertical';
$actionCutinTemplate(battlers, settings, template);

Then I call this common event from a troop event. This is for 2 actors. I imagine it would be similar for more than 2.
I'll try that real quick and see if it works.
I'm sorry, but...did you read all of my post?

I don't see any screenshots from your project; and the code you've pasted in is again just code, not in any applicable notetag.

The one you said you put in a battle event still has the line referencing settings from skill 10, instead of the default settings, so where are the settings you put in skill 10?

For example, if you take the code you keep pasting and change the settings to reference the default setting (as showed in the example I referenced in my first reply) and put it into a Yanfly Skill Core notetag,
Code:
<Pre-Damage Eval>
var battlers = [];
battlers.push($gameActors.actor(1));
battlers.push($gameActors.actor(2));
battlers.push($gameActors.actor(3));
battlers.push($gameActors.actor(4));
var settings = $actionCutinSettings();
var template = 'Horizontal';
$actionCutinTemplate(battlers, settings, template);
</Pre-Damage Eval>

That should pop up your four actors just as the skill is hitting the enemy.
I have this code in a Common Event:

Code:
var battlers = [];
var battler = $gameActors.actor(1);
battler.changeActionCutinFaceData('picture', 'Actor_1_Bust');
battlers.push(battler);
battler = $gameActors.actor(2);
battler.changeActionCutinFaceData('picture', 'Actor_2_Bust');
battlers.push(battler);
var settings = $actionCutinSettings();
var template = 'Vertical';
$actionCutinTemplate(battlers, settings, template);

Then I call this common event from a troop event. This is for 2 actors. I imagine it would be similar for more than 2.
Nah that didn't work. I put this as a common event in my common event section and called it under the troops event section as common event # 400 in script format. It still shows the one popup for each character when they attack. Instead of the joint attack banner.

JavaScript:
var battlers = [];
var battler = $gameActors.actor(1);
battler.changeActionCutinFaceData('picture', 'Actor8_1');
battlers.push(battler);
battler = $gameActors.actor(2);
battler.changeActionCutinFaceData('picture', 'Actor9_1');
battlers.push(battler);
var settings = $actionCutinSettings();
var template = 'Vertical';
$actionCutinTemplate(battlers, settings, template);

What other notetags do you have for your skills and actors? Maybe it has something to do with that to get a 2-4 way going.
I'm sorry, but...did you read all of my post?

I don't see any screenshots from your project; and the code you've pasted in is again just code, not in any applicable notetag.

The one you said you put in a battle event still has the line referencing settings from skill 10, instead of the default settings, so where are the settings you put in skill 10?

For example, if you take the code you keep pasting and change the settings to reference the default setting (as showed in the example I referenced in my first reply) and put it into a Yanfly Skill Core notetag,
Code:
<Pre-Damage Eval>
var battlers = [];
battlers.push($gameActors.actor(1));
battlers.push($gameActors.actor(2));
battlers.push($gameActors.actor(3));
battlers.push($gameActors.actor(4));
var settings = $actionCutinSettings();
var template = 'Horizontal';
$actionCutinTemplate(battlers, settings, template);
</Pre-Damage Eval>

That should pop up your four actors just as the skill is hitting the enemy.
I did read what you said. I didn't put the small notes in <code> format. But, I did write them out in the response. I mean yeah I could have taken screenshots, but it was the same result. I guess visually it would have been better to see, but the problem is you have to take multiple screenshots of everything in the box due to how the database was coded.

I was putting that code related to skill 10 where the 4th template was and in the skill box. Wasn't sure what to do with it tbh. I was putting it below Action Cutin
JavaScript:
<Action Cutin>
Action Cutin does interfere with the <Pre-Damage Eval> though. So I can't put it before it. If I do put it before the Eval it just makes it so the one banner pops up.

But that
JavaScript:
<Pre-Damage Eval> </Pre-Damage Eval>
actually did help. I didn't know you had to use an Eval. I can now see all 4 banners popping up on the screen but the banner happens after the attack occurs and not before it happens. How would I get the popup to happen before it starts?

I used what you just suggested in your last response and put it in the skill section for the skill that I want to use it for. I'm just using the 4 way banner for specific skills and not every skill.

Right now this is the only thing listed in my skill notetag for the 10th skill for reference. Just using a basic skill as an example. Uploaded some photos to show what I have so far.

JavaScript:
<Pre-Damage Eval>
var battlers = [];
battlers.push($gameActors.actor(1));
battlers.push($gameActors.actor(2));
battlers.push($gameActors.actor(3));
battlers.push($gameActors.actor(4));
var settings = $actionCutinSettings();
var template = 'Vertical';
$actionCutinTemplate(battlers, settings, template);
</Pre-Damage Eval>
I appreciate the responses guys. Been a lot of help so far. Just trying to figure out why the banners are coming after the attack happens now. Not sure if this is normal with 4/5 actors or if a plugin is interfering with it. It's not happening with the single banner. The images from my last response is what I have in the notebox so far. If one of you guys can replicate this let me know if you have the chance. Just trying to figure out if it's a plugin issue or something with the code.

There shouldn't be anything in the plugin parameters that would mess with it though.

I have my plugin under YEP_BattleEngineCore so it's in the correct position and the YEP plugins are in order too.
I mean yeah I could have taken screenshots, but it was the same result. I guess visually it would have been better to see, but the problem is you have to take multiple screenshots of everything in the box due to how the database was coded.
The problem with that is you have mistakes, and I had no way of knowing what you actually had in the various notes boxes without seeing it.

I was putting that code related to skill 10 where the 4th template was and in the skill box. Wasn't sure what to do with it tbh.
That's why I pointed out to you the examples from the instructions that didn't reference any skill settings. The plugin comes with settings in the parameters by default.

I was putting it below Action Cutin
JavaScript:
<Action Cutin>
That's not a thing. Just putting code into a notes box does nothing - it has to be inside of a notetag that a plugin references. That's why I was trying to ask if you understood that and if you understood which notetags run code.

You have to look at plugins like Yanfly's Skill Core, Yanfly's Buffs & States, etc. to see notetags that say they run (or evaluate) code (or JavaScript).

But that
JavaScript:
<Pre-Damage Eval> </Pre-Damage Eval>
actually did help. I didn't know you had to use an Eval. I can now see all 4 banners popping up on the screen but the banner happens after the attack occurs and not before it happens. How would I get the popup to happen before it starts?
Look at the documentation for Yanfly's Skill Core and try a different notetag. There's a whole little chart of which tags happen when.

What other notetags do you have for your skills and actors? Maybe it has something to do with that to get a 2-4 way going.
I did not use the note tags so I don't have any of those. That's all I have - just the common event and the troop event that calls it. Not sure why it's not working for you. Maybe you still had a note tag that was overwriting the common event?
The problem with that is you have mistakes, and I had no way of knowing what you actually had in the various notes boxes without seeing it.


That's why I pointed out to you the examples from the instructions that didn't reference any skill settings. The plugin comes with settings in the parameters by default.


That's not a thing. Just putting code into a notes box does nothing - it has to be inside of a notetag that a plugin references. That's why I was trying to ask if you understood that and if you understood which notetags run code.

You have to look at plugins like Yanfly's Skill Core, Yanfly's Buffs & States, etc. to see notetags that say they run (or evaluate) code (or JavaScript).


Look at the documentation for Yanfly's Skill Core and try a different notetag. There's a whole little chart of which tags happen when.

That's true, yeah that was mybad.
JavaScript:
<Action Cutin>
It works but it's just for a single actor banner. Just double checked it to verify. It's in the plugin documentation for Irina_ActionCutins. You can also put in something like <No Action Cutin> for skills that you don't want to have cutins for in the skill notetag. But it doesn't work for 4 banners.

I'll look back at the other YEP plugins and read their documentation. Didn't realize that Irina's Cutin plugin would be affected by some of those. Like obviously some plugins have conflicts, but I didn't know you could use code from other plugins documentation that would help you with your other plugins potentially. It's good to know.

I tried the other 4 evals (before, after, post, and pre) but ended with the same result. I'm still attacking first before the banner comes out. I guess I'll mess around with it later. Unless there's something in the default template in the plugin settings that's influencing when the banner is coming out. Since there's additional actors it might delay the banner. Just a guess but not sure. It's kinda awkward seeing it happen like that unless I add a long attack animation to it or something.

Thanks a lot though ATT_Turan. At least it's kinda working now, even if it's not ideal.
I did not use the note tags so I don't have any of those. That's all I have - just the common event and the troop event that calls it. Not sure why it's not working for you. Maybe you still had a note tag that was overwriting the common event?
I did just test it and I have to set a condition with it if I want to use it like that. For example if the enemies HP is below 25% it will trigger it if that's what I set it to. I didn't earlier which is why it didn't work.

Too bad there's no conditions in the troop section where if you use a certain skill it will trigger. As far as I can tell there's no options in the common event box like that either. Would have to have a script for if Actor 1 uses X Skill then the cutin would happen. There's one for skill learned, but thats kinda rip.

I'm really surprised they didn't code that into their database options. Good to know there's another way to set it up though.
I don't know why the provided script call wouldn't cause it to happen instantaneously.

Have you done any troubleshooting with turning off all other plugins, save the project, start a new playtest? See if it's being affected by something else?

The only other thought I have is to program your skills using Yanfly's Action Sequences and use the commands provided in Irina's documentation.
Too bad there's no conditions in the troop section where if you use a certain skill it will trigger.
You could also have the skill call the common event directly.

Alternatively you could have a skill --> call common event which turns on a switch --> troop event that has that switch trigger --> which calls the action cut-in common event.
You could also have the skill call the common event directly.

Alternatively you could have a skill --> call common event which turns on a switch --> troop event that has that switch trigger --> which calls the action cut-in common event.
All of that is still going to cause the cutin to show up after the skill resolves - that's when attached common events are executed.
I don't know why the provided script call wouldn't cause it to happen instantaneously.

Have you done any troubleshooting with turning off all other plugins, save the project, start a new playtest? See if it's being affected by something else?

The only other thought I have is to program your skills using Yanfly's Action Sequences and use the commands provided in Irina's documentation.
Yeah it's really weird. I tested it on another new project earlier and the same thing was happening. So I guess it's a bug with Irina's plugin unless it was meant to be coded to happen after the attack? Unless it's because I'm on a newer version of MV. Maybe that has something to do with it. But, 1.62 and above should be pretty similar though right?

But, kinda doesn't make sense to do that lol. Especially since single popup animations happen before* the attack. I guess you could make it work if you add picture poses after your signature move.

I could try what you suggested. Been messing with this for a while. Might move onto something different to work on in the meantime for the day though.

Original thread: https://forums.rpgmakerweb.com/threads/anyone-know-how-to-use-the-irina-action-cutin-plugin-4-or-more-actors.167598/