Gw Temp

Menu

Tutorial - 'CD-Players in RM2K!' by Crazy_Sk_Fan

An item about RPGMaker 2000 posted on

Blurb

Crazy_Sk_Fan gives a well-written explanation on how to create a CD player (Or maybe a BOOMBOX?) in RM2K/3.

Body

Okay, first off this is my VERY first tutorial, even though I have been working with RM2k for a while. Now you know a little bit about me let's get on with the tutorial.

In this tutorial we are going to use….
1.)Forks
2.)Switches
3.)Show Choices
4.)Sound Effects (if you want them, its your call)
5.)Items (make these in the database…if you didn’t know already, lol)
-------------------------------------------------------------------------------------------------------------------------------------
Ok to start off lets make sure you got SONGS (midis) to put into this Compact Disk Player. If you do just Up-Load them in to the Music file in the Rm2k but if you don’t got any, get some!
-------------------------------------------------------------------------------------------------------------------------------------
To make the CD-Player go to the database and start to make the CD-player……this is the settings for the CD-Player or the code for the item (CD-Player)….

Name: CD-Player
Classification : Switch
Price: (what ever you would like it to cost)
Use # of times: Limitless
Explanation: (info of the CD-player.)
On Switch: Name the switch CD-Player
Available at: Field
-------------------------------------------------------------------------------------------------------------------------------------
Now to make the items. Go to the item tab in the Database and make a item for the song you want (make as many as you need, I have over 60+ so yeah…)but back on to the tutorial. When you start to make the item make sure the classification is a SWITCH. And name it whatever you want (I used switch for the classification even though I didn’t make the item have a switch) , make it cost whatever you want for the song and make the # of uses LIMITLESS. Then name the item the name of the song and give a brief description of who sings the song. Last, make sure its only available in the Field (unless you want to change BGM during battles, its all up 2 you.) this is the run down of the item….

Name: (whatever the name of the song is)
Classification : Switch
Price: (what ever you would like it to cost)
Use # of times: Limitless
Explanation: (the name of the group that sings it and if you want to ass anything do so.)
On Switch: No Switch for this item
Available at: Field
-------------------------------------------------------------------------------------------------------------------------------------
Now to make the CD-Player work……Go into the DATABASE and go to the COMMON EVENT tab. Select a spot for the CD-Player to go. And the setting for the CD-Player so be this….

Name: CD-player
Event Start Condition: Parallel Process
Appearance Conditions Switch: CD-Player

To the coding now …
Click on Show Choice and then make the one of the choice Song Midis (if you got more choices make them...I have Song Midis as choice 1, Movie Midis as choice 2, and Final Fantasy Midis as choice 3.) and one of the choices to be TURN OFF CD-PLAYER. After you make that show choice make a message in the SONG Midis CASE saying “Which artist do you want to listen to”, then make another Show Choice, this time put the names of the groups or the artist in the spaces provided. So far this is what you should have

<> Show Choice: Song Midis/Turn off CD-Player
: [Song Midis] Case
<> Messg: Pick an artist you wish to listen to.
<> Show Choice: (what ever your groups names are)
: [name of group] Case


Now make a message saying “Which midi would you like to play?” (If you got only one song for the group put… “Would you like to play this midi?”) Now that you have that done make another Show Choice telling you the names of the songs. This is what you should have so far.

<> Show Choice: Song Midis/Turn off CD-Player
: [Song Midis] Case
<> Messg: Pick an artist you wish to listen to.
<> Show Choice: (what ever your groups names are)
: [name of group] Case
<> Messg: Which midi would you like to play? (or … Would you like to play this midi?)
<> Show Choice: (the name of the song (s))
: [song name] Case


Okay, this tutorial is almost over. Now make a Fork option and make the settings in the fork like this….. When the FORK CONDITIONS pop up go to the 2nd tab on the Fork Option and find the ITEM condition and in the space provide select the name of the song out of the list of things and then make sure it says HAS IT next to the space provided for the name of the song. AND! MAKE SURE THERE IS a ELSE CASE ON THE FORK! Click “ok” and your done with the fork option for now. This is what your coding should look like now.

<> Show Choice: Song Midis/Turn off CD-Player
: [Song Midis] Case
<> Messg: Pick an artist you wish to listen to.
<> Show Choice: (what ever your groups names are)
: [name of group] Case
<> Messg: Which midi would you like to play? (or … Would you like to play this midi?)
<> Show Choice: (the name of the song (s))
: [song name] Case
<> FORK Optn: (name of the song) Item Got


Ok back to telling you what is left. Make another Show Choice and make the Choices say Play and Don’t Play. In the Play Choice add the BGM of the midi (pick the song out of the music files and it will play it. Then add a CHANGE SWITCH make this one be [CD-PLAYER] - OFF and in the Don’t Play Case…don’t add anything.
And in the ELSE CASE in the FORK add a message saying “Can’t find this midi in the CD-Player’s Library.” and then in the Turn off CD-Player case put a switch turing off the cd-player….CODING SO FAR should look like this…


<> Show Choice: Song Midis/Turn off CD-Player
: [Song Midis] Case
<> Messg: Pick an artist you wish to listen to.
<> Show Choice: (what ever your groups names are)
: [name of group] Case
<> Messg: Which midi would you like to play? (or … Would you like to play this midi?)
<> Show Choice: (the name of the song (s))
: [song name] Case
<> FORK Optn: (name of the song) Item Got
<> Show Choice: Play/Don’t Play
: [Play] Case
<> Play BGM: (the song you want it to play)
<> Change Switch : [####:CD-Player]- OFF set
<>
: [Don’t Play] Case
<>
: END case
<>
: ELSE case
<> Messg: “Can’t find midi in CD-Player’s library.”
<>
: END case
<>
: [Turn off CD-Player] case
<> Change Switch :[####:CD-Player]- OFF set
<>
:END case
<>

That is what it should look like, that’s all of the coding to get you start off and you should be able to finger out the rest if you need to add more that 4 groups and stuff.

Well THANK YOU for reading this TUTORIAL and I hope it does work and your game becomes better and the best to you.

If it don’t work e-mail me at crazy_sk_fan@yahoo.com and I will try to help you fix it. (I will e-mail you back with what you need to do.) STAY (SIC)!