No worries, it was my fault. I should've asked you what you meant by it first. <3
[SOLVED] Setting up in-game phone numbers to phone calls in MV?
RPG Maker MV SupportNo worries, it was my fault. I should've asked you what you meant by it first. <3
I made a copy of the Common Event and compared yours to mine and dialed both numbers, and both worked this time. So, no worries. I've added the "bad code" because I didn't know exactly how to expand my Phone Call event.
So, since it works when nothing should be after the Jump to Labels commands, then I'll follow this formula.
So, I'm not going to point any fingers, as to why I removed the Jump to Labels commands because as you said you don't wanna read the replies, but I'd rather wanna continue this conversation peacefully.
The first example I gave you should be all that is required. I specifically pointed out which block of code should be duplicated for all the different phone numbers. The Label at the bottom contained all the "wrong number" logic as I assumed you wanted exactly the same thing to happen, regardless of what number was called.
You could have left out the Jump To Label / Label commands and put the "wrong number" code into every Else block (along with an Exit Event Processing), but that meant if you accidentally put the wrong SE in them, or decided you wanted a wait of 500 frames instead of 600, for example, you would have to go back and change every one (and if you had 100 numbers, that'd be a lot of changes). Using those commands simply allows you to put that in a single block of code and make all the wrong numbers go down there. Plus you needed one at the bottom anyway, just in case the player didn't dial any of the right numbers.
So is it all working now? Can this thread be closed?
You could have left out the Jump To Label / Label commands and put the "wrong number" code into every Else block (along with an Exit Event Processing), but that meant if you accidentally put the wrong SE in them, or decided you wanted a wait of 500 frames instead of 600, for example, you would have to go back and change every one (and if you had 100 numbers, that'd be a lot of changes). Using those commands simply allows you to put that in a single block of code and make all the wrong numbers go down there. Plus you needed one at the bottom anyway, just in case the player didn't dial any of the right numbers.
So is it all working now? Can this thread be closed?
No, not yet, Shaz. Just gonna fix it first, then I'll get back to you.
No, there's a second conditional nested inside that the else is attached to, not the outer one. You're correct about moving the wrong number stuff into a section with labels.
I said you should remove them if you were writing out the code they were supposed to jump to - the purpose of them is to avoid rewriting code repeatedly, which you were doing anyway. And your screenshots were not showing any portion of the event that actually had those labels, so as far as I could see they were erroneous.
I'm glad you got it working the way you want.
I appreciate it a lot that you all took the time to help me out with this. I'm getting a hang of it now on how to use the Variables and a part of Conditional Branch.
Again, thanks to everyone for your help.
I'm leaving a video here, demonstrating the Phone Call event in the game:
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/solved-setting-up-in-game-phone-numbers-to-phone-calls-in-mv.138963/