Difference between revisions of "PlaySound(Script)"

From CoffeeMud Wiki
Jump to navigation Jump to search
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.

Revision as of 18:55, 1 October 2022

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.