Difference between revisions of "PlaySound(Script)"

From CoffeeMud Wiki
Jump to navigation Jump to search
(Created page with "{{CoffeeMUDWikiBuilderTOC}} = Play Sound = If you want your mob to play a specific sound when interacted with: == Adding Mana to a Mob == <pre> greet_prog speak say hello...")
 
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
If you want your mob to play a specific sound when interacted with:
 
If you want your mob to play a specific sound when interacted with:
  
== Adding Mana to a Mob ==
+
== Sound Greeting ==
 
<pre>
 
<pre>
 
greet_prog speak say hello
 
greet_prog speak say hello
Line 14: Line 14:
  
 
=Notes=
 
=Notes=
.
+
*Using this script for voice-overs may make it difficult for users with screen-readers to understand what is being said if you duplicate the scripted voice-over with the displayed SAY. Without duplicating the SAY, users who have sound disabled won't be able to hear the scripted voice-over.
 +
 
 +
[[Category:Zac(Scripter)]]

Latest revision as of 13:40, 17 September 2024

CoffeeMUD
Administrator                                                  Builder                                                              Player
=CoffeeMUD Builder Information=
Basics Praetor     Player Support     Commands     Zapper Masks Advanced Races     Classes     Abilities     Socials     Scripting    
Building Behaviors     Properties     Areas     Rooms     Exits     Items     Mobs Systems Achievements     Crafting     Help Info     Ships     Planes of Existence     Quests     Triumphs    

Play Sound

If you want your mob to play a specific sound when interacted with:

Sound Greeting

greet_prog speak say hello

   MPECHO !!SOUND(greet.wav V=50 P=25 U=http://yourmudsname.mud:27744/sounds/ )

~

Notes

  • Using this script for voice-overs may make it difficult for users with screen-readers to understand what is being said if you duplicate the scripted voice-over with the displayed SAY. Without duplicating the SAY, users who have sound disabled won't be able to hear the scripted voice-over.