Status
Not open for further replies.

Mercedes90

Regular
Regular
Joined
May 7, 2021
Messages
129
Reaction score
51
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

Regular
Regular
Joined
May 7, 2021
Messages
129
Reaction score
51
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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,970
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

Regular
Regular
Joined
May 7, 2021
Messages
129
Reaction score
51
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
Regular
Joined
Jul 2, 2014
Messages
12,586
Reaction score
11,048
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

Regular
Regular
Joined
May 7, 2021
Messages
129
Reaction score
51
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
10,542
Reaction score
6,774
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 Profile Posts

I've been thinking about doing a jokey submission for the Christmas jam in which, like a cartoon special where all the characters "play" a counterpart in A Christmas Carol, my MagiCats would each play a role from the C.A. Smith story The Coming of the White Worm, with Cyprian as Evagh, Rousalie as Dooni and so forth. But in the end, I figure all my development efforts should go toward the game proper.
In twitter, square phoenix had successfully prompted chatgpt to make the mini game watermelon pangpang.

drew some stuff to see how frontview might look. not entirely sold on or off of it yet. "could" work, but something feels missing.
Shower Thoughts: ". . . Scammers would be OP in the Elder Scrolls. They could just get speech 100 and blatantly ask everyone for all of their money, and everyone would think it's a great investment. And then after being robbed blind, they'd say, with a smile on their face, 'need something?' "
Day #2 for advent is compiled. Please, go to their threads to share love! But, if you wanna talk to me…what’s your favorite Christmas carol or holiday song?

Forum statistics

Threads
136,694
Messages
1,268,852
Members
180,406
Latest member
General_Melt
Top