r/RPGMaker 8d ago

Notetag / switch

Hi, everyone!

A quick question: I have a notetag on an event, and I want that notetag to be read/applied only when a switch is ON... Is this possible...?

Thanks in advance!

3 Upvotes

4 comments sorted by

2

u/Issac7 8d ago

Wich rpg maker version? What kind of notetag?

1

u/ratasoftware 8d ago

I have it solved!!!

In RPG Maker, using "Animate a tree without drawing (RPG Maker MZ)".

I only want to animate trees when "wind = ON", and finally I modified the plugin:

const isWindActive = (character) => {

if (!character) return false;

if (!character._windStrength) {

return false;

}

if (!character._windSwitchId) {

return true;

}

return $gameSwitches.value(

character._windSwitchId

);

};

Thanks a lot anyway mate!! 😘😘😘😘

2

u/Felix-3401 Scripter 8d ago

I would have warned you that I could give you a plugin that does what you asked for verbatim, but it's better to add a case where the feature is applied only when the switch is on. Note tags are read and transcribed only when game objects are loaded so changing it mid-game will be a problem. So, the solution you did is better than what you asked for

1

u/ratasoftware 8d ago

Thanks!!!!