Code:
# Jedi Knight Cog Script # # filename.cog # # Description # # # This Cog is Not supported by LucasArts Entertainment Co symbols message startup thing cookedhaggis thing playeractor thing playerlook thing lieutenant thing console5 thing cam1 thing cam2 surface consoleface key suxbad=kyusew0.key local material switch=planetboard.mat local material kahn=kahnscreen.mat local material barkeep=barkeep.mat local sound beep=beep1.wav local sound beep2=beep2.wav local end # ======================================================================================== code startup: Player = GetLocalPlayerThing(); SetActorFlags(player, 0xa00000); StopThing(player); SetCameraFocus(0, cam1); Sleep(2.0); MoveToFrame(cam1, 1, 5); Sleep(2.0); Print("COOKEDHAGGIS: Thank you for coming on such short notice."); Sleep(2.0); Print("COOKEDHAGGIS: We've analyzed the data you brought back from Planet 9..."); Sleep(5.0); Print("COOKEDHAGGIS: ...and have discovered that there is a secret Imperial facility on Dangoon IV."); Sleep(2.0); AiSetLookPos(cookedhaggis, GetThingPos(lieutenant)); Sleep(2.0); SetCameraFocus(0, cam2); Print("COOKEDHAGGIS: Lieutenant?"); Sleep(1.0); AiSetLookPos(lieutenant, GetThingPos(console5)); Sleep(1.0); PlaySoundLocal(beep, 1, 0.0, 0x0); Sleep(0.5); AiSetLookPos(playeractor, GetThingPos(playerlook)); MoveToFrame(cam2, 1, 3); Sleep(4.0); PlaySoundLocal(beep2, 1, 0.0, 0x0); SetSurfaceMat(consoleface, switch); Sleep(2.0); Print("COOKEDHAGGIS: The only major city is Ans."); Sleep(4.0); PlaySoundLocal(beep2, 1, 0.0, 0x0); SetSurfaceMat(consoleface, kahn); Print("COOKEDHAGGIS: We have reason to believe access is at a 'Kahn's Books.'"); Sleep(5.0); PlaySoundLocal(beep2, 1, 0.0, 0x0); SetSurfaceMat(consoleface, barkeep); Print("COOKEDHAGGIS: Meet our contact at the local bar; he'll give you the password to get in."); Sleep(5.0); Print("COOKEDHAGGIS: Good luck, and the may the Force be with you."); Sleep(3.0); jkEndLevel(); return; # ........................................................................................ end
It does everything fine, except that after the "may the Force be with you" line, it goes back to the JK main menu, as though I've told it to be the end of the episode.
I've re-written the episode.jk file. I've set jkEndLevel to 1 and 0. Why is it closing the episode?!
------------------
"Do you have any idea how long it takes to dig graves for twenty-three oak trees?"
-- Davram Bashere, The Fires Of Heaven
"She shall make you a real boy, and I shall make her a real woman."
-- Joe, A.I.
NMGOH
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken