mail[Wesnoth-commits] r24281 - in /trunk: changelog data/core/macros/sound-utils.cfg


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by ravanrooke on March 03, 2008 - 21:20:
Author: rhuvaen
Date: Mon Mar  3 20:02:18 2008
New Revision: 24281

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24281&view=rev
Log:
Adding the VICTORY_AND_DEFEAT_MUSIC macro for use while we lack proper engine 
support for this, but not wiring it into any scenarios (that's up to the 
campaign designers for now).

Modified:
    trunk/changelog
    trunk/data/core/macros/sound-utils.cfg

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=24281&r1=24280&r2=24281&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Mon Mar  3 20:02:18 2008
@@ -1,6 +1,10 @@
 Version 1.5.0-svn:
  * language and i18n:
    * updated translations: Dutch, French, Galician, Japanese
+ * miscellaneous and bug fixes:
+   * added VICTORY_AND_DEFEAT_MUSIC macro - not wiring it in in trunk
+     content, in the hope that we get engine support for this soon, but it's
+     here to use in the meantime
 
 Version 1.4:
  * language and i18n:

Modified: trunk/data/core/macros/sound-utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/sound-utils.cfg?rev=24281&r1=24280&r2=24281&view=diff
==============================================================================
--- trunk/data/core/macros/sound-utils.cfg (original)
+++ trunk/data/core/macros/sound-utils.cfg Mon Mar  3 20:02:18 2008
@@ -228,6 +228,54 @@
             append=no
         [/music]
     [/event]
+#enddef
+
+#define VICTORY_AND_DEFEAT_MUSIC
+    # This wires the defeat and victory music into scenarios
+[event]
+    name=victory
+    {RANDOM 0..1}
+    [if]
+      [variable]
+          name=random
+          greater_than=0
+      [/variable]
+      [then]
+          [music]
+              name=victory.ogg
+              play_once=yes
+          [/music]
+      [/then]
+      [else]
+          [music]
+              name=victory2.ogg
+              play_once=yes
+          [/music]
+      [/else]
+    [/if]
+[/event]
+[event]
+    name=defeat
+    {RANDOM 0..1}
+    [if]
+      [variable]
+          name=random
+          greater_than=0
+      [/variable]
+      [then]
+          [music]
+              name=defeat.ogg
+              play_once=yes
+          [/music]
+      [/then]
+      [else]
+          [music]
+              name=defeat2.ogg
+              play_once=yes
+          [/music]
+      [/else]
+    [/if]
+[/event]
 #enddef
 
 # For some animations some units use a list of sounds, from which one is




Related Messages


Powered by MHonArc, Updated Mon Mar 03 21:41:20 2008