This is my first tutorial, so try to stay with me, and, if you make it to the end, comments and constructive criticism are appreciated.
This is a tutorial to make a cell-phone in your game, like I am doing in my game. If you have ever played Pokemon, this is like the PokeNav, but a Cell Phone. This is a little time consuming, but it's worth it. You get a good Cell phone system in the end. NOTE: I used RPG Maker 2003, so I'm not sure if this will work with 2000.
All right, start out by going into the database and making the item. Make it a switch, give it a price of 0 (we don't want our player to sell it, do we?), give it unlimited uses, and tell it to turn on switch [####: PhoneOn]. Make it a Field Activation only. Make another item, and call it Phone Book. Make this one a switch as well, and, again, make its uses unlimited, and tell it to turn on switch [####: PhoneBookOn] . Give the description something like this: "A Book with all the phone numbers of everybody!" Hit apply and head over to Common Events. Create a new event, call it Phone, make it a Parallel Process, and set its Trigger Switch to Phone On. You're going to want to add this coding (it's in red, to be able to notice it):
< > Label: #
< > Message: What would you like to do?
< > Show Choices: Call Someone/Turn Off
: [Call Someone] Handler
< > Message: Enter the number of the person you wish to call.
< > Input Number: 6 Digit, [####: Dialed Number]
< > Branch if Var [####: Dialed Number] is V[####] Equal (This is the number of the person you wanted to call)
< > Message: … … … … … …
< > Message: *Click*
< > Message: (Whatever you want the person to say)
Then at the end, place:
< > Message: … … … … … …
:
: *Click*
< > Jump to Label: # (Whatever you had above)
< >
: Else Handler
< > Message: Sorry, but the number you are trying to reach does not exist.
< > Jump to Label: # (Same as above)
< >
Repeat the Branch for every person you have, but change the variable and the message. Then, at the very bottom, where the Turn Off Handler is, put this:
: [Turn Off] Handler
< > Switch Operation: [####: PhoneOn] OFF
< >
: End
< >
You put the PhoneOn off operation because that, in a sense, turns off the phone, and 'deactivates' the Common Event until you need to use it again. But, we're not done yet. Make another new Common Event, and this time, call it PhoneBook. Set this one also as a Parallel Process, and make its Trigger Switch [####: PhoneBookOn]. Put the following coding in:
< > Message: Would you like to read the Phone Book?
< > Show Choices: Yes/No
: [Yes] Handler
< > Message: (The people's Phone Numbers. For example:
Me……………………..#
Someone……………….#, etc.)*
Then, after all your messages, place this:
< > Switch Operation [####: PhoneBookOn]OFF
*NOTE: You can only have 4 people per Message, so if you have 16 people, you need 4 messages. Now, at the end put:
: [No] Handler
< > Message: Didn't want to.
< > Switch Operation [####: PhoneBookOn]OFF
< >
: End
< >
Now, you may be thinking, "But, this means people can call other people that they haven't met yet!" No problem! Just go back to your Phone Common Event, and add this (the added coding is in blue):
< > Label: #
< > Message: What would you like to do?
< > Show Choices: Call Someone/Turn Off
: [Call Someone] Handler
< > Message: Enter the number of the person you wish to call.
< > Input Number: 6 Digit, [####: Dialed Number]
< > Branch if Var [####: Dialed Number] is V[####] Equal (This is the number of the person you wanted to call)
< > Branch if Switch [####: (Person's name)NumberOn]
< > Message: … … … … … …
< > Message: *Click*
< > Message: (Whatever you want the person to say)
Then, at the end of the Branch for the switch, add this (again, the added text is in blue):
< > Message: … … … … … …
:
: *Click*
< > Jump to Label: # (Whatever you had above)
< >
: Else Handler
< > Message: … … … … … …
:
: Your call has been rejected!
: Jump to Label: # (Same as above)
: Else Handler
< > Message: Sorry, but the number you are trying to reach does not exist.
< > Jump to Label: # (Same as above)
< >
And there you go! Now, with each character that you added to the Phone Book, add a switch operation to their coding, turning switch [####: (Person's name)NumberOn] on, add a wait command for about a second, and add a message that says: "So-and-So was registered in your Phone." Lastly, add a variable operation, setting variable [####:(Person's Name)Number] to the number that you want their cell phone number to be.
That's it! Enjoy it, but give me credit in your game.
This is a tutorial to make a cell-phone in your game, like I am doing in my game. If you have ever played Pokemon, this is like the PokeNav, but a Cell Phone. This is a little time consuming, but it's worth it. You get a good Cell phone system in the end. NOTE: I used RPG Maker 2003, so I'm not sure if this will work with 2000.
All right, start out by going into the database and making the item. Make it a switch, give it a price of 0 (we don't want our player to sell it, do we?), give it unlimited uses, and tell it to turn on switch [####: PhoneOn]. Make it a Field Activation only. Make another item, and call it Phone Book. Make this one a switch as well, and, again, make its uses unlimited, and tell it to turn on switch [####: PhoneBookOn] . Give the description something like this: "A Book with all the phone numbers of everybody!" Hit apply and head over to Common Events. Create a new event, call it Phone, make it a Parallel Process, and set its Trigger Switch to Phone On. You're going to want to add this coding (it's in red, to be able to notice it):
< > Label: #
< > Message: What would you like to do?
< > Show Choices: Call Someone/Turn Off
: [Call Someone] Handler
< > Message: Enter the number of the person you wish to call.
< > Input Number: 6 Digit, [####: Dialed Number]
< > Branch if Var [####: Dialed Number] is V[####] Equal (This is the number of the person you wanted to call)
< > Message: … … … … … …
< > Message: *Click*
< > Message: (Whatever you want the person to say)
Then at the end, place:
< > Message: … … … … … …
:
: *Click*
< > Jump to Label: # (Whatever you had above)
< >
: Else Handler
< > Message: Sorry, but the number you are trying to reach does not exist.
< > Jump to Label: # (Same as above)
< >
Repeat the Branch for every person you have, but change the variable and the message. Then, at the very bottom, where the Turn Off Handler is, put this:
: [Turn Off] Handler
< > Switch Operation: [####: PhoneOn] OFF
< >
: End
< >
You put the PhoneOn off operation because that, in a sense, turns off the phone, and 'deactivates' the Common Event until you need to use it again. But, we're not done yet. Make another new Common Event, and this time, call it PhoneBook. Set this one also as a Parallel Process, and make its Trigger Switch [####: PhoneBookOn]. Put the following coding in:
< > Message: Would you like to read the Phone Book?
< > Show Choices: Yes/No
: [Yes] Handler
< > Message: (The people's Phone Numbers. For example:
Me……………………..#
Someone……………….#, etc.)*
Then, after all your messages, place this:
< > Switch Operation [####: PhoneBookOn]OFF
*NOTE: You can only have 4 people per Message, so if you have 16 people, you need 4 messages. Now, at the end put:
: [No] Handler
< > Message: Didn't want to.
< > Switch Operation [####: PhoneBookOn]OFF
< >
: End
< >
Now, you may be thinking, "But, this means people can call other people that they haven't met yet!" No problem! Just go back to your Phone Common Event, and add this (the added coding is in blue):
< > Label: #
< > Message: What would you like to do?
< > Show Choices: Call Someone/Turn Off
: [Call Someone] Handler
< > Message: Enter the number of the person you wish to call.
< > Input Number: 6 Digit, [####: Dialed Number]
< > Branch if Var [####: Dialed Number] is V[####] Equal (This is the number of the person you wanted to call)
< > Branch if Switch [####: (Person's name)NumberOn]
< > Message: … … … … … …
< > Message: *Click*
< > Message: (Whatever you want the person to say)
Then, at the end of the Branch for the switch, add this (again, the added text is in blue):
< > Message: … … … … … …
:
: *Click*
< > Jump to Label: # (Whatever you had above)
< >
: Else Handler
< > Message: … … … … … …
:
: Your call has been rejected!
: Jump to Label: # (Same as above)
: Else Handler
< > Message: Sorry, but the number you are trying to reach does not exist.
< > Jump to Label: # (Same as above)
< >
And there you go! Now, with each character that you added to the Phone Book, add a switch operation to their coding, turning switch [####: (Person's name)NumberOn] on, add a wait command for about a second, and add a message that says: "So-and-So was registered in your Phone." Lastly, add a variable operation, setting variable [####:(Person's Name)Number] to the number that you want their cell phone number to be.
That's it! Enjoy it, but give me credit in your game.
Last edited: