Require variable control note tag inside skill note tags.

Hello! Here I am yet again needing assistance on a problem.

The basic run down is I have weapons that have skills identical in function to each other, most differences are how many attacks are involved, sound effects etc all made possible with VS battle core.
Now in order for me to minimize cluttering my database with clone common events and skill sets I've devised a way to include branching results that give a defensive state and animation, the only problem is I absolutely need my skill note tag to add a set value to a variable ID.

The problem is I don't know how or where to find a plugin to handle this, now alternatively I can do this with common events yes but that infringes on my goal to minimize the database, (I already have a ton going on and they are organized)

If I achieve this I could make 120 common events/skills into 12 skills.

Thanks for taking the time.
(Also just realized this may be more of a plugin request rather than MZ support but I wasn't entirely sure where it bordered since I am not particularly sure about note tags in general)
Just add a JS pre/post-damage tag with $gameVariables.setValue(id of your variable, $gameVariables.value(id of your variable) + value to add to it);
Interested in testing this out but I might need a bit more information on this method.
If you're able to show me a screen cap of what you mean I'll be onto it straight away because I don't understand what a JS pre/post damage tag is.
Interested in testing this out but I might need a bit more information on this method.
If you're able to show me a screen cap of what you mean I'll be onto it straight away because I don't understand what a JS pre/post damage tag is.
It's a feature of the VS plugins. In the notebox of the skill, put

JavaScript:
<JS Post-Damage>
  $gameVariables.setValue(1, $gameVariables.value(1) + 5);
</JS Post-Damage>

That, for example, would add 5 to variable 1 when the skill is used.
I don't understand what a JS pre/post damage tag is.
It's in the instructions for the VisuStella Battle Core you said you're already using 😉
<JS Post-Damage> $gameVariables.setValue(1, $gameVariables.value(1) + 5); </JS Post-Damage>
So what I have down is:

<JS Post-Damage>

$gameVariables.setValue(81, $gameVariables.value(81) + 1);

</JS Post-Damage>
In terms of variable operation is this actually adding 1 to variable 81? or setting it to 1?

It's in the instructions for the VisuStella Battle Core you said you're already using 😉
I've actually got really lost in the wall of text and couldn't find the specific area to locate for this instance.

I just realized aswell- I'm after making this special effect happen irregardless if the skill hits or misses.
I'd like to make the defending effect happen eitherway.
So what I have down is:

<JS Post-Damage>

$gameVariables.setValue(81, $gameVariables.value(81) + 1);

</JS Post-Damage>
In terms of variable operation is this actually adding 1 to variable 81? or setting it to 1?


I've actually got really lost in the wall of text and couldn't find the specific area to locate for this instance.

I just realized aswell- I'm after making this special effect happen irregardless if the skill hits or misses.
I'd like to make the defending effect happen eitherway.
Yes, that code would add 1 to the value that's already in variable 81. If you just wanted to set it to 1, you'd do

$gameVariables.setValue(81, 1);
OK so i've made changes to the note tag, and i've been testing out the different codes such as pre-start turns and post etc and I can't get an effect going, when I actually manually set a value in the turn window within the battle test the desired effect works so that tells me that the note tag isn't working quite as intended yet, so that leaves me to figure out how else to get this note tag working with VS Battle core.


Untitled.png


I'm not entirely sure why this effect isn't working.
Pre-start turn fires at the start of the *unit* turn, not the individual action being carried out by the battler. Does that make a difference to you?
I'm not seeing any effect to give a real answer, but if it helps my intention is that when the user uses this skill it sets the variable to a value- then uses a different skill which later checks if that value is set for that specific skill's attack sequence with a conditional branch and applies the defend state as the conclusion of the turn.

(It's actually 2:42 AM and I should be going to sleep now so i'll be immediately checking back on this when I wake)
my intention is that when the user uses this skill it sets the variable to a value
So you in fact don't want to use Pre-Start Turn. You in fact can't put Pre-Start Turn on a skill:
Battle Core Documentation said:
trait object (actor, class, weapon, armor, enemy, or state).
That's why it's doing nothing in your tests.

I think when you've gotten some sleep and can read the instructions better you'll get it 😉

You are using the online documentation with hyperlinks and formatting and illustrations, right?
My issue is I'm unsure what to use and if me having 2 common events called is conflicting with them, plus I don't see any js codes that are used for skills.

I am looking through the documentation too and the online MZ script lists but what I am doing just isn't working the way I want it to.

Original thread: https://forums.rpgmakerweb.com/threads/require-variable-control-note-tag-inside-skill-note-tags.153208/