Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Skill Upgrade System / Toggle and Check Switches in Note-tags

Delta Venom

Villager
Xy$
0.00
Heya

I'm using Yanfly's Skill Learn System. I have 3 Skill Tiers. Skill 1, Skill 2, Skill 3. They are more Powerful versions of each other and once Skill 2 is learned, Skill 1 will be forgotten. The Problem is that Skill 1 can be learned again because of how the Plugin works.

He're what i planned. Skill 2 toggles a switch to ON when it is learned, and Skill 1 can only be learned while that Switch is OFF. I need Code that checks if Switch X is ON and returns a TRUE of FALSE value and also Code that toggles Switch X ON or OFF. These must be put in note-tags. I'm assuming Note-tags use Javascript.
Thanks in advance.
 
Top