QUOTE |
- Added the "MUSIC,musicname[,range]" keyword that lets you play music when spawned/triggered. Note, it will override any ongoing ambient regional music that might be playing but will only briefly interrupt, not replace, the combat music if a player is in combat mode (that already overrides regional music). This can be used to add additional ambience to triggered events, such as playing MUSIC,Victory upon completion of a quest, or MUSIC,Death on triggering a nasty spawn. This can spawned on its own e.g. "MUSIC,Britain1" or added as part of a spawn spec e.g. "orc/MUSIC,Death/", so that individual spawns could have their own music associated with them. See the MusicName enum in the docs for list of available musicnames (note, they are case sensitive). There are some pieces of music (I think the non-repeating pieces like Death and Victory) that dont seem to be able to be played directly one after the other without playing a continous piece (such as the regional pieces Britain1, Britain2, or other background pieces such as Combat1, Tavern01, etc.) When the optional range argument is given, then the music will be sent to all players within the specified range when it is triggered. Otherwise, by default,only the triggering player receives the music. |
QUOTE |
- modified the MUSIC keyword to allow music number as well as MusicName arguments. So for example MUSIC,9 can be used instead of MUSIC,Britain1. This also allows access to the new ML music values from 51-66 that are not yet defined in the MusicName enum. |
QUOTE |
public enum MusicName { Invalid = -1, OldUlt01 = 0, Create1, DragFlit, OldUlt02, OldUlt03, OldUlt04, OldUlt05, OldUlt06, Stones2, Britain1, Britain2, Bucsden, Jhelom, LBCastle, Linelle, Magincia, Minoc, Ocllo, Samlethe, Serpents, Skarabra, Trinsic, Vesper, Wind, Yew, Cave01, Dungeon9, Forest_a, InTown01, Jungle_a, Mountn_a, Plains_a, Sailing, Swamp_a, Tavern01, Tavern02, Tavern03, Tavern04, Combat1, Combat2, Combat3, Approach, Death, Victory, BTCastle, Nujelm, Dungeon2, Cove, Moonglow, Zento, TokunoDungeon, Taiko, DreadHornArea, ElfCity, GrizzleDungeon, MelisandesLair, ParoxysmusLair, GwennoConversation, GoodEndGame, GoodVsEvil, GreatEarthSerpents, Humanoids_U9, MinocNegative, Paws, SelimsBar, SerpentIsleCombat_U7, ValoriaShips } |