_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
(C) Copyright 2002-2006 by The Stratagus Project. Distributed under the "GNU General Public License"
-- Define sounds used by game
--
DefineGameSounds(
"placement-error", MakeSound("placement error", "ui/placement_error.wav"),
"placement-success", MakeSound("placement success", "ui/placement_success.wav"),
"click", sound_click, -- sound_click already define as SoundId
-- FIXME: Not ready
-- "transport-docking",
-- "building-construction",
"work-complete", {"human", MakeSound("basic human voices work complete", "human/basic_voices/work_complete.wav")},
"work-complete", {"orc", MakeSound("basic orc voices work complete", "orc/basic_voices/work_complete.wav")},
"rescue", {"human", MakeSound("human rescue", "human/rescue.wav")},
"rescue", {"orc", MakeSound("orc rescue", "orc/rescue.wav")} )
-- Makes the sounds "lightning" and "basic human voices acknowledge".
MakeSound("lightning", "spells/lightning.wav")
MakeSound("basic human voices acknowledge",
{"human/basic_voices/acknowledgement/1.wav",
"human/basic_voices/acknowledgement/2.wav",
"human/basic_voices/acknowledgement/3.wav",
"human/basic_voices/acknowledgement/4.wav"})
-- Define selection sound groups.
MakeSoundGroup("footman-selected",
"basic human voices selected", "basic human voices annoyed")
-- Maps the name "footman-acknowledge" to "basic human voices acknowledge".
MapSound("footman-acknowledge", "basic human voices acknowledge")
-- Play the file "spells/lightning.wav".
PlayFile("spells/lightning.wav")
-- Plays the music file "music/default.mod".
PlayMusic("music/default.mod")
-- Play the sound "basic human voices ready".
PlaySound("basic human voices ready")
-- Set the cd mode to play songs in a random order.
SetCdMode("random")
-- Set the sound range to 40. SetGlobalSoundRange(40)
-- Set the music volume to 128. SetMusicVolume(128)
-- Set the range of the sound "basic human voices ready" to 20.
SetSoundRange("basic human voices ready", 20)
-- Set the sound volume to 128. SetSoundVolume(128)
SoundForName("peasant attack")
-- Turns off sound. SoundOff()
-- Turns on sound. SoundOn()
-- Stop playing music. StopMusic()