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 → .wav cog
.wav cog
2003-10-21, 4:27 PM #1
Cog Idea:

Playing a .wav repeatedly in certain sectors until a thing is activated. When activated, then that .wav would stop playing, and aother .wav would play in those certain sectors.

Can this be done?

------------------
Pumpkins are the only living organisms with triangle eyes.
2003-10-21, 4:27 PM #2
*another*

------------------
Pumpkins are the only living organisms with triangle eyes.
2003-10-21, 10:06 PM #3
*/me coughs louder...*

http://forums.massassi.net/html/Forum4/HTML/003874.html

The cog I've supplied there works very much the same way as what you want.

At the moment, the only difference is the sound is muted, but you can easily add another sound wave and make it so that instead of muting the sound, it switches to the other sound instead [http://forums.massassi.net/html/biggrin.gif]

As always, if you have any trouble, post back here and we'll sort things out for you - alas I'm only just starting work for the day (not to mention that my cog scripts are all on my laptop at home), so I can't write the cog out fully for you right now... [http://forums.massassi.net/html/redface.gif]

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-10-22, 3:52 AM #4
Ah, thanks bro. I'll have to modify it slightly so it activates when a thing is activated. Other than that, you've been a lot of help. [http://forums.massassi.net/html/smile.gif]

------------------
Pumpkins are the only living organisms with triangle eyes.
Pumpkins are the only living organisms with triangle eyes.
2003-10-22, 9:57 PM #5
Hey no probs - that's what this community is for, to help out [http://forums.massassi.net/html/biggrin.gif]

If memory serves me correct about that cog script, all you'll have to do for a "thing" activation, is simply add a thing (say a console, for example) and give it "linkid=1". Then all activated messages will be received with the "GetSenderId() == 1" parameter check in the "activated" message... [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/redface.gif] Sounds simple (and it truly is [http://forums.massassi.net/html/wink.gif] )

Glad to have helped [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||

↑ Up to the top!