I'm trying to tie the player's gold with a variable so that the variable will be same as the gold. I set something like up before but it was tieing the player's hp to a variable. Now my problem is, even though I set it the same as the one with the hp it isn't working.
(http://img231.imageshack.us/img231/7526/bankgp1.png)
1) Try a different variable value. Maybe this Variable 002 is being used somewhere else that you don't know.
2) The Common Event is working, right?
I did variable operations on a fresh new project, and it works fine. I can only think of something else using that variable you have at the moment, so change it.
Quote1) Try a different variable value. Maybe this Variable 002 is being used somewhere else that you don't know.
Still happening. This a new project I made for an event system I'm making.
Quote2) The Common Event is working, right?
Yep, everything else is working fine in it.
The only time I'm using it is when I'm checking wheather another variable is greater than that one and when I'm adding or subtracting from it.
Let's hope the player actually has some gold before making the following transactions. :V:
I wouldn't know what to do from here since I'm unsure of the Event System being taken place, but I'll see what I can do and check if the Variable will record when I launch the Common Event, or something like that. Hmm...it records for me...Is it possibly something that is occurring through your eventing?
The way you set the variable to the gold is completely correct, so look at the rest of your event system.
I see nothing wrong with it, unless I'm misssing something, I use 3 common events in the bank system I'm making, here's the screens;
(http://img117.imageshack.us/img117/1032/bankrc9.png)
(http://img356.imageshack.us/img356/5267/bank2nj6.png)
(http://img90.imageshack.us/img90/5747/bank3cz4.png)
Anyone else see anything wrong?
See if the first Variable Operation in the "Bank" Common Event records gold...That Check money status choice seems to be a good indicator, or you can just use the F9 Database. :P
I don't see anything totally kooky, but then again I never evented in a while and I never was around using Exit Event Processing...
The only thing that I could think of not working is that the gold variable might have to be updated every time the amount of gold you have changees. And even then, I'm not sure that would happen.
you have to update your gold variable everytime you make a withdrawl or deposit
is this in xp or vx? if its in vx then can you make me a demo and ill take a look.
EDIT: i started to make your event system in my program, and i found your problem, you never subtract your golgd ammount in your event, you sutract your variable but not your gold. gimmi a sec and ill take ss of what i modified on your event.
It's for xp. Well I have the gold variable updating every time now and everything seems to working fine except the system is only effecting the variables so it isn't adding or subtracting gold :/
i started to make your event system in my program, and i found your problem, you never subtract your golgd ammount in your event, you sutract your variable but not your gold. gimmi a sec and ill take ss of what i modified on your event.
ok i got it to work, heres screenshots,
(http://i707.photobucket.com/albums/ww73/kerthil/bankwith.jpg)
(http://i707.photobucket.com/albums/ww73/kerthil/bankdepo.jpg)
(http://i707.photobucket.com/albums/ww73/kerthil/bank.jpg)
Thanks Susys ;) Resolved. I'm posting this over at the event system now
no problem.