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 → What's wrong with this?
What's wrong with this?
2003-02-12, 2:12 PM #1
Here's the code:
Code:
# Jedi Knight Cog Script
#
# FILENAME.COG
#
# 
# 
#
# 
#
#

symbols
message		activate
thing		girl
end

# ========================================================================================

code
activated:

if (done ==0)
	{
	check = GetSenderRef();
	if (check == girl)
		{
		Print("Kirk Katarn: I'm entering in the Jedi Tournament");
		Sleep(2.0);
		Print("Megan: cool, I'll   tell the rest of the group");
		Sleep(1.0);
		Print("Megan: We'll be watching you!");
		Sleep(2.0);

		}
	}

	return;

end


Yes, I named Kyle's son Kirk Katarn (and Megan is his girlfriend) [http://forums.massassi.net/html/smile.gif] Actually, his real name is Kirk Tiberis James Katarn [http://forums.massassi.net/html/biggrin.gif]

[This message has been edited by Jedi Outcast (edited February 12, 2003).]

[This message has been edited by GBK (edited February 12, 2003).]
2003-02-12, 2:41 PM #2
Several things:
1) you need to add " int done=0 " to the symbols section. [http://forums.massassi.net/html/smile.gif]
2) Since you only have one thing defined (and no surfaces etc.) you don't need the second if statement to check if that thing sent the activated message.
3) If you keep that, then you should also add " int check " to the symbols section.
4) You don't need the # ===== line to be so long.

------------------
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton

[This message has been edited by Sylvicolus (edited February 12, 2003).]

[This message has been edited by Sylvicolus (edited February 12, 2003).]
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton
2003-02-12, 2:49 PM #3
Code:
# Jedi Knight Cog Script
#
# FILENAME.COG
#
# 
# 
#
# 
#
#
symbols
message activated 
thing girl
Int done
end

code
activated:

if (done ==0)
{
Print("Kirk Katarn: I'm entering in the Jedi Tournament");
Sleep(2.0);
Print("Megan: cool, I'll tell the rest of the group");
Sleep(1.0);
Print("Megan: We'll be watching you!");
Sleep(2.0);

}


return;

end


[Code tags please, thanks. [img]http://forums.massassi.net/html/wink.gif[/img]]


[This message has been edited by GBK (edited February 12, 2003).]
Ive moved over to JK2
2003-02-12, 2:51 PM #4
I got rid of the whole check thing And the lines. And changed activate to activated. And added int done.
Ive moved over to JK2
2003-02-12, 4:39 PM #5
Thanks guys. Do you get the Kirk Tiberis James Katarn?

It's Captin Kirk from the Enterprise James Tiberis Kirk [http://forums.massassi.net/html/smile.gif]

↑ Up to the top!