Gw Temp

Menu

Tutorial - 'Cell Phone' by bluemoogle

An item about RPGMaker 2000 posted on

Blurb

Learn how to make your very own in-game cell phone courtest of blue_moogle, and yes..there is an in-game example to go wit this!

Body

===================
Cell Phone Tutorial
by Blue_moogle
===================


First of all, you must know how to use RPGmaker 2000's Variable and Fork Condition System. Second, you must know what a Cell Phone is. Third, you must think of a few 5 digit numbers for the phone. Now on to the tutorial.

First, open up the database, and go to common events. This may be new and scary for you, or it may be a heaven. Its up to you how you want to put it. Choose one of the events on the side, (probably #1) and name is Cell Phone. For Event Start Condition, make it Autostart. And for the Switch, name one Cell Phone.

Now look at the big open area, that looks like the Event Editor. Wow, it is the event editor, same commands too! And no, this is not some twilight zone. Make an event, and have it be a cycle. It is on the third page. You'll see something that looks like this.

()Cycle
()
:End Cycle
()

Does it look the same? Good. Now in the are in between Cycle and :End Cyble, right click and make an event in there, and make it input number. It is one the first page. Have it be set to 5 digits, not 6, and have it be stored into a variable. I'm going to set it as #1 Variable, and I'm going to call is Cell Phone. DOes it look like this?

()Cycle
()Input Number : 5Dg.(0001:Cell Phone)
()
:End Cycle
()

The Variable number and name may vary. Now, we do the easiest part! Think of some phone numbers! These are some that you will need to think of. A number that will turn the phone off, and thats it, and a simple number that calls the hero's best friend. So, lets get started!

Make a fork conditions beneath the Input event, and click the Variable section. Now this part is confusing at first, so re-read untill you get it. YOu will see the Word Set with a number by it, then you'll see Variable, with a gray variable next to it, and below it, a drop down menu with same, above, below, bigger, smaller, others. Make it be same. For the Number on Set, have it be any 5 digit number. Ex: 55892 Make it not have an Else Case, and click ok. YOu'll get something like this.

()Cycle
()Input Number : 5Dg.(0001:Cell Phone)
()FORK Optn:Varbl(0001:Cell Phone)- 55892
()
:END Fork
:End Cycle

Now inside the fork, put it as switch, and turn off the Cell Phone Switch. Below that, make it break cycle. Tah Dah! You finished the first number! It should look like this!

()Cycle
()Input Number : 5Dg.(0001:Cell Phone)
()FORK Optn:Varbl(0001:Cell Phone)- 55892
()CHANGE Switch(003:Cell Phone)-Off SET
() BREAK cycle
:END Fork
:End Cycle

Ok, so now the hero can call this number, and it will turn it off, but thats not what phones are for! YOu need to call people. SO lets call the hero's friend. I'm going ot use the number 28891. DO the samething as you did before, but without the break cycle and switch part, and replace it with a message saying something like 'Bob: Hi Joe, you called me.' In the Fork Condition, replace 55892 with 28891. You'll end up with this.

()Cycle
()Input Number : 5Dg.(0001:Cell Phone)

()FORK Optn:Varbl(0001:Cell Phone)- 55892
()CHANGE Switch(003:Cell Phone)-Off SET
() BREAK cycle
:END Fork

()FORK Optn:Varbl(0001:Cell Phone)- 28891
()Message: Bob: Hi Joe, you called me.
:END Fork
:End Cycle

Now that may be confusing, so I spaced out the sections for you, but in RM2k, that won't be spaced out, but thats not problem, is it? Now, you have the code for the cell phone, but you don't have a cell phone. Make an item in the database, call it cell phone, make it a Switch Item, make it's use limitless, give it a description, and have it turn on the Cellphone switch. Test it out! Make a shop that sells cell phones, have the Hero Go Buy one, and test it out! Or try my demo that comes with it.

To pick up the in-game example of the Cell Phone tutorial use the below download:
GW - Cell Phone ('http://www.gamingw.net/staff/bart/gw-cellphone.zip')