The Dink Network

Reply to Re: Nevermind

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
November 6th 2002, 10:16 PM
wizardg.gif
Paul
Peasant He/Him United States
 
: : Got'cha.  That worked.  Thanks a ton!  Do you happen to know how to add a sound in a script?  I want a chime to play (sound 43) after Dink gets his sword.  I have this code:

: : add_item("item-sw1", 438, 7);

: : int playsound (43, 0, 0, 0, 0);

: : say_stop("Woo Hoo!  Time to start my day . . .", 1);

: : in the script.  Everything works except the sound.  Dink has a conversation and gets a sword.  The sword gets into his inventory and everything, but no sound play.  The engine ignores that line.  The scripting after that line with the sound runs just fine.  The engine just skips over the sound line.  What did I do wrong?  TIA!

: Nevermind.  After I posted the question, I realized I was calling a procedure, not declaring a variable.  I took the 'int' out of the line.  Duh.  Thanks anyway!  You've been a big help today and I appreciate it!

You know, that's interesting. I wouldn't have thought it would work with 0 for the speed (the second number) I guess it knows to use the default.