Status
Not open for further replies.

Mercedes90

Veteran
Veteran
Joined
May 7, 2021
Messages
105
Reaction score
27
First Language
English
Primarily Uses
RMMV
Sorry. I did mean that my posting was an error not yours. I was reading your code and hit reply by mistake. Truly I didn't mean to be offensive, especially when I made the mistake, not you. The forum doesn't allow users to delete their post, so I just wanted to apologize for my mistake. I do wish you well with your project, and, again, I apologize.

No worries, it was my fault. I should've asked you what you meant by it first. <3
 

Mercedes90

Veteran
Veteran
Joined
May 7, 2021
Messages
105
Reaction score
27
First Language
English
Primarily Uses
RMMV
Again, I am not reading the replies.

You have reverted your common event and added back some bad code that you originally took out.

There should be nothing in the Else branches except Jump to Label. The "wrong number" processing should be right at the end of the common event, underneath the Wrong Number label.

Please look carefully at my first example again, and compare with yours.

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.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,133
Reaction score
15,532
First Language
English
Primarily Uses
RMMV
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?
 

Mercedes90

Veteran
Veteran
Joined
May 7, 2021
Messages
105
Reaction score
27
First Language
English
Primarily Uses
RMMV
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.
 
Last edited:

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,777
Reaction score
1,626
First Language
English
Primarily Uses
RMMV
It looks like your code does something like this:
> if (first number) > do stuff : else > wrong number > if (second number)

Sooo, it checks if it's the first number, and if it's not it does the else (wrong number) and never gets to check if it's the second one. You could move the wrong number stuff from the else statements and into a variable check if it's not either of those numbers. Sorry I hope it makes sense!
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.

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.
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.
 
Last edited:

Mercedes90

Veteran
Veteran
Joined
May 7, 2021
Messages
105
Reaction score
27
First Language
English
Primarily Uses
RMMV
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:
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,115
Reaction score
5,966
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

For some reason, I found this is kinda stylist
ready to fall into another development hell...
Mega has been giving me a lot of problems as of late, so I think I'll need to switch to another cloud service. I'm considering Dropbox.
Rough week, but in the end there's light in the darkness.
Mental health is an issue I wish was taken more seriously.
Take care.
1638421271905.jpeg
By the power of timezones! This picture shall still be posted on december 1st!!!
7xI2Gc2.jpg

Forum statistics

Threads
117,126
Messages
1,104,793
Members
153,175
Latest member
SylviaGaming
Top