home *** CD-ROM | disk | FTP | other *** search
- # Droids Cog Script
- #
- # t3_objectives.cog
- #
- # Objectives cog
- #
- # Desc:
- #
- # GOAL 0 1 Remove block from door entrance
- # GOAL 0 2 End affector with grabbing ability
- # GOAL 0 3 Elbow Joint
-
- # GOAL 1 1 Remove block from door entrance
- # GOAL 1 2 End affector with grabbing ability
- # GOAL 1 3 Elbow Joint
- # GOAL 1 4 Droid with legs
- # GOAL 1 5 Weigh under 150 kg.
-
- # GOAL 2 1 Remove block from door entrance
- # GOAL 2 2 End affector with grabbing ability
- # GOAL 2 3 Elbow Joint
- # GOAL 2 4 Droid with treads
- # GOAL 2 5 Under 10 minutes
- # GOAL 2 6 50% + battery power
- #
- #
- #
- # 01/22/98 [DGS] Created
- #
- #
- # (C) 1997 LucasLearningLimited. All Rights Reserved
-
-
-
- symbols
- message startup
- message shutdown
- message timer
- message entered
- sector endsector
-
- int undertimelimit local
- int finished local
- int player local
- int halfpower local
-
- end
- ## Code Section
- code
-
- startup:
- // GOAL 0 1 lift heavy block
- // GOAL 0 3 pass through security exit door
- // REQUIREMENT 0 2 grabbing & tugging ability
-
- // GOAL 1 1 lift heavy block
- // GOAL 1 3 pass through security exit door
- // REQUIREMENT 1 2 grabbing & tugging ability
- // REQUIREMENT 1 4 legs
-
- // GOAL 2 5 complete mission: under 3 minutes
- // GOAL 2 1 lift heavy block
- // GOAL 2 3 pass through security exit door
- // REQUIREMENT 2 2 grabbing & tugging ability
- // REQUIREMENT 2 4 treads
- // REQUIREMENT 2 6 fine manipulation
-
-
-
- droidweight = GetThingMass(GetLocalPlayerThing()) / 2.2; // Get the player's weight
- player = getlocalplayerthing();
- finished = 0;// Set this variable to false until the level is finished
-
- if (getdifficulty() == 0)// +++++++++++++++++ EASY
- {
- // GOAL 0 1 lift heavy block
- // GOAL 0 3 pass through security exit door
- // REQUIREMENT 0 2 grabbing & tugging ability
- if (dwCheckDroidCaps(8192)) setInv(player, 2, 1); // if droid has an elbow
- // REQUIREMENT 0 4 fine manipulation
-
- }
- if (getdifficulty() == 1)// +++++++++++++++++ MEDIUM
- {
- // GOAL 1 1 lift heavy block
- // GOAL 1 3 pass through security exit door
- // REQUIREMENT 1 2 grabbing & tugging ability
- if (dwCheckDroidCaps(8192)) setInv(player, 2, 1);// elbow
- // REQUIREMENT 1 4 legs
- if (dwCheckDroidCaps(8)) setInv(player, 4, 1);// legs
- // REQUIREMENT 1 5 fine manipulation
- }
-
- if (getdifficulty() == 2)// +++++++++++++++++++HARD
- {
- // GOAL 2 5 complete mission: under 3 minutes
- underlimit = 1;
- settimer(180);
- // GOAL 2 1 lift heavy block
- // GOAL 2 3 pass through security exit door
- // REQUIREMENT 2 2 grabbing & tugging ability
- if (dwCheckDroidCaps(8192)) setInv(player, 2, 1);// elbow
- // REQUIREMENT 2 4 treads
- if (dwCheckDroidCaps(524288)) setInv(player, 4, 1);// treads
- // REQUIREMENT 2 6 fine manipulation
- }
- return;
- shutdown:
- curpower=GetInv(player, 20);
- if (getdifficulty() == 0) //++++++++++++++++++ EASY
- {
- }
-
- if (getdifficulty() == 1) //++++++++++++++++++ MEDIUM
- {
- }
-
- return;
-
- timer:
- underlimit = 0;
- return;
-
- entered:
- if (getdifficulty() == 2) //++++++++++++++++++ HARD
- {
- if (underlimit == 1) SetInv(player, 5, 1);
- }
- setInv(player, 3, 1); //endit
- finished = 1;
- //sleep(2);
- return;
-
-
- end
-
-
-
-
-