Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [Eventing]Creating a Radio or a Codec, For RPG Maker XP, but could be adapted for others.
IgaGilgamesh
post Jan 3 2008, 08:09 PM
Post #1


Level 2
Group Icon

Group: Member
Posts: 21
Type: Artist
RM Skill: Advanced




Creating Radios/Codecs

What you need:
-1 Common Event
-1 Variable, 2 if you want random speech
-Conditional Branches

First, go into your Common Events and make a new event, name it Radio, or whatever your device is.

Then, create a Conditional Branch, to see if the key "A", Z on your keyboard, is pressed.

Under that, Have text saying something like:
You turn on your radio, please select your radio channel.

Next, make a Number Input, 4 Digits(or however many you want), and store as a new variable, I called it Radio Channel.

After that, Conditional Branch, if Radio Channel is equal to 1074, then show text:
Channel 1074, Adventuring Music Network!

Then, you can have it play a BGM. For this, you should probably do the whole "memorize BGM" to make it so if you turn your radio off, there isn't any sound anymore.


Then, another Conditional Branch. Let's try a Comedy Network. If Radio Channel is equal to 2487, then show text:
Channel 2487, Comedy Everyday!

New Variable, Random Joke: Random # 1-4.

Conditional Branch, if Random Joke is equal to 1, then show text:
"What did the banana say to the apple?"
"Doesn't matter, kill yourself"

under the "else", if Random Joke is equal to 2, then show text:
"What did the Priest say to the Rabbi?"
"Your Jew's untied!"

under the "else", if Random Joke is equal to 3, then show text:
"In Soviet Russia, RPG makes you!"

under the "else", if Random Joke is equal to 4, then show text:
"So a guy walks into a bar, and...... er.... Aw crap, I forgot the line...."

Under next "else", show the message:
"Invalid Radio Channel"


And now a message to someone, or you!
Conditional Branch, if Radio Channel is equal to 0942, then show text:
Hey Snake. Snake? Snake? SNAAAAAAAKE!!!!!!


Here's what it should look like:









And that's pretty much it. Fairly basic, so you could add effects like advanced messages(dependant on the weather, time of day, randomized, etc. I believe another tutorial has that covered). For a Codec, you could have it so when you press the "A" key, it shows a picture of the Metal Gear Solid codec screen, and show pictures of different people for each channel, the number of the channel, etc.
Go to the top of the page
 
+Quote Post
   
elfyelf
post Jan 4 2008, 01:42 PM
Post #2


(~*A D A N*~)
Group Icon

Group: Revolutionary
Posts: 436
Type: Developer
RM Skill: Advanced




Sounds preety cool, I had an old one, but mine was cheaper, dry.gif
I would of tried it except mines more like in the past.


__________________________
Go to the top of the page
 
+Quote Post
   
jens009
post Jan 4 2008, 05:15 PM
Post #3


L Did you know? Death gods... only eat apples
Group Icon

Group: +Gold Member
Posts: 2,976
Type: Scripter
RM Skill: Skilled




You might want to do something so that the player can listen to the radio while still exploring the area. Or, you can keep it as is. It's just a suggestion.

Good job nonetheless. I'd probably try it out as a mini game for my game. Like find the right station or something

Thanks for your input.

This post has been edited by jens009: Jan 4 2008, 05:20 PM


__________________________

My RMXP Project:


Farewell RRR. =]
Go to the top of the page
 
+Quote Post
   
IgaGilgamesh
post Jan 4 2008, 09:25 PM
Post #4


Level 2
Group Icon

Group: Member
Posts: 21
Type: Artist
RM Skill: Advanced




It should keep playing while you're still exploring the area.


__________________________
Go to the top of the page
 
+Quote Post
   
jens009
post Jan 4 2008, 10:06 PM
Post #5


L Did you know? Death gods... only eat apples
Group Icon

Group: +Gold Member
Posts: 2,976
Type: Scripter
RM Skill: Skilled




QUOTE (IgaGilgamesh @ Jan 4 2008, 08:25 PM) *
It should keep playing while you're still exploring the area.

I meant that the player would still be able to move.

I haven't completely check the code yet, but did you enable it to do that?


__________________________

My RMXP Project:


Farewell RRR. =]
Go to the top of the page
 
+Quote Post
   
IgaGilgamesh
post Jan 4 2008, 10:31 PM
Post #6


Level 2
Group Icon

Group: Member
Posts: 21
Type: Artist
RM Skill: Advanced




Yeah, you turn on the music, and it plays, then you can walk around while it plays.

Unless you mean to let the player walk around while he's typing in the channel and stuff, then no, I don't know how to do that.


__________________________
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Jan 4 2008, 11:14 PM
Post #7


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




Quick idea: For the jokes, you could make them images instead of text in boxes so that you could tell them to display whenever, even when the player is moving.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
IgaGilgamesh
post Jan 5 2008, 12:04 PM
Post #8


Level 2
Group Icon

Group: Member
Posts: 21
Type: Artist
RM Skill: Advanced




You'know, I was thinking about that last night. And it could even be on a timer, so every couple seconds it'll show another one.


__________________________
Go to the top of the page
 
+Quote Post
   
jens009
post Jan 5 2008, 12:07 PM
Post #9


L Did you know? Death gods... only eat apples
Group Icon

Group: +Gold Member
Posts: 2,976
Type: Scripter
RM Skill: Skilled




QUOTE (HeroOfHyla @ Jan 4 2008, 10:14 PM) *
Quick idea: For the jokes, you could make them images instead of text in boxes so that you could tell them to display whenever, even when the player is moving.

That was what I was trying to comment on. It seems you've stated it better than I had. Good solution too.
QUOTE (IgaGilgamesh @ Jan 5 2008, 11:04 AM) *
You'know, I was thinking about that last night. And it could even be on a timer, so every couple seconds it'll show another one.

Nice thinking. Update anytime soon?


__________________________

My RMXP Project:


Farewell RRR. =]
Go to the top of the page
 
+Quote Post
   
IgaGilgamesh
post Jan 5 2008, 12:21 PM
Post #10


Level 2
Group Icon

Group: Member
Posts: 21
Type: Artist
RM Skill: Advanced




Maybe, I'm a really lazy guy, I try not to do too much.


__________________________
Go to the top of the page
 
+Quote Post
   
jens009
post Jan 5 2008, 12:26 PM
Post #11


L Did you know? Death gods... only eat apples
Group Icon

Group: +Gold Member
Posts: 2,976
Type: Scripter
RM Skill: Skilled




That's quite funny because your first post was very detailed and had images. Usually when I submit a tutorial I just leave the code and hope that they figure it out. Quite the irony don't you think?

It's quite simple.
Instead of:
CODE
under the "else", if Random Joke is equal to 4, then show text:
"So a guy walks into a bar, and...... er.... Aw crap, I forgot the line...."

you can put:
CODE
>>Else
>>>If Variable: Random Joke = 4
>>>>Show Picture: 4 (Bar Joke) [xy][opacity][etc.]
>>>>Show Picture: 4 (Bar Joke) (Set opacity to 0 and Frames to take to 100)[xy][etc]
>>>>Wait:100 frames (5 seconds ussually)
>>>>Erase picture: 4


__________________________

My RMXP Project:


Farewell RRR. =]
Go to the top of the page
 
+Quote Post
   
onidsouza
post Mar 9 2009, 04:32 PM
Post #12


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




Bringing back the old guard

Can i be banned for this?


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
beelzibub
post Mar 23 2009, 11:13 PM
Post #13


Level 9
Group Icon

Group: Revolutionary
Posts: 148
Type: Developer
RM Skill: Undisclosed




This is kinda cool, however it seems like it could be problematic while walking around having messages and what not pop-up. It would be cooler if they were pre-recorded or something i know that's alot extra but it would be cool but i'm not taking anything away from what you have created, this is cool. I'm just giving you some ideas.


__________________________
The intention is clear, I stare... with this left hand, unable to be worded, Every time I bleed, there lies the reason to live... And I discover words being so vivid and bright ,even loved ones scatter like petals from flowers in my hand,So even if I engraved the meaning that I lived in my hand, it will only be known as flowers of vanity. the final. One by one it multiplies... why be a sad bait? Deep within the hell of my heart... I can't go back A self-torture loser, not being able to see tomorrow Suicide is the proof of life Even loved ones scatter like petals from flowers in my hand So even if I engraved the meaning that I lived in my hand, the petals will only scatter as flowers of vanity So I can't live What's lost can't be born again A song that's not even seeking the proof of living Let's put an end... The Final Let's bloom flowers of attempted suicide.
Go to the top of the page
 
+Quote Post
   
defilerzero
post Apr 20 2009, 04:42 PM
Post #14


Level 1
Group Icon

Group: Member
Posts: 10
Type: None
RM Skill: Beginner




This might be something I might put into something I'm planning. <___<

Nice tutorial.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 06:26 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker