Updated to give notetags that evaluate during skill resolution a "skill" variable to reference the current action.
Eval Tags MZ
JS Plugin Releases (RMMZ)A super welcome addition. thanks Turan!
Corrected a logical error with skills that deal 0 damage.
Updated with some bug fixes and better error reporting.
Updated with a little fix to the skill reference in Action Apply.
Updated to add the appropriate action notetags to items.
Hi!!! I need your help 😛 (again hahaha)
I want to achieve an effect similar to Paper Mario, where, upon selecting an attack, the character displays a specific sprite (SV battler) assigned for that moment. Would this be possible?
I think I could make it work if I manage to trigger a common event or if a plugin could directly change the current pose of the actor selecting the action (for instance, using a pose that isn’t typically utilized, like chant or another unused one).
I understand that, with this plugin, I can use certain actions at key moments during the battle, such as <Battle Start Eval> or <Turn Start Eval>, but I’m unsure if there is a "pre-action selection" phase where I could implement what I want. Could you help me with this?
I've attached a reference image of what I’m aiming for.
Thank you so much in advance!
I want to achieve an effect similar to Paper Mario, where, upon selecting an attack, the character displays a specific sprite (SV battler) assigned for that moment. Would this be possible?
I think I could make it work if I manage to trigger a common event or if a plugin could directly change the current pose of the actor selecting the action (for instance, using a pose that isn’t typically utilized, like chant or another unused one).
I understand that, with this plugin, I can use certain actions at key moments during the battle, such as <Battle Start Eval> or <Turn Start Eval>, but I’m unsure if there is a "pre-action selection" phase where I could implement what I want. Could you help me with this?
I've attached a reference image of what I’m aiming for.
Thank you so much in advance!
@cozathemaster This plugin doesn't currently have a notetag with that timing.
I think it might work better for you to look at plugins with action sequences, such as Akea's Animated Battlers. Or, if you're not using chant, just make that skill type be Magical in your database and the actor will start the chant motion upon selecting the action.
I haven't played Paper Mario, so I'm uncertain from your description whether you have just one actor and they go immediately when you select their action.
Or if you have a party, and you want this motion to start as soon as the action is selected and while the rest of the party is inputting, I've never seen a plugin which did that.
I think it might work better for you to look at plugins with action sequences, such as Akea's Animated Battlers. Or, if you're not using chant, just make that skill type be Magical in your database and the actor will start the chant motion upon selecting the action.
I haven't played Paper Mario, so I'm uncertain from your description whether you have just one actor and they go immediately when you select their action.
Or if you have a party, and you want this motion to start as soon as the action is selected and while the rest of the party is inputting, I've never seen a plugin which did that.
Thank you for your response.
Oh, I see. I think I didn’t express myself very well, but what I want is for the character's animation to start while in the action selection menu during battle (when the player is deciding whether to attack, use an item, escape, etc.). Because of that, the chant alternative you mentioned wouldn’t work, since it activates AFTER selecting the action, and I need it BEFORE (or rather, during).
In Paper Mario, Mario is in an "idle" animation while it's not his turn, but when it is, he switches to a "thinking" pose while the player selects commands. That’s why I gave that reference.
I’ll probably start a new thread to see if anyone has an idea, but first, I’ll check out what you mentioned about Akea. Thank you so much for the suggestion.
Thanks for everything!!
Oh, I see. I think I didn’t express myself very well, but what I want is for the character's animation to start while in the action selection menu during battle (when the player is deciding whether to attack, use an item, escape, etc.). Because of that, the chant alternative you mentioned wouldn’t work, since it activates AFTER selecting the action, and I need it BEFORE (or rather, during).
In Paper Mario, Mario is in an "idle" animation while it's not his turn, but when it is, he switches to a "thinking" pose while the player selects commands. That’s why I gave that reference.
I’ll probably start a new thread to see if anyone has an idea, but first, I’ll check out what you mentioned about Akea. Thank you so much for the suggestion.
Thanks for everything!!
Don't bother for this - action sequences are programming how the skill resolves, they won't do anything during the inputting phase.
Obviously, feel free to check them out to control how the skill works, but they're not a potential solution to this.
Aaaaah, I see, thank you so much for the heads-up. Of course, that makes sense now that you mention it... I think I'll start the new thread, then. =)
Thanks to @Robro33 for noticing and helping test - uploaded version 1.9 fixing some cases where variables were not assigned correctly during counter attacks.
I'm new at all this. is there a way to use this to create a spell that does additional elemental damage when using physical attack.
@daveon01 It looks like @Robro33 already told you how to do this.
As he says, follow Yanfly's instructions to make a spell which applies a state to the user and copy the code from the Tip & Trick into that state's notes field.
You then read the instructions for this plugin to change the notetag to the correct one for executing the code after the actor hits with a skill - Action Damaged Eval.
You also need to replace the line of code that plays the animation, because that's done differently in MZ.
So where the Tip & Trick says
You'd put
to play animation ID 130.
As he says, follow Yanfly's instructions to make a spell which applies a state to the user and copy the code from the Tip & Trick into that state's notes field.
You then read the instructions for this plugin to change the notetag to the correct one for executing the code after the actor hits with a skill - Action Damaged Eval.
You also need to replace the line of code that plays the animation, because that's done differently in MZ.
So where the Tip & Trick says
Code:
// Play an animation on the target.
target.startAnimation(130);
You'd put
Code:
// Play an animation on the target.
$gameTemp.requestAnimation([target], 130, false);
to play animation ID 130.
is there a way to use this as to make a attack to additional elemental damage.
@daveon01 It would really help if you took some care to make your posts a bit more clear, with explicit details of what you're trying to do and what you don't understand.
You don't need a plugin to make a skill that does damage of two different elements (if that is, in fact, what you're asking). You can do that within the damage formula.
forums.rpgmakerweb.com
You don't need a plugin to make a skill that does damage of two different elements (if that is, in fact, what you're asking). You can do that within the damage formula.
Damage Formulas 101
Please note: A discussion has already been started about different things you can do with these formulas so please direct those comments and question to the appropriate thread. https://forums.rpgmakerweb.com/index.php?threads/rmmv-damage-formula-ideas-and-help.47099/ A link to the list of...
forums.rpgmakerweb.com
Thanks I'm new to rpgmaker so i guess I don't really know what i need to ask.
This is exactly what i need to trigger my live2d animation at the start of an attack by turning on a switch, but its clashing with visustella's core somehow, regardless of which comes first the game crashes once all actors/enemies have had their turn
the plugin is meant to be an alternative to Visustella plugins. using them together is likely to cause cause issues such as that as they both modify the same functions.
I just tried disabling them and its still clashing with rmmz manager somehow.
i cant use visustella battle core because the animations erase the live2d when its in
EDIT - i've cut out the end turn and regernerateall parts of the plugin, and it doesnt crash anymore
Original thread: https://forums.rpgmakerweb.com/threads/eval-tags-mz.162424/