Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Audio in menu/shop, Play a (random) BGM in the menu/shop
SojaBird
post Jun 5 2009, 02:08 AM
Post #1


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




Audio in menu/shop

Version v1.3.1
Author SojaBird
Release Date
v1.0 > 05-06-'09
v1.1 > 06-06-'09
v1.2 > 11-01-'10
v1.2.2 > 14-01-'10
v1.3.1 > 17-01-'10


Introduction
This little snippet can give your project a more personal touch. Choose a BGM (or more) that you want to play in the menu and you're done.


Features
v1.0
  • Choose wich BGM to play in the menu;
  • Decide the pitch and volume.
v1.1
  • Play a random song from your playlist (each with it's own volume and pitch)
v1.2
  • Fixed a bug where the vehicle BGM didn't play when exeting the menu when the player was in a vehicle.
v1.2.2
  • Fixed the bugfix wich didn't seem to work in the previous version;
  • Rewrote the activation of the map-music so it'll trigger properly from any given point when returning to the map.
v1.3.1
  • Added shop-music feature;
  • Fixed a randomness bug.


To come features
- More if sugested...


Script
Attached File  Audio_In_Menu.txt ( 1.77K ) Number of downloads: 450



Customization
Find the modification-module, and make sure you'll make the script as suitable for you as you can.
If options you want to add, are missing, just contact me via the topic or pm.


Compatibility
VX only.


Installation
Put the script above main.
Customise the script to your needs.
Credit me pls.


FAQ
[Show/Hide] My custom music won't play through the script. What must I do?
Make sure your custom music has the same name as the one you put in the script. Also, try to rename the music so that they don't contain any characters wich may corrupt the script.
Think of these: " ' ( ).



Terms and Conditions
Credit me with site, and the script is free for use in NONCOMERCIAL projects.
If anyone want some changes, please pm me or post it here, I'll track the topic.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
SuperMega
post Jun 5 2009, 06:14 PM
Post #2


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




Is it possible to select maybe four songs for the menu, and have one of the four randomly play each time you open the window? Basically, what I am requesting is picking songs to use for the menu and a different song will be picked each time you open the menu.


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- pim321   Audio in menu/shop   Jun 5 2009, 02:08 AM
- - onidsouza   I haven't tested it yet, but i'm sure is a...   Jun 5 2009, 11:01 AM
- - SuperMega   Sounds like an interesting script. I'll be su...   Jun 5 2009, 11:27 AM
- - pim321   Nice you like it. It's very basic but it does ...   Jun 5 2009, 01:37 PM
- - Garlyle   This could perhaps be useful in aiding the old-sch...   Jun 5 2009, 09:12 PM
- - pim321   @super mega Sure I'll add that function @gar...   Jun 5 2009, 11:13 PM
- - pim321   Sorry for the dubble post but... version 1.1 now ...   Jun 5 2009, 11:28 PM
- - reijubv   Great, I've always liked your scripts ^^   Jun 5 2009, 11:30 PM
- - pim321   Hehe well thanks I hope you're happy with thi...   Jun 6 2009, 03:01 AM
- - SuperMega   Awesome, thanks for the update!   Jun 6 2009, 10:32 AM
- - pim321   No thanks I hope you're going to enjoy it. J...   Jun 6 2009, 12:54 PM
- - KentaAmon   Cant help to ask but was this LOD inspired? (LOD= ...   Jun 6 2009, 03:02 PM
- - Garlyle   Yes. You just put only one entry in the list.   Jun 6 2009, 04:08 PM
- - pim321   @KentaAmon Nope didn't got the idea from LOD (...   Jun 7 2009, 12:00 AM
- - FranciscoNeto   Hey SojaBird! I've got a question... is th...   Jul 16 2009, 03:34 AM
- - pim321   Hey, I guess rpgmaker vx does play mp3...but you ...   Jul 16 2009, 08:20 AM
- - handy333   QUOTE (pim321 @ Jul 16 2009, 09:20 AM) He...   Jul 24 2009, 06:05 PM
- - pim321   Hey hey (I'm back), I guss it is doable with ...   Aug 4 2009, 11:21 AM
- - link245   Whenever I go into the menu it still plays the BGS...   Aug 11 2009, 08:50 PM
- - pim321   Hey, Yea that's a good one Didn't though...   Aug 11 2009, 09:38 PM
- - TashanDragon   I Might Try This Once I Find A Fitting BGM For The...   Aug 12 2009, 09:47 AM
- - Locke   Hey nice script i can use this for my game, good j...   Sep 25 2009, 07:16 PM
- - SojaBird   Welcome welcome I actualy getting more and more ...   Sep 26 2009, 02:16 AM
- - Starfurry23   NICE i am loving this alot. This will definately c...   Sep 28 2009, 11:37 AM
- - SojaBird   Hehe cool I'm curious how your game is going ...   Sep 28 2009, 11:06 PM
- - AnimeSnave   Hey there, gotta say I love all of your scripts...   Oct 4 2009, 09:32 AM
- - SojaBird   Hey, I'm sorry to say but I don't know th...   Oct 4 2009, 11:23 AM
- - ZeroManArmy   So what this does is change the BGM for the Menu w...   Jan 4 2010, 06:15 PM
- - SojaBird   Well yea, also. Though actualy it ADDS a custom BG...   Jan 5 2010, 01:51 AM
- - ZeroManArmy   Thats good. I like this lost. thanks!   Jan 8 2010, 04:57 PM
- - SojaBird   You are welcom. If there are more things based on...   Jan 9 2010, 05:30 AM
- - Rexunreal   I have come across one problem and that is when I...   Jan 11 2010, 08:57 AM
- - SojaBird   Hey there Rexunreal, If I get you right, you meen...   Jan 11 2010, 09:16 AM
|- - Rexunreal   QUOTE (SojaBird @ Jan 11 2010, 12:16 PM) ...   Jan 11 2010, 10:29 PM
- - SojaBird   Oke well I hadn't tried it out since my buzy s...   Jan 12 2010, 12:53 AM
- - SojaBird   UPDATE v1.2.2 Works better now. And also since th...   Jan 14 2010, 07:37 AM
- - Rexunreal   just got to try it out. it works great thanks a lo...   Jan 14 2010, 09:42 AM
- - SojaBird   Oke good Allright, well I'll do that soon the...   Jan 14 2010, 12:43 PM
- - ZeroManArmy   So did you fix the continuing BGM bug? After you l...   Jan 14 2010, 07:30 PM
- - SojaBird   Well yes I did fixed the bug. Does it work for you...   Jan 15 2010, 03:35 AM
- - sepcon   Well it works with the rpg maker vx music but when...   Jan 17 2010, 10:08 AM
- - SojaBird   Mmm that's pretty odd... Make sure you name th...   Jan 17 2010, 10:25 AM
- - sepcon   problem fix =D your script couldn´t read this so ...   Jan 17 2010, 10:28 AM
- - SojaBird   UPDATE v1.3.1 Check the first page to get the scri...   Jan 17 2010, 10:53 AM
- - sepcon   oh goodi goodi ! yeah that is what i mean on t...   Jan 17 2010, 11:35 AM
- - SojaBird   Hihi good, Let's hope you also enjoy the upda...   Jan 17 2010, 12:16 PM
- - ZeroManArmy   Shop Error Menu Error Any help?   Jan 17 2010, 02:19 PM
- - SojaBird   O dear, yep I found the problem. Gonna fix this to...   Jan 17 2010, 05:13 PM
- - ah2190   I had to edit this a bit to work, but now the paus...   Apr 14 2011, 09:30 AM
- - SojaBird   Good to know that even with my absent my scripts s...   Apr 18 2011, 09:50 AM
- - RMXP Maker   This is perfect, its like Final Fantasy I. Thanks...   Sep 7 2011, 11:52 AM
- - RMXP Maker   I got this problem: ?????'Audio in Menu/Shop...   Sep 9 2011, 03:05 PM
- - CyBeR_K1K1   the bgm are not playing when i go to menu scene a...   Nov 30 2011, 01:00 AM


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: 17th June 2013 - 10:58 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker