The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Event Systems => Topic started by: modern algebra on August 09, 2007, 07:27:38 AM

Title: [XP] Dynamic Sound Effects (Event System)
Post by: modern algebra on August 09, 2007, 07:27:38 AM
Preface: this is the type of event system better done with scripts. But I feel the Event Systems Database needs some beefing up, and so I made it this way first. I may, in the future, write the scripting version, and it would be better. This is a very old system I wrote. All I did recently was convert it into a plug n' play. It still is not optimized


Okay, this event system essentially allows you to set a rectangular area in a map to "emit" a sound. In other words, the closer you get to that area, the louder it is. It is plug n' play, so all you need to do is copy the event from the demo and paste it into your game, then enter the appropriate data for the respective map. This is what the setup looks like:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg103.imageshack.us%2Fimg103%2F1663%2Fsoundemissionsdemouv3.png&hash=94e1d250afe6d56e61b09f3450bdeae2036e31af)

Basically, you set the Upper Left X and Y to be the upper left corner of the sound emitting device (in this case a waterfall), and set the height and width to be the height (how many squares it encompasses vertically) and width (how many squares it encompasses horizontally) of this object. Then, edit the range to be the number of squares you want to be away from the sound before you start to hear it. Then, you will have to go down the page and find this part:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg103.imageshack.us%2Fimg103%2F6287%2Fsoundemissionsdemown2.png&hash=cffca5ab386c62d8db17d14971fa523a0f3481f1)

Change all the places where it says Play BGS: Waterfall with the BGS you want the object to play. And then it should work. And remember to turn off the switch [201: Initialized] when you exit the map, and also set variables 201-209 to 0.


I'm sorry for the map which is difficult to move around in and has errors. I made that quickly to revive the screenshot thread. Also, tell me if it lags, I took some precautions, but it still might lag and I'd like to know so I can fix it.

The Demo is attached and the event is on the top row of the grid, first column. i.e. (0,0)
Title: Re: Dynamic Sound Effects (Event System)
Post by: pliio8 on August 12, 2007, 04:52:13 PM
Thanks, This si what I want. But i'd love to see a full scripted version.

I'll work with this for now, thanks again.
Title: Re: Dynamic Sound Effects (Event System)
Post by: modern algebra on August 27, 2007, 05:41:58 AM
If you are still around, pliio8, the script is here:

http://rmrk.net/index.php/topic,20546.0.html

Enjoy it.
Title: Re: Dynamic Sound Effects (Event System)
Post by: HolyQuebec on December 22, 2007, 07:07:31 AM
if I get what you mean, this is like kokiri's forest bgm? haha sweet xD nice one Modern!
loll sorry for the comparaison, but this is a great example  ;D
this is some perfect example with ''what to do with the variables without beeing too complicated''
i like how we can create the infinity with the limited..
Spoiler for:
if you get what i mean :-\ ??? :-\