Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → printing messages!
printing messages!
2002-01-28, 4:34 AM #1
how do you make it so the message only comes up once and a sound comes up with the message.

------------------
§ídíoú§
Shining Saber Productions

Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic.

The force is like Duct Tape - it has a dark side, it has a light side, and it binds the universe together!

If Bill Gates had a dime for every time a Windows box crashed...oh, wait a minute - he already does.

If a turtle doesn't have a shell, is he homeless or naked?
2002-01-28, 4:56 AM #2
Code:
# 01/2002 GBK
Symbols
Message ANY
Sound SOund0
Int L=0   Local
End
Code
ANY_MESSAGE:
If(L != 0) Stop;
JKstringclear();
JKstringconcatasciistring("YOUR TEXT HERE.");
JKstringoutput(-3, -1);
L = 1;
Playsoundglobal(Sound0, 1.0, 0, 0);
Stop;
End


------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2002-01-28, 10:05 AM #3
No, no. jkStringOutput() plays a sound when it outputs to other computers. So use PlaySoundLocal() and play set_vlo2.wav. If you want to use some other sound, you'll have to replace set_vlo2.

------------------
Each cog better than the next

[This message has been edited by SaberMaster (edited January 28, 2002).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-01-28, 1:59 PM #4
Quote:
<font face="Verdana, Arial" size="2">sound comes out when jkstringoutput on other comp</font>



You mean the little "click" noise?

playsoundlocal will only play the sound on the computer that caused the action, unless this is a local cog sent from a trigger.

------------------
http://millennium.massassi.net - Millennium
Sniper Arena! - Enhancement Pack!
2002-01-29, 9:37 AM #5
Yeah, that's what I mean.

Quote:
<font face="Verdana, Arial" size="2">playsoundlocal will only play the sound on the computer that caused the action</font>


That's the idea. jkStringOutput() will play the sound on everybody else's computer, while PlaySoundLocal() plays the sound on the local computer.

------

I'm assuming that Sidious wants this message printed on all computers along with the sound.

[This message has been edited by SaberMaster (edited January 29, 2002).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-01-29, 10:06 AM #6
I didnt use Playsoundlocal(), I used Playsoundglobal().

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!