home *** CD-ROM | disk | FTP | other *** search
- # Droids Cog Script
- #
- # t8_objectives.cog DARK MAZE
- #
- # Objectives cog For Counterweight
- #
- # Desc:
- #
- #
- #
- #
- #
- # 01/22/98 [DGS] Created
- #
- #
- # (C) 1997 LucasLearningLimited. All Rights Reserved
-
-
-
- symbols
- message startup
- message shutdown
- message timer
- message entered
- message crossed
- sector endsector
- surface maze_end
- int undertimelimit local
- int finished local
- int player local
- int halfpower local
-
- end
- ## Code Section
- code
-
- startup:
- //GOAL 0 1 pass through security exit door
- //REQUIREMENT 0 3 ability to see in the dark
- //REQUIREMENT 0 2 tall biped
- //req 0 4 100 kg or less
-
-
- //GOAL 1 1 pass through security exit door
- //REQUIREMENT 1 3 flood light
- //REQUIREMENT 1 2 tall biped
- // req 1 4 100kg or less
-
-
- //REQ 2 4 100 kg or less
- //GOAL 2 6 lead stranded droid out of maze
- //GOAL 2 1 pass through security exit door
- //REQUIREMENT 2 3 light enhancement sensor
- //REQUIREMENT 2 5 ability to commuicate
- //REQUIREMENT 2 2 tall biped
-
-
-
-
-
- droidweight = GetThingMass(GetLocalPlayerThing()) / 2.2; // Get the player's weight
- player = getlocalplayerthing();
- finished = 0;// Set this variable to false until the level is finished
- finish_maze = 1;// Set this to 1 when the player exits the dark maze
- undertimelimit = 1;
- if (getdifficulty() == 0)// +++++++++++++++++ EASY
- {
- //REQUIREMENT 0 3 ability to see in the dark
- if (dwCheckDroidCaps(262176)) setInv(player, 3, 1);// night vision, flood lite
- //REQUIREMENT 0 2 legs
- if (dwCheckDroidCaps(8)) setInv(player, 2, 1);// legs
- // REQUIREMENT 0 4 droid weight: 125kg or lighter
-
- if (droidweight < 101) setInv(player, 4, 1);// JUMP
-
-
- }
- if (getdifficulty() == 1)// +++++++++++++++++ MEDIUM
- {
- //REQUIREMENT 1 3 flood light
- if (dwCheckDroidCaps(262144)) setInv(player, 3, 1);// Floodlite
- //REQUIREMENT 1 2 legs
- if (dwCheckDroidCaps(8)) setInv(player, 2, 1);// legs
- // REQUIREMENT 1 4 droid weight: 125kg or lighter
- if (droidweight < 101) setInv(player, 4, 1);// JUMP
- }
- if (getdifficulty() == 2)// +++++++++++++++++++HARD
- {
- //REQUIREMENT 2 3 light enhancement sensor
- if (dwCheckDroidCaps(32)) setInv(player, 3, 1);// NV
- // REQUIREMENT 2 4 droid weight: 125kg or lighter
- if (droidweight < 101) setInv(player, 4, 1);// JUMP
- //REQUIREMENT 2 5 ability to commuicate
- if (dwCheckDroidCaps(1048576)) setInv(player, 5, 1);// NV
- //REQUIREMENT 2 2 legs
- if (dwCheckDroidCaps(8)) setInv(player, 2, 1);// legs
- //settimer(300);
- }
- return;
- shutdown:
- return;
-
- timer:
- undertimelimit = 0;
- return;
-
- crossed:
- return;
-
- entered:
- setInv(player, 1, 1);// finished maze
-
- if (getdifficulty() == 2)// +++++++++++++++++++HARD
- {
- //if (undertimelimit == 1) setInv(player, 4, 1);// finished maze
- }
- setInv(player, 1, 1);// finished maze
- print("End Level");
- printint(finish_maze);
- finished = 1;
- return;
- end
-
-
-
-
-