![]() |
Battle music in RPG Inferno lite
You know how the music starts again every time you attack ? A bit annoying, isn't it ? Easily fixed with just 2 minimal template changes and a lil' plugin.
Step 1 Download the plugin from here and import it. Step 2 On the inferno_battle_music template remove all that is there (causes the music to restart every time the page gets reloaded, which is every time someone attacks) Step 3 On the inferno_battle_your_battle template (or any of those "inferno_battle..." templates) add a link to the battle music using the code below, which opens a new window for your music (which never gets reloaded so your battle music will stop "stuttering"). On to inferno_battle_your_battle Find: Code:
<td class="thead" width="100%" align='center'>{$turn} Code:
Music: $inferno_battle_music2 Add the template $inferno_battle_music2 to your styles with this code: Code:
<FORM> Now the users need to click on the link you added to hear the battle music, which will be launched in a popup window by the javascript file. Sorry for the popup window but it is necessary: Being on a different window, the soundtrack won't start and stop anymore at every page refresh :D Depending on each of your user's browser plugins (i.e if they have set Quicktime or Flash to handle midi files properly) the new window will also allow them to pause, stop, change the music volume, etc... Version 2.0 * Eliminated the need for a javascript * Added a Music selection bar instead of just replaying the same music over and over * the new template with the music selection bar works ANYWHERE on the forum, including Forumhome and footer (second screenshot)! :) |
All times are GMT. The time now is 05:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|