Re: Hey do you think this is going to work


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by Evan C on October 19, 1998 at 02:52:49:

In Reply to: Hey do you think this is going to work posted by Pugi on October 18, 1998 at 23:53:49:

: Hi guys,

: I finally have goals in my level but I'm not sure
: if my cog is written correctly. It's supposed to
: accomplish a goal when you've killed 3 darkjedi.

: Take a peek. I'd like any help possible.
: Yeah, I know. I never ended up using the linked cogs in my cog.
: These cogs are supposed to be the darkjedi cogs. In the
: darkjedi cogs under Killed: message, I have :

: cog deadjedi linkid=1
: SendMessage(1,killed);

: Here's the cog.
: Pugi

: #-----------------------------------------------
: symbols
: message killed
: thing player local
: sound goalsnd=Accomplish1.wav local
: cog jedi_1 linkid=1
: cog jedi_2 linkid=2
: cog jedi_3 linkid=3
: int deadguys=0 local

: end

: # ========================================================================================

: code
: startup:
: player = GetLocalPlayerThing();
: Return;
: killed:
: deadguys =deadguys+1;
: if (deadguys==3)
: { jkPrintUNIString(player,COG_00350);
: SetGoalFlags(player, 2, 2);
: PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0);
: }
: Return;
:
: # ........................................................................................

: end

Not sure, but I think the:
cog jedi_1 linkid=1
cog jedi_2 linkid=2
cog jedi_3 linkid=3
Should be:
thing jedi_1 linkId=1
thing jedi_2 linkid=2
thing jedi_3 linkId=3

Also, you need the "message startup" at the top as well.
I think there is a problem with the JKprintUniString(). I don't think you need the "COG" in front of the number. Don't know for sure though, just check it.

might be some other stuff too that I missed.

Evan C


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]