Store Experience in Variable?

Hi, I've been trying to use the experience as a variable, when I use the Control Variable : Actor : EXP. The value is always 0.


I tried the variable in a different project and it still did not work.


Qc97VaO.png



This always outputs to 0 no matter what, I have the Control Variable before the Show text. I also need this to work for a conditional branch if the EXP is over a certain amount, but it's always 0.


Am I using the variable wrong?
You should give 0001:Username some experience and test the variable again.


Did the character got any experience by an event?


Did the character defeated any monster?


Experience might start from 0.


If that doesn't change, well, the variable will not change either. 🙂


Sorry if you already tried that. I just wanna eliminate possibilities.
Tried both outcomes, EXP by event and EXP by defeating a monster.


Variable is always 0.


The EXP starts off at 0, then after the first battle the user must have 50 exp, I control the variable but when I check it in a text box it's still 0 when it shows 50 in the menu.


Is there possibly a glitch with variables? Also is there anyway to check if EXP is over a certain amount using conditional branch - without the variable? I remember seeing someone using the script bar to check the EXP but that was for VX Ace and not sure if it would work the same on VX.
When do you call the variable? Are you calling it after the fight? The variable has to be called immediately before you wish to use it. It will not work any other way. So to check it with a text box, call to store the value in the variable, then immediately print the value.
I just created this event now to test and still giving me 0:


ldRWhRC.png
Are you certain that actor is in your party?


What other scripts do you have?  It should work - if it isn't, there's a script interfering.
Yep, it's a one party game, no other characters. I tried it in a blank project with no scripts and still didn't work, could this be an issue with RPGVX? 


I recreated the event in VX Ace, and it worked and displayed the EXP. However, no avail with VX? Any way to fix this? 
I recall there was an issue with variables in either VX or Ace.  Which one are you using - VX?  What version, and where (and when) did you purchase it?
Fixed the issue. I was using VX 1.02 that I purchased in 2008(I think) from the main website. However, I checked on google for a patch and found an unofficial 1.03 patch which fixes the issues with variables. 


Link for 1.03 Patch if anyone that still uses VX that has this issue. If the link ever dies, message me and I can send it to you, I keep all files of mine safe.


Note: it does not fix old projects, best thing to do is create a new project, put all your scripts into the new project and move the new Scripts.rvdata to your old project. 


Thanks for the replies, it made me realize that there may have been an issue with the RPG VX system itself and there was.


Also if you're wondering why I am still using VX, I tried converting my project to Ace and almost every feature that I need in my game, is not available in Ace and some were just way too complicated to use in Ace.
The version from this site is 1.03a so you're probably better off getting that, as it will be an official version.
Ahhh, I thought it was just released under an unofficial patch, if I download the new version would I have to redo the registering VX? I haven't done it since when I first bought it and I'm not sure how it's done anymore. Quite surprised there was a official patch, I thought it was discontinued after 1.02.
no, if your computer had a registered copy on it then the installer should be able to detect that.
If you purchased it in 2008, you will probably need to get a new registration code, as Degica took over distribution quite a while after 2008 and may not have your details.  This doesn't mean you'll need to buy it again - it just means you need to get registered in Degica's system.  A PM to Touchfuzzy should do the trick - he'll let you know if you need to provide any information.

Original thread: https://forums.rpgmakerweb.com/threads/store-experience-in-variable.72186/