posted December 02, 2002 05:02 AM
--------------------------------------------------------------------------------
whats wrong here?
[edit- Please, Im begging you, use Code tags.]
[This message has been edited by GBK (edited December 02, 2002).]
--------------------------------------------------------------------------------
Code:
# Jedi Knight Cog Script # # endlevel.COG # # # [EH_AceCSF] 02/12/2002 # # This COG is NOT supported by LucasArts Entertainment Company symbols message user0 message entered message startup message crossed int numgoalscomplete=0 local int numtotalgoals int goal1comp=0 local int goal2comp=0 local int goal3comp=0 local int player local int exited=0 local sector trigger surface exitfort end # ================================================================================ code startup: player = jkGetLocalPlayer(); Return; # ................................................................................ crossed: if(GetSenderRef() == exitfort) { exited = 1; Return; } else { Return; } # ................................................................................ entered: if(GetSenderRef() != trigger) Return; if ((numgoalscomplete == numtotalgoals) && (exited == 1)) { JKendlevel(0) Return; } else { if (exited == 0) Return; print("Objective Incomplete:"); if (goal1comp == 0) { print("Disable Corvete hangar system."); } if (goal2comp == 0) { print("Retract the Planetary Shield into the maintenance shelter."); } if (goal3comp == 0) { print("Shut down the power in main Guns."); } Return; } # ................................................................................ user0: if(GetParam(0) == 1) { numgoalscomplete = (numgoalscomplete + 1); goal1comp = 1; Return; } if(GetParam(0) == 2) { numgoalscomplete = (numgoalscomplete + 1); goal2comp = 1; Return; } if(GetParam(0) == 3) { numgoalscomplete = (numgoalscomplete + 1); goal3comp = 1; Return; } end
whats wrong here?
[edit- Please, Im begging you, use Code tags.]
[This message has been edited by GBK (edited December 02, 2002).]