I want to add an ability series of events which allow a player to search for traps, lockpick things, etc, and everytime a player successfully does one of these actions, that particular ability gains exp and eventually levels up, making it a little bit easier to do it again next time. The abilities are as followed:
Perception (Listening, Searching, etc.)- Can help you find traps or secret doors or what ever
Disabling- Will help you disable traps that you find
Reflex- Will help you dodge traps or save your self in the nick-of-time from falling or something similar
Lockpicking- Self explanitory, open locked doors/chests
Knowledge- Can help you identify things or learn a secret sooner or whatever
(maybe more)
Anyway, the problem i'm having is that when a player should get exp from succesfully undergoing one of these challenges, he doesn't, or maybe he does, but the event i set up wont level up the skill.
So, this is how I set up the first event (lockpicking a locked gate):
@>Control Variables [0020: Random Number] = Random No. (1...3)
@>Conditional Branch: Variable [0020: Random Number] >=2
@>Text: -,-, Dark, Top
: : You failed to pick the lock, the lockpick you were using broke
@>Change Items: [Lockpick], -1
@>Control Variables: [0006:Lockpicking EXP] +=1
@>
: Else
@>Text: -,-, Dark, Top
: : You successfully picked the lock!
@>Control Variables: [0006:Lockpicking EXP] +=3
@>Control Switches: [0021: S Lock1 1] = ON
@>
: Branch End
This event was the 1st page on the locked door. the Random Number variable would be reused for all the events that required a number to be random. the switch, S Lock1 1 was the switch to turn on the second page of this event, which would then open toe door. I made 2 more variables, one called Lockpicking and one called Lockpicking EXP. When the Lockpicking EXP reached a certain number, it would be reduced back down to 0 and the Lockpicking Variable would be increased by 1. The event above was copied and pasted in a conditional branch that made it so the higher your Lockpicking was, the higher the odds of picking the lock was. In any case, what i am having problems with is the event that says when Lockpicking EXP reaches 12, the variable Lockpicking gets +1 and the message "Your Lockpicking ability has increased!" is displayed. That event is below:
@>Conditional Branch: Variable [0006: Lockpicking EXP] == 12
@>Control Variable: [0005: Lockpicking] += 1
@>Control Variable: [0006: Lockpicking EXP] = 0
@>Text: -,-, Dark, Top
: : Your Lockpicking ability has increased to 2
@>
Thats the end of it, nothing past that. For some reason, when i do the lockpicking a bunch of times, to where i should have 12 in the variable Lockpicking EXP, i dont get the level up message, which is really the only way you'd know that the ability has increased in level. I don't know if the variable Lockpicking EXP is getting that +3, or if the second event is even realiseing that the variable has reached 12. IDK what is the problem because i thought it looked solid. If anyone would be kind enough to read through that mess above and help me with this event that is CRUCIAL(sp) to my game, it would be much appreciated. Thanks in advance