Re: Hey do you think this is going to work


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

Posted by fourwood on October 19, 1998 at 15:54:23:

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


symbols
message startup
message killed
thing player local
sound goalsnd=Accomplish1.wav local
thing jedi_1 linkid=1
thing jedi_2 linkid=1
thing jedi_3 linkid=1
int deadguys=0 local

end

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

code
startup:
player = GetLocalPlayerThing();
Return;
killed:
if (GetSenderId != 1) return;
deadguys=deadguys+1;
if (deadguys==3) {
jkPrintUNIString(player, 00350);
SetGoalFlags(player, 2, 2);
PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0);
}
Return;

# ........................................................................................
end


Ok try this. I changed the linkids of the Dark Jedi to 1, seeing how they are all the same type of thing controlling the same type of situation. I'm pretty sure you need the if (getsenderid()) thing because the Dark Jedi aren't the only things referenced in the cog. You wouldn't want to kill to Dark Jedi, then get killed yourself, and complete the objective would you? :) Umm... the COG_ part on the print thing isnt necessary. Just try that, post back if it doesn't work.


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 ]