For reasons I cannot fathom, whenever I put in a command to take a set amount of money from the player, it NEVER WORKS!!!! Why does the game give you the option if it doesn't work?!
Announcement
Collapse
No announcement yet.
Gold Problems
Collapse
X
-
Re: Gold Problems
That's odd.
What does the event look like?Ryner's Games
Simple Man's Quest for the Playground* - Winner: Pavilionite Biography Contest - Click Here!
Monster Must Die - Winner: Halloween Horror Contest - Click Here!
All you need to play is a computer, no outside program necessary!
-
Re: Gold Problems
Anything that XP does, I've found that it does faultlessly. Now, it does exactly what you tell it to do, not what you might want it to do, so what I'd tend to guess is that the line isn't being hit for some reason.
What I like to do to "debug" my code is insert a "Test" message or a sound effect directly before the event command that doesn't occur. If you don't see the message or hear the sound effect, you know that something went wrong beforehand and the game isn't even trying to execute the Lose Gold command. If you DO see/hear it, then you do need to look at your Lose Gold command more closely.
The only other thing I can think of offhand would be the behavior when you have less gold than you're supposed to lose. I think it sets your Gold to 0 when that happens, which is reasonable, but I'm not 100% sure. So make sure your player has enough Gold unless you want to complicate things for now.
If you can't figure things out by doing this and then triple-checking the applicable commands, post your event here and we'll try to figure it out.
Worst comes to worst, I could give you the back-end code to do the same thing that the command is supposed to do, and you can insert it by choosing "Script" on page 3 of the event commands. But I don't think it will need to come to that.
How Badly Do You Want It? (VX Ace) is now available for download! - no outside software necessary.
"I live and love in God's peculiar light." - Michelangelo
Comment
-
Re: Gold Problems
I finally figured out the problem is.
For some reason, the add/remove gold codes were working fine in an Autorun even I had set up, but when I tried to do an add/remove gold code in an action button event, it wouldn't work.
"You're dead if you aim only for kids. Adults are only kids grown up, anyway."
-Walt Disney
Comment
-
Re: Gold Problems
Why.Ryner's Games
Simple Man's Quest for the Playground* - Winner: Pavilionite Biography Contest - Click Here!
Monster Must Die - Winner: Halloween Horror Contest - Click Here!
All you need to play is a computer, no outside program necessary!
Comment
-
Re: Gold Problems
Why is it not working for an action event?Ryner's Games
Simple Man's Quest for the Playground* - Winner: Pavilionite Biography Contest - Click Here!
Monster Must Die - Winner: Halloween Horror Contest - Click Here!
All you need to play is a computer, no outside program necessary!
Comment
-
Re: Gold Problems
The Gold commands should work fine in Action Button events too. If you want us to try to figure it out, post the Action Button code that's not working. If you don't care and you're happy enough to do it through Autorun, that's cool too.
How Badly Do You Want It? (VX Ace) is now available for download! - no outside software necessary.
"I live and love in God's peculiar light." - Michelangelo
Comment
-
Re: Gold Problems
Yeah I'm curious about this issue now.Ryner's Games
Simple Man's Quest for the Playground* - Winner: Pavilionite Biography Contest - Click Here!
Monster Must Die - Winner: Halloween Horror Contest - Click Here!
All you need to play is a computer, no outside program necessary!
Comment
-
Re: Gold Problems
Well don't worry about it. I now have ANOTHER problem: How do I stop the player from being able to move during cutscenes? I though the Wait command would work, but the player's avatar is still free to move, and it completely ****s up scenes the require precise movements from the actors, otherwise the player gets stuck on a wall or immovable object and the game freezes.
"You're dead if you aim only for kids. Adults are only kids grown up, anyway."
-Walt Disney
Comment
-
Re: Gold Problems
Given this new problem and your gold issue, I'm going to hypothesize that there's a fundamental problem in how you're working. You might be doing one thing wrong that's causing everything.
What event trigger are you using? There's no reason the player should be able to move when ANY command is running unless it's a parallel process, which should be used very sparingly.Ryner's Games
Simple Man's Quest for the Playground* - Winner: Pavilionite Biography Contest - Click Here!
Monster Must Die - Winner: Halloween Horror Contest - Click Here!
All you need to play is a computer, no outside program necessary!
Comment
-
Re: Gold Problems
Ditto to what Ryner said.Originally posted by Ryner View PostGiven this new problem and your gold issue, I'm going to hypothesize that there's a fundamental problem in how you're working. You might be doing one thing wrong that's causing everything.
What event trigger are you using? There's no reason the player should be able to move when ANY command is running unless it's a parallel process, which should be used very sparingly.
Have you modified the code at all?
I did once have a problem where the player would automatically move down unless you were holding a different direction. It hung around for several days and then - thankfully - vanished suddenly. But I've never, ever had problems with events like that.
How Badly Do You Want It? (VX Ace) is now available for download! - no outside software necessary.
"I live and love in God's peculiar light." - Michelangelo
Comment
-
Re: Gold Problems
Yup, only use parallel process when you want the event to run without being triggered, non-stop, and repeat infinitely.
It has some uses but for the most part it's too unpredictable. Off-hand, the only time I can remember using it was a conditional branch to keep checking whether a certain button was being pressed, so the game would know when to bring up the town map.
Edit: Oh yeah, it's also good for background sound effects.Last edited by Ryner; 01-17-2012, 08:59 PM.Ryner's Games
Simple Man's Quest for the Playground* - Winner: Pavilionite Biography Contest - Click Here!
Monster Must Die - Winner: Halloween Horror Contest - Click Here!
All you need to play is a computer, no outside program necessary!
Comment


Comment