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 → Does this look ok?
Does this look ok?
2001-06-21, 8:35 AM #1
Quote:
<font face="Verdana, Arial" size="2">
# Jedi Knight Cog Script
#
# TEXT_AND_VOICE.COG
#
# [LH]
# When Kyle crosses and adjoin, text is printed at the top of the screen, and a sound is played.
#
# (C) 1998 Lee Howett
#
# This Cog was created by Lee Howett, who is in no way affiliated with LucasArts, and LucasArts does not support
# this Cog.
# How to use this Cog:
# 1. Put this cog in your project directory and load it into the Used Cogs window in Jed
# 2. Edit the text that is displayed in the Code section as needed, and edit the sound that is played in the
# symbols section as needed.
# 3. Fill in the blanks in the Used Cogs window in Jed
# 4. Right now when Kyle walks through the adjoin, he will say "Why can't I get a break?", and it
# will also be displayed at the top of the screen.

symbols

message crossed

sound voice=kk60008.wav

surface adjoin01=-1

thing player

flex vol=2.0
flex mindist=2.0
flex maxdist=2.0

end
# ========================================================================================

code

crossed:

PlaySoundThing(voice, player, vol, mindist, maxdist, 0x80);

Print(Commander:"Scouts 1 and 2, find the rebels and report in.");
Print(Scout 1:"Copy that. Ok TK21, let's go.");

return;

# ........................................................................................

end
</font>


Ok I downloaded this cog from massassi, and it wont work properly... The surface adjoin01=-1 is that a surface that you walk through or onto? Can someone help please? Thanks

------------------
"Everyone Dies..."
-Fett
"Everyone Dies..."
-Fett

My Website
Brad's Highschool Level
Unfinished Levels For Download
2001-06-21, 8:46 AM #2
okay add that cog to your level then make sure u stay in the f7 thing and the there should be a little box to your right with text next to it saying adjoin01 the next to it where u can type there should be -1. click on the surface u want to have play the sound. then hit f7 again and goto the box with the -1 and click get selected item. that will do it
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-06-21, 8:54 AM #3
Print(Commander:"Scouts 1 and 2, find the rebels and report in.");
Print(Scout 1:"Copy that. Ok TK21, let's go.");
Should be:
Print("Commander:Scouts 1 and 2, find the rebels and report in.");
Print("Scout 1:Copy that. Ok TK21, let's go.");
2001-06-21, 9:27 AM #4
Correction! I had it right the first time.
Commander:Scouts... is right, it is saying that the commader said it! [http://forums.massassi.net/html/smile.gif]



------------------
"Everyone Dies..."
-Fett
"Everyone Dies..."
-Fett

My Website
Brad's Highschool Level
Unfinished Levels For Download
2001-06-21, 12:40 PM #5
Correction! You had it wrong the first time.
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Aglar:
Print(Commander:"Scouts 1 and 2, find the rebels and report in.");
Print(Scout 1:"Copy that. Ok TK21, let's go.");
Should be:
Print("Commander:Scouts 1 and 2, find the rebels and report in.");
Print("Scout 1:Copy that. Ok TK21, let's go.");
</font>

notice how I repositioned the quotes? All the text to be printed has to be in quotes, which includes Scout1: and Commander:.

[This message has been edited by Aglar (edited June 21, 2001).]
2001-06-21, 12:53 PM #6
i thought he got the cog right from massassi and was trying to set it up. i thought he could get that part right so i didn't even inspect the cog stupid me
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-06-21, 1:46 PM #7
Don't blame yourself, often times I read what the person is asking and don't both checking the cog itself either.
2001-06-21, 1:54 PM #8
some people did that to me a long tim ago when i asked questions like this
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-06-21, 2:38 PM #9
Most other coggers do it to, I guess we assume the creator of the cog knew what he was doing, so we check only the indicated parts.

[This message has been edited by Aglar (edited June 21, 2001).]
2001-06-22, 7:32 AM #10
Ok i got it so it prints the text, but it doesnt play the sound. I created a WAV. file called Imp2.wav and put that in the field that says sound voice=kk60008.wav and it doesnt play it... what do i do? iii guess ill keep playin with it until someone answers.

------------------
"Everyone Dies..."
-Fett
"Everyone Dies..."
-Fett

My Website
Brad's Highschool Level
Unfinished Levels For Download

↑ Up to the top!