New account registration is temporarily disabled.

GAH! 2 PROBLEMS!

Posts

Pages: 1
So basically i've got these 2 problems. 1 gamebreaking and one that can end up giving you as much money as you want.
The first, more important one is a problem with a battle where you're supposed to lose, but I get a game over anyway. The odd thing is, it used to work.
Here's the code.


My second problem is with a little dice rolling game.
I have a variable handling the amount of money you currently have on hand and one for the amount you bet.
I have a conditional branch ending the event if you have less money than what you bet.
The problem? The branch dun work. So because of this, you can bet 9999 money even when broke.
Here's the code.




This has really got me in a pickle, guys.
For the instant Game Over issue, I found that if you create the event with your battle and Defeat handler and test it and it works BUT THEN change the Monster Group that the battle refers to in any way the event will no longer go into the Defeat condition like 50% of the time, thus the instant Game Over.

I found that I had to completely create a new event every time I changed the monster group and that improved my odds. Eventually I made a battle event that checks for hero's HP <= 0 every turn and if it is Full Heal + End Battle. That seemed to work (except that you get a weird effect where you see the player get fully healed just before the battle exits).

EDIT:
for problem 2, when do you set the <15: Money> variable?
The thing is, i havn't touched that event in a while. The glitch just happened while playtesting today. Its weird because when I die, i get sent back to the map THEN I game over.

And the Money variable is a parallel process common event
post=105520
The thing is, i havn't touched that event in a while. The glitch just happened while playtesting today. Its weird because when I die, i get sent back to the map THEN I game over.

And the Money variable is a parallel process common event
It didn't matter whether I touched the event or not. It seemed though if I changed anything in the Monster Groups tab for that battle it'd get broken.

For #2, I'd play it safe and redundantly assign the Money right there in the event. If things are still wonky, throw the variables into a message box to see what their values are.

EDIT:
And lol, you should play the Runelords demo. Its like the exact same plot device in my game as in yours. (It's like 5 mins into the game)
Ok, thanks, i'll try that.
EDIT:
Well, I feel stupid.
Turns out the problem was that I forgot to do some switch operations.

And for the battle one, it worked! Thanks.
Yeah, if you ever figure out what the true cause of that issue is, let me know. I couldn't figure it out concretely. The Monster Tab thing is just an educated guess. And lol, you should play the Runelords demo. Its like the exact same plot device in my game as in yours. (It's like 5 mins into the game)
I did actually play Runelords. Loved it.
Pages: 1