I've created a skill that you learn from a book, and you keep reading the book to gain experience for the skill.
For that, I have created a variable and linked it to one of my characters stats.
E.g. Skill name = Hypnosis, variable name = Hypnosis, Magic attack changed to "Hypnosis".
Now before I continue, I am not using scripting so forgive any typos but they don't matter because it's using common events.
So when I read the book, I get the common event to do this;
Control Variables: [0001: Hypnosis EXP] += Random No. (1...4)
Change Parameters: [Player], MAT + Variable [0001: Hypnosis EXP]
That works perfectly.
My problem is a conditional branch that levels up the skill if you have enough experience. It's instantly failing despite me having enough EXP.
Here's the script:
Conditional Branch: Variable [0001: Hypnosis EXP] >= 10
@> (Basically level up the skill)
ELSE: (Fails)
It's taking me directly to the fail despite Hypnosis EXP being 17, it's driving me nuts.
Any suggestions?





For that, I have created a variable and linked it to one of my characters stats.
E.g. Skill name = Hypnosis, variable name = Hypnosis, Magic attack changed to "Hypnosis".
Now before I continue, I am not using scripting so forgive any typos but they don't matter because it's using common events.
So when I read the book, I get the common event to do this;
Control Variables: [0001: Hypnosis EXP] += Random No. (1...4)
Change Parameters: [Player], MAT + Variable [0001: Hypnosis EXP]
That works perfectly.
My problem is a conditional branch that levels up the skill if you have enough experience. It's instantly failing despite me having enough EXP.
Here's the script:
Conditional Branch: Variable [0001: Hypnosis EXP] >= 10
@> (Basically level up the skill)
ELSE: (Fails)
It's taking me directly to the fail despite Hypnosis EXP being 17, it's driving me nuts.
Any suggestions?




