- 132
- Posts
- 10
- Years
- New Brunswick
- Seen May 6, 2023
Hi all, I'm trying to add a shortcut that, when typing "\un" in a message box, it plays a certain sound effect and erases the "\un". It should work similar to text like \c[n], which changes text color without you having to call a script. I've been looking through the script sections Messages and DrawText, and tried adding this command (which didn't work):
I added "f" for comparison; when including \f[n], it simply adds a face graphic. Similarly, I want to make it so including \un makes a certain sound play. How can I do this? Thx!
Code:
elsif control=="un" # achievement sound
Audio.se_play("Audio/ME/Unlock",75)
elsif control=="f"
facewindow.dispose if facewindow
facewindow=PictureWindow.new("Graphics/Pictures/#{param}")
Last edited: