Conditional branch on notetags?

Hey all,


Just curious: Can you do conditional branches on notetags? For example, I only want a certain set of notetags to process if you are NOT on map 1, 3 or 7. How would I do this, if possible?
Well, it depends on the setup of the script/plugin that uses those tags.


If those script/plugin evaluate the notetags as code then you can do


<your notetag example>


if (condition) {


  actions here


}


<end notetag example>


or


<your notetag example: if () {}>


depending on how the notetags are setup for that script/plugin


but If those script/plugin doesnt evaluate the notetags as code, then you can't do that unless you modify the script/plugin itself
Notetags themselves have absolutely no function. And that really means they do nothing by themselves - if you write about a task like "need to purchase apples in the shop" into your notebook (the real one where you write with a pen), does that purchase happen because you write something there?


No, it happens because someone (or in the case of RMMV a plugin) reads that note and then goes out to purchase the apples (processes the code as the plugin was programmed to do).


So it all depends on what your plugins that read the notetags are programmed to do with that data - there are a few notetags (notably yanfly's lunatic code tags and anything similiar that eval's full javascript code) that can handle code written to process conditions, but most usually do not.


Or in other words if you give us specific cases with links to the plugins processing those notetags, then we can tell you if they can do that (and how the code needs to look like) or not.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-on-notetags.73307/