<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dmwiki.atomas.com/w/index.php?action=history&amp;feed=atom&amp;title=CSBwin%2FCSBuild%2FAdding_custom_sounds</id>
	<title>CSBwin/CSBuild/Adding custom sounds - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dmwiki.atomas.com/w/index.php?action=history&amp;feed=atom&amp;title=CSBwin%2FCSBuild%2FAdding_custom_sounds"/>
	<link rel="alternate" type="text/html" href="https://dmwiki.atomas.com/w/index.php?title=CSBwin/CSBuild/Adding_custom_sounds&amp;action=history"/>
	<updated>2026-04-15T17:26:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://dmwiki.atomas.com/w/index.php?title=CSBwin/CSBuild/Adding_custom_sounds&amp;diff=683&amp;oldid=prev</id>
		<title>WikiSysop: CSBwin/CSBuid Adding custom sounds moved to CSBwin/CSBuild/Adding custom sounds</title>
		<link rel="alternate" type="text/html" href="https://dmwiki.atomas.com/w/index.php?title=CSBwin/CSBuild/Adding_custom_sounds&amp;diff=683&amp;oldid=prev"/>
		<updated>2009-01-06T16:29:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/wiki/CSBwin/CSBuid_Adding_custom_sounds&quot; class=&quot;mw-redirect&quot; title=&quot;CSBwin/CSBuid Adding custom sounds&quot;&gt;CSBwin/CSBuid Adding custom sounds&lt;/a&gt; moved to &lt;a href=&quot;/wiki/CSBwin/CSBuild/Adding_custom_sounds&quot; title=&quot;CSBwin/CSBuild/Adding custom sounds&quot;&gt;CSBwin/CSBuild/Adding custom sounds&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:29, 6 January 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://dmwiki.atomas.com/w/index.php?title=CSBwin/CSBuild/Adding_custom_sounds&amp;diff=412&amp;oldid=prev</id>
		<title>Gilles at 13:23, 16 August 2008</title>
		<link rel="alternate" type="text/html" href="https://dmwiki.atomas.com/w/index.php?title=CSBwin/CSBuild/Adding_custom_sounds&amp;diff=412&amp;oldid=prev"/>
		<updated>2008-08-16T13:23:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;_under construction, may as always take some time... :-/_&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;Here you will learn how a custom sound is added to your dungeon and how it can be triggered (played) using a DSA.&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Don&amp;#039;t worry about having to use a DSA to include a custom sound to your dungeon. It&amp;#039;s not that hard.&lt;br /&gt;
&lt;br /&gt;
Firstoff you&amp;#039;ll need a sound.&lt;br /&gt;
&amp;lt;br&amp;gt;If you have a mike and the necessary tools on your computer, it won&amp;#039;t be much of a problem.&lt;br /&gt;
Use (PCM) 11,025 kHz; 8 bits; Mono to record your sound and save it as a *.wav. You can also use a mobile device or Pocket PC to record speech or sounds, just don&amp;#039;t expect it to sound all that well. With such a low sampling rate it is an art of it&amp;#039;s own to make it sound good.&lt;br /&gt;
&lt;br /&gt;
You might as well steal some sounds from conflux.&lt;br /&gt;
&amp;lt;br&amp;gt;Simply load the CSBgraphics file from Conflux and use the export function.&lt;br /&gt;
&lt;br /&gt;
Now let us add a sound to CSBgraphics.&lt;br /&gt;
&lt;br /&gt;
Start CSBgraphics and choose &amp;quot;I&amp;quot; (for import). Choose sound (*wav) and add the file to the list.&lt;br /&gt;
Also you need to select an ID. In out example it&amp;#039;s &amp;quot;65&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
.../picture/...&lt;br /&gt;
&lt;br /&gt;
Now save your &amp;quot;CSBgraphics.dat&amp;quot; to the folder containing CSBwin.&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s start CSBuilt now and add the sound to the dungeon using a DSA.&lt;br /&gt;
&amp;lt;br&amp;gt;Take a look at the &amp;quot;copy/paste&amp;quot; section of the wiki.&lt;br /&gt;
There you&amp;#039;ll find the custom sound example, that is used in Conflux:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0S0 : G0C1 &amp;amp;= ?J0C3&lt;br /&gt;
0C0 : G0C1 &amp;amp;!= ?J0C2 LA L0 L0 &amp;amp;SOUND&lt;br /&gt;
0T0 : LB &amp;amp;RAND &amp;amp;NOT ?J0S0&lt;br /&gt;
0C1 : L$ &amp;amp;LOC2ABSCOORD &amp;amp;DROP &amp;amp;ROT L0 L4 &amp;amp;PARTY@ L1 &amp;amp;@&lt;br /&gt;
0C2 : N&lt;br /&gt;
0T2 : &amp;amp;NEG&lt;br /&gt;
0C3 : V3@ &amp;amp;NEG &amp;amp;+ &amp;amp;DUP L0 &amp;amp;&amp;lt; ?G0T2 &amp;amp;SWAP V2@ &amp;amp;NEG &amp;amp;+ &amp;amp;DUP L0 &amp;amp;&amp;lt; ?G0T2 &amp;amp;+ J0T3&lt;br /&gt;
0T3 : LA &amp;amp;SWAP L0 &amp;amp;SOUND&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;(Description from Zyx)&lt;br /&gt;
:Sound is only played if the party is on same level as the DSA instance.&lt;br /&gt;
:&lt;br /&gt;
:SET msg: sound is played with a volume inversely proportional to distance. So you should put the DSA instance right where the origin of the sound is supposed to be, or very near.&lt;br /&gt;
:CLOSE msg: sound is played at full volume, no matter the distance.&lt;br /&gt;
:TOGGLE msg: sound is played with a volume inversely proportional to distance, with a random chance. B parameter is the chance not to be played.&lt;br /&gt;
&lt;br /&gt;
We won&amp;#039;t need it in all of it&amp;#039;s complexity. Just a sound that is played at 100% volume when a button/preassure pad is triggered.&lt;br /&gt;
&lt;br /&gt;
So for a sound played at full volume, all you would need is the part of the DSA reacting to a &amp;quot;close&amp;quot; message:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0C0 : G0C1 &amp;amp;!= ?J0C2 LA L0 L0 &amp;amp;SOUND&lt;br /&gt;
0C1 : L$ &amp;amp;LOC2ABSCOORD &amp;amp;DROP &amp;amp;ROT L0 L4 &amp;amp;PARTY@ L1 &amp;amp;@&lt;br /&gt;
0C2 : N&lt;br /&gt;
0C3 : V3@ &amp;amp;NEG &amp;amp;+ &amp;amp;DUP L0 &amp;amp;&amp;lt; ?G0T2 &amp;amp;SWAP V2@ &amp;amp;NEG &amp;amp;+ &amp;amp;DUP L0 &amp;amp;&amp;lt; ?G0T2 &amp;amp;+ J0T3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:CSBuild_custom_sound_pic1.JPG]]&lt;br /&gt;
&lt;br /&gt;
Again, this is still by far more than we need.&lt;br /&gt;
&amp;lt;br&amp;gt;For a set message a sound triggered by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(S0:) LA L0 L0 &amp;amp;SOUND&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
is much simpler.&lt;br /&gt;
&lt;br /&gt;
Note the parameter &amp;quot;A&amp;quot; in the first line.&lt;br /&gt;
&amp;lt;br&amp;gt;The ID of the sound is 65, so you could as well type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
L65 L0 L0 &amp;amp;SOUND&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
yielding the same result.&lt;br /&gt;
&lt;br /&gt;
But for more flexablility it is of course more useful to use the parameter A, so you won&amp;#039;t have to edit the DSA itself if you want to change the ID of the sound to be played.&lt;br /&gt;
&lt;br /&gt;
Now all that needs to be done is adding a preasure plate, a button, or any other trigger (even another DSA?) targeting the DSA that plays the sound.&lt;br /&gt;
&lt;br /&gt;
You are now free to add sounds, speech, quest given verbaly, maybe even a talking sphere that guides the player throughout the dungeon.&lt;br /&gt;
&amp;lt;br&amp;gt;This is the point to look hard for some talented artists. ;-)&lt;br /&gt;
&lt;br /&gt;
Have fun!&lt;br /&gt;
&lt;br /&gt;
[[Category:CSBwin|Adding custom sounds]]&lt;/div&gt;</summary>
		<author><name>Gilles</name></author>
	</entry>
</feed>