Chaos Project

RPG Maker => General Discussion => Troubleshooting / Help => Topic started by: Hellfire Dragon on January 01, 2009, 11:14:58 am

Title: [RESOLVED]Gold = Variable not working
Post by: Hellfire Dragon on January 01, 2009, 11:14:58 am
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.
Spoiler: ShowHide
(http://img231.imageshack.us/img231/7526/bankgp1.png)

Title: Re: Gold = Variable not working
Post by: Starrodkirby86 on January 01, 2009, 11:49:23 am
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.
Title: Re: Gold = Variable not working
Post by: Hellfire Dragon on January 01, 2009, 11:56:10 am
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.
Title: Re: Gold = Variable not working
Post by: Starrodkirby86 on January 01, 2009, 12:05:02 pm
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?
Title: Re: Gold = Variable not working
Post by: winkio on January 01, 2009, 12:07:28 pm
The way you set the variable to the gold is completely correct, so look at the rest of your event system.
Title: Re: Gold = Variable not working
Post by: Hellfire Dragon on January 01, 2009, 12:27:38 pm
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;

Spoiler: ShowHide

(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?
Title: Re: Gold = Variable not working
Post by: Starrodkirby86 on January 01, 2009, 12:32:48 pm
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...
Title: Re: Gold = Variable not working
Post by: KRoP on January 01, 2009, 03:05:14 pm
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.
Title: Re: Gold = Variable not working
Post by: Sally on January 02, 2009, 10:15:25 am
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.
Title: Re: Gold = Variable not working
Post by: Hellfire Dragon on January 02, 2009, 10:25:34 am
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 :/
Title: Re: Gold = Variable not working
Post by: Sally on January 02, 2009, 10:26:14 am
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,
Spoiler: ShowHide
(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)
Title: Re: Gold = Variable not working
Post by: Hellfire Dragon on January 02, 2009, 11:34:40 am
Thanks Susys ;) Resolved. I'm posting this over at the event system now
Title: Re: [RESOLVED]Gold = Variable not working
Post by: Sally on January 02, 2009, 12:42:35 pm
no problem.