Author: Scifer
Author Website:

Requirements: No addons required

Version: 3.00 Alpha
Signed: No

Short description: Plays music dynamically

Date: 2013-03-07 08:05

Comments: (0)


MoodJukebox [ALPHA]


This script automatically sums an unlimited number of music packs, dynamically selects the most appropriate mood according to player's stress level, engagement and weather and randomly plays its track.
This is a very powerful script/addon which can dynamically turn the silent Arma3 into a completely musical game.

  • Playlist building: Every music packs entered in arguments list are automatically summed and its tracks are assigned to its respective mood playlists.

  • Shoot detection: The player is influenced by two event handlers. When the player is "hit" his stress is set to 100%, and when he's "firedNear" his stress increases by 10.

  • Units Detection: When you spot enemies, their threat is proportional to how much you know about them. Then the stress level increases towards "tension" mood according to the sum of their threat level.

  • Defining mood by stress level: There are four moods:
      - "truce" for stress levels under 50% in clear day
      - "darkness" for stress levels under 50% in heavy weather or night
      - "tension" for stress level above 50%
      - "sadness" for death scenes

  • Selecting random track: Random track are dynamically selected according to mood players mood.

  • Playing music: Music will be played whenever the mood changes or the track ends.

  • Display: You can costumize which MoodJukebox data and music data are displayed.

  • Dynamic fading: Music volume dynamically drops as stress level approaches a change of mood.

  • Installation:
    * Unpack @MJB to your game installation folder
    * Copy "init.sqf" and "scripts" folder from sample mission into your mission folder.
    * Activate @MJB modfolder in you shortcut parameters.

    Extract the @MJB folder into the ArmA 3 Directory, by default this is located in:
    32-Bit - C:/Program Files/Steam/Steamapps/Common/ArmA 3/
    64-Bit - C:/Program Files (x86)/Steam/Steamapps/Common/ArmA 3/

    After extraction it should look like this:
    Steam/Steamapps/Common/ArmA 3/@MJB
    You'll also need add a Launch Parameter to Steam, in order to do so right-click on ArmA 3 Alpha and click Properties and then Set Launch Options. In the window that opens enter in -mod=@MJB

    You can also use -nosplash to get rid of the splash art and intro videos.

    Included .pbo files:

    * Place the following code in your mission init.sqf, where the arguments are the music packs:
    nul = ["arma2", "oa", "baf", "pmc", "your-pack"] execVM "scripts\MoodJukebox\main.sqf";
    The debug display items can be customized in "scripts\MoodJukebox\display.sqf"

    Future plans:
    * Port everything to JAVA.

    Enable javascript to be able to download from Armaholic please!

    Tags: Dynamic,   Jukebox,   Music,   Sounds