# 14-Nov-2000 10:27 CST #Level master COG symbols message startup message shutdown message timer message user0 message user1 message user2 message user3 int player local sound goalsnd=Accomplish1.wav local end code startup: SetMasterCOG(GetSelfCOG()); // Setup COG as master COG player = GetLocalPlayerThing(); SetInv(player, 99, 1000); // Setup Goals first string SetGoalFlags(player, 0, 1); // Setup the first goal as DISPLAYED SetGoalFlags(player, 1, 1); // Set goal as DISPLAYED SetGoalFlags(player, 2, 1); // Set goal as DISPLAYED SetGoalFlags(player, 3, 1); // Set goal as DISPLAYED SetInv(player, 1, 1.0); // Fists SetInv(player, 2, 1.0); // Bryar Pistol // SetInv(player, 3, 1.0); // Stormtrooper Rifle // SetInv(player, 4, 30.0); // Thermal Detonator // SetInv(player, 5, 1.0); // Boweaster // SetInv(player, 6, 1.0); // Imperial Repeater Rifle // SetInv(player, 7, 1.0); // Rail Detonator // SetInv(player, 8, 10.0); // Sequencer Charge // SetInv(player, 9, 1.0); // Concussion Rifle SetInv(player, 10, 1.0); // Lightsaber // SetInv(player, 12, 100); // Power // SetInv(player, 15, 10); // Railcharges SetInv(player, 11, 300); // Energy for Weapons SetInv(player, 60, 200); // Shields SetFireWait(player, -1); // Initialize weapon SetMountWait(player, 0); SetCurInvWeapon(player, 0); SelectWeapon(player, AutoSelectWeapon(player, 1)); SetTimer(15); // Set refresh timer for powers timer: SetInv(player, 20, 4); // Force ranking SetInv(player, 14, 200); // Force manna SetInv(player, 16, 4); // Force Stars SetInv(player, 21, 2); // Force Jump SetInvAvailable(player, 21, 1); SetInv(player, 22, 2); // Force Speed SetInvAvailable(player, 22, 1); jkSyncForcePowers(); Return; user0: PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0); jkPrintUNIString(player, 350); SetGoalFlags(player,0, 2); Return; user1: PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0); jkPrintUNIString(player, 350); SetGoalFlags(player,1, 2); Return; user2: PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0); jkPrintUNIString(player, 350); SetGoalFlags(player,2, 2); Return; user3: PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0); jkPrintUNIString(player, 350); SetGoalFlags(player,3, 2); jkEndLevel(0); # assuming this is the end of the level Return; shutdown: // Give a force star if the player finds all the secrets if((GetInv(player, 71) != 0) && (GetInv(player, 70) == GetInv(player, 71))) ChangeInv(player, 16, 1); Return; end