home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_t9_objectives.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
4KB
|
152 lines
# Droids Cog Script
#
#
# Objectives cog FOR GEARSs
#
# Desc:
#
# GOAL 0 1 Reach top of cliff
# GOAL 0 2 End affector with grabbing ability
#
# GOAL 1 1 Reach top of cliff
# GOAL 1 2 End affector with grabbing ability
# GOAL 1 3 Droid with tractor treads
#
# GOAL 2 1 Reach top of cliff
# GOAL 2 2 End affector with grabbing ability
# GOAL 2 3 Droid with legs
# GOAL 2 4 Under 5 minutes
# GOAL 2 5 50% Battery power left
#
#
#
# 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 pass through security exit door
//REQUIREMENT 0 2 grabbing & tugging ability
//REQUIREMENT 0 3 arm strength: 130 kg or greater
//REQUIREMENT 0 4 Vocabulator
//GOAL 1 1 pass through security exit door
//REQUIREMENT 1 2 grabbing & tugging ability
//REQUIREMENT 1 4 arm strength: 130 kg or greater
//REQUIREMENT 1 3 treads or wheels
//REQUIREMENT 1 5 Vocabulator
//GOAL 2 4 complete in under 3 minutes
//GOAL 2 1 pass through scurity exit door
//REQUIREMENT 2 5 adapter manipulator
//REQUIREMENT 2 2 grabbing & tugging ability
//REQUIREMENT 2 6 arm strength: 130 kg or greater
//REQUIREMENT 2 3 legs
//REQUIREMENT 2 7 Vocabulator
player = getlocalplayerthing();
finished = 0;// Set this variable to false until the level is finished
if (getdifficulty() == 0)// +++++++++++++++++ EASY
{
//REQUIREMENT 0 2 grabbing & tugging ability
if (dwCheckDroidCaps(2048)) SetInv(player, 2, 1);// if droid has grab set the flag to true
//REQUIREMENT 0 3 arm strength: 130 kg or greater
if (dwGetArmStrength() > 8) SetInv(player, 3, 1);//
//REQUIREMENT 0 4 Vocabulator
if (dwCheckDroidCaps(1048576)) SetInv(player, 4, 1);// if droid can talk
}
if (getdifficulty() == 1)// +++++++++++++++++ MEDIUM
{
//REQUIREMENT 1 2 grabbing & tugging ability
if (dwCheckDroidCaps(2048)) SetInv(player, 2, 1);// if droid has grab set the flag to true
//REQUIREMENT 1 3 treads or wheels
if (dwCheckDroidCaps(524288)) SetInv(player, 3, 1);// if droid has treads set the flag to true
//REQUIREMENT 1 4 arm strength: 130 kg or greater
if (dwGetArmStrength() > 8) SetInv(player, 4, 1);//
//REQUIREMENT 1 5 Vocabulator
if (dwCheckDroidCaps(1048576)) SetInv(player, 5, 1);// if droid can talk
}
if (getdifficulty() == 2)// +++++++++++++++++++HARD
{
//REQUIREMENT 2 5 adapter manipulator
//if (dwCheckDroidCaps(16384)) SetInv(player, 5, 1);
if (dwCheckDroidCaps(65536)) SetInv(player, 5, 1);
//REQUIREMENT 2 2 grabbing & tugging ability
if (dwCheckDroidCaps(2048)) SetInv(player, 2, 1);// if droid has grab set the flag to true
//REQUIREMENT 2 6 arm strength: 130 kg or greater
if (dwGetArmStrength() > 8) SetInv(player, 6, 1);//
//REQUIREMENT 2 3 legs
if (dwCheckDroidCaps(8)) SetInv(player, 3, 1);// if droid has legs set the flag to true
//REQUIREMENT 2 7 Vocabulator
if (dwCheckDroidCaps(1048576)) SetInv(player, 7, 1);// if droid can talk
//GOAL 2 4 complete in under 3 minutes
SetTimer(6*60); //set the 3 minute timer on Hard
undertimelimit = 1;// Set this to true until time runs out
}
return;
shutdown:
if (getdifficulty() == 0) //++++++++++++++++++ EASY
{
// GOAL 0 1 Reach top of cliff
if (finished == 1) SetInv(player, 1, 1);
}
if (getdifficulty() == 1) //++++++++++++++++++ MEDIUM
{
// GOAL 1 1 Reach top of cliff
if (finished == 1) SetInv(player, 1, 1);
}
if (getdifficulty() == 2) //++++++++++++++++++ HARD
{
// GOAL 2 1 Reach top of cliff
if (finished == 1) SetInv(player, 1, 1);
// GOAL 2 4 Under 5 minutes
}
return;
timer:
undertimelimit = 0;
return;
entered:
if (getdifficulty() == 2) //++++++++++++++++++ HARD
{
if (undertimelimit == 1) SetInv(player, 4, 1);
}
finished = 1;
return;
end