Variables to Learn Skills

Hey, i'm new to the forums and to game making in general so i'm not too savvy on a lot of the tricks involved in Rpg Maker even though I've been fiddling with the engine for the past few months. I'm having issues with a mechanic I want to use in my game where instead of leveling up and learning skills characters instead gain skills by having their Sanity Points lowered. At the moment i'm using variables to represent each character's amount of SP and I made a test event to see if it worked:

screen1.PNG


The SP lowering and raising works but no matter how high or low I make the variable, the character doesn't learn the skills I want them to. The only reason for this that I can think of is that I removed any sort of leveling or experience gain so I didn't bother to put learnable skills for the class:

screen3.PNG


What in the world am I doing wrong???
When/How are you calling this common event?

Comment events only run when they are called, or in case of autorun/parallel trigger type, when the condition (the switch part to the right of the trigger type) is met.

In your case, the trigger type is set to none, so it will only run when you call it manually..
I have the common event running whenever the character's Sanity Points dips to 5, basically whenever I have an event to decrease the character's SP variable:
screen4.PNG
No you're not making it run when the variable becomes 5, at least not based on the screenshot of your event (which seemingly still has a part below which you didnt add)..

If all the missing part of the event does is doing the same stuff for adam, click this:
Spoiler
You are misunderstanding how Common Events work.

Your Common Event is set to Trigger of None. That means that it wont run unless you call it manually... It will never run automatically.

Doing "if evieSP == 5" as a conditional branch doesnt make it run automatically, because that conditional branch is only checked once the CE runs. It doesnt become a condition for the CE to run automatically.

Again, a Common Event set to a trigger type of None means it wont run unless manually called.

In your case, you can simply add the command "Run common event" on your map event (and choose the right CE) that modifies evieSP, or just do the check in that event itself rather than using a CE..

You can also opt to make the Trigger type as parallel to make it run per frame but I dont suggest it because it leads to more processing, and you seem to only have specific points/events at where the variable can change, so better just call the CE from those events.
I got it working! I was also having issues with a plugin so it actually caused more confusion but you're advice helped.
Thanks! :LZSgrin:

Original thread: https://forums.rpgmakerweb.com/threads/variables-to-learn-skills.113605/