WAITING FOR PLAYER INPUT
Posts
I'm making a custom battle system out of events. I made an event that uses Label -> Conditional Branch: Button _ is Down -> Jump to Label to allow the actor in the front of the party to choose between Attack, Defend etc. when it's their turn. So far, only Attack has an event linked to it.
When the player selects Attack, it runs an event that uses the same method to allow the player to choose a target. It displays some information on the highlighted target. The first time I tested this, I forgot to add the Jump to Label commands, so it highlighted both enemies at once. When I put the commands in and tested it again... the game froze as soon as I selected Attack. The music kept going, but the characters on screen stopped moving and nothing happened. F9 wouldn't open the debug menu, but I think F12 still worked.
I'm sure the Jump to Label commands were the cause. Removing them made it work (though not as intended), and putting them back made it freeze. Oddly enough, however, there were jump to label commands inside conditional branches that had no effect on whether it froze or not.
I tried putting the chunks of event commands inside loops. I was 100% sure the Jump to Label commands on the very bottom level were causing it, so if they weren't there, then it would work perfectly, right? Nope. It still froze. Somehow, I managed to break logic itself.
Then I remembered the Jump to Labels inside conditional branches. I tried using Loops inside a conditional branch: gold = 0 or more, but that didn't work. So I tried Jump to Label again. That didn't work.
Fuck.
In desperation, I tried copy/pasting the common event into a different slot and having the action select event call the new one, but it garnered the same result. If I can't find a way to fix this, then I simply can't finish this thing. I'll have to scrap it entirely. I really, really don't want to do that.
When the player selects Attack, it runs an event that uses the same method to allow the player to choose a target. It displays some information on the highlighted target. The first time I tested this, I forgot to add the Jump to Label commands, so it highlighted both enemies at once. When I put the commands in and tested it again... the game froze as soon as I selected Attack. The music kept going, but the characters on screen stopped moving and nothing happened. F9 wouldn't open the debug menu, but I think F12 still worked.
I'm sure the Jump to Label commands were the cause. Removing them made it work (though not as intended), and putting them back made it freeze. Oddly enough, however, there were jump to label commands inside conditional branches that had no effect on whether it froze or not.
I tried putting the chunks of event commands inside loops. I was 100% sure the Jump to Label commands on the very bottom level were causing it, so if they weren't there, then it would work perfectly, right? Nope. It still froze. Somehow, I managed to break logic itself.
Then I remembered the Jump to Labels inside conditional branches. I tried using Loops inside a conditional branch: gold = 0 or more, but that didn't work. So I tried Jump to Label again. That didn't work.
Fuck.
In desperation, I tried copy/pasting the common event into a different slot and having the action select event call the new one, but it garnered the same result. If I can't find a way to fix this, then I simply can't finish this thing. I'll have to scrap it entirely. I really, really don't want to do that.
That's what I'm doing. I should be more specific; what I'm doing is Label -> Conditional Branch: Button _ is Down: Call Common Event -> Branch End -> Jump to the label above.
What version of RM2k3 are you using? If you are using an older one than 1.09, I would suggest upgrading to 1.09 or translating 1.11 for yourself. This might be a bug that is fixed in one of those versions.
Alternatively drop some messages or some way of the event saying "I am doing this" so its possible to tell what it is doing prior/during the freeze
Toast:
Zeriab makes free scripts for people. One of them is a Key Input script. Google it, 1st result is probably the correct script. Works perfectly. I use it.
Zeriab makes free scripts for people. One of them is a Key Input script. Google it, 1st result is probably the correct script. Works perfectly. I use it.
author=Fallen-Griever link=topic=3999.msg80697#msg80697 date=1245054317
CtrlC+V'd scripts are for losers.
Say that to Geondun.
author=GreatRedSpirit link=topic=3999.msg80643#msg80643 date=1245030990I do know. It freezes the moment it loads the common event.
Alternatively drop some messages or some way of the event saying "I am doing this" so its possible to tell what it is doing prior/during the freeze
I'll try the Key Input script, and although that would kind of destroy the novelty of making it out of events, I'm already using a script to raise the picture limit and the finished product is more important anyway.
author=Fallen-Griever link=topic=3999.msg80703#msg80703 date=1245063266
Craze, you actually know how to code though. I have less of an issue with that.
I take offense to this. Harm knows exactly what he is doing and I am pretty sure that the quality of his game is >>>>> 99% of stuff made rm2k3. Hell, his music alone for Deadly Sin is better than... every recent 2k3 game on this site.
Don't be such an ass about this. The difference between shoving scripts into Legionwood v. Deadly Sin is lightyears away.

















