Is it possible to use IF statement notetags when none are hardcoded within a plugin for use? If not, is it possible to create a plugin for this that would toggle the readability of other direct plugin commands.
example:
<conditon> if variableX ==Y <ATB Interrupt>
My thought on how the plugin would work is to have it look for the "<condition> note tag. It would then run the conditional check which follows. It would activate resulting notetags to be visible to other plugins. Maybe it would convert the bracketing in order to hide or activate?
If this is manually possible already, please share with me how. IF not, and it could be done as a plugin... it would really help so that non-javascripters can activate plugin commands based on conditions not coded within the controlling plugin. It could extend functionality of existing plugins significantly.
I think you misunderstood them, they didn't mean how to check variable in a notetag that allows JS code, but how to make it so that a simple notetag is ignored depending on a condition.
Don't know how that would be done myself, but I'll just point out that doing your example with available methods isn't very difficult. Just go to the action sequence and add the plugin command to interrupt in a conditional branch that checks the variables. (That's doesn't take much more time than putting a notetag on the skill.)
A lot can be done with just action sequences, or with states that run the functions/plugin commands at certain times.
Huh, really, wasn't aware of that? So if I have a VisuStella notetag like what the OP mentioned <ATB Interrupt>, you're saying I can just somehow put my own condition to it? Can you show an example of how the whole thing looks?
If the plugin is written to parse javascript, yes, but that is dependent on the author of the plugin. Otherwise if the author didn't write it that way, you have to go edit the plugin code yourself to check for a condition when it triggers.
We're talking about VisuStella though so yeah, good luck with that...
Yeah but I thought the whole point of the opening post was to ask how to do it in a case when the plugin author hasn't written it in such a way (and in case of VS the code is obfuscated). So like build something that sends changed data from the note field to the plugin depending on the condition you write there, like act "in between" the notefield (or the data stored in the code) and the plugin.
Without editing the (VS) plugin you'd have to interrupt an earlier function that triggers right before the plugin does. Basically make another plugin to alias or overwrite an earlier core engine function to add a conditional.
Cool, yeah I understand it'd be difficult, I just commented that that's what I thought the OP was after. And that's why I suggested to him alternatives 😀
Thanks for all the evaluations. It looks like the only way is Javascript. Is there a way to trigger a standard notetag from within javascript though?
My actual use is for a mechanic on boost skills. I wanted players to gain a boost point when they use a skill with a matching attached "influence". The 4x influence types are shown as icons at the beginning of the skill descriptions (Sun,Moon,Planetary, or Void). The active influence shows on the battle screen and randomly changes each ATB turn. The system is working, but I can't get it to conditionally add boost points because notetags don't recognize the IF statement, and javascript doesn't recognize the add boost point command.
infvar=3 ? <User Boost Points: +1> :
The result now, is that every skill adds 1 boost point, no matter what the infvar variable is.
Notetags themselves don't trigger. It's literally just text data. It's the plugin or script parsing it that triggers.
You could theoretically have multiple plugins and scripts grabbing the same notetag data and doing different things with it.