home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_t7_objectives.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
3KB
|
136 lines
# Droids Cog Script
#
# t7_objectives.cog
#
# Objectives cog For Counterweight
#
# Desc:
#
#
# GOAL 0 1 Open Security Door
# GOAL 0 2 Droid must have jumping ability
#
# GOAL 1 1 Open Security Door
# GOAL 1 2 Droid must have jumping ability
# GOAL 1 3 Droid must weigh 300kg or less
#
# GOAL 2 1 Open Security Door
# GOAL 2 2 Droid must have jumping ability
# GOAL 2 3 Droid must weigh 300kg or less
# GOAL 2 4 Droid must have at least 50% 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 legs
//GOAL 1 1 pass through security exit door
//REQUIREMENT 1 2 legs
//REQUIREMENT 1 3 weight: under 50 kg
//GOAL 2 4 complete in under 3 minutes
//GOAL 2 1 pass through security exit door
//REQUIREMENT 2 2 legs
//REQUIREMENT 2 3 weight: between 100 - 150 kg
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 Open Security Door
// GOAL 0 2 Droid must have jumping ability
if (dwCheckDroidCaps(8)) setInv(player, 2, 1);// JUMP
}
if (getdifficulty() == 1)// +++++++++++++++++ MEDIUM
{
// GOAL 1 1 Open Security Door
// GOAL 1 2 Droid must have jumping ability
if (dwCheckDroidCaps(8)) setInv(player, 2, 1);// JUMP
// REQUIREMENT 1 3 weight: under 50 kg
if (droidweight < 51) setInv(player, 3, 1);// JUMP
}
if (getdifficulty() == 2)// +++++++++++++++++++HARD
{
// GOAL 2 1 Open Security Door
// GOAL 2 3 Droid must weigh 300kg or less
//REQUIREMENT 2 2 legs
if (dwCheckDroidCaps(8)) setInv(player, 2, 1);// JUMP
// REQUIREMENT 2 3 weight: between 100 - 150 kg
if ((droidweight > 99) && (droidweight < 151)) setInv(player, 3, 1);// JUMP
//GOAL 2 4 complete in under 3 minutes
undertimelimit = 1;
settimer(300);
}
return;
shutdown:
curpower=GetInv(player, 20);
if (getdifficulty() == 0) //++++++++++++++++++ EASY
{
// GOAL 0 1 Open Security Door (Checked in the sfateydoor script)
// GOAL 0 2 Droid must have jumping ability
}
if (getdifficulty() == 1) //++++++++++++++++++ MEDIUM
{
// GOAL 1 1 Open Security Door
// GOAL 1 2 Droid must have jumping ability
// GOAL 1 3 Droid must weigh 300kg or less
}
if (getdifficulty() == 2) //++++++++++++++++++ HARD
{
// GOAL 2 1 Open Security Door
// GOAL 2 2 Droid must have jumping ability
// GOAL 2 3 Droid must weigh 300kg or less
// GOAL 2 4 Droid must have at least 50% power left
}
return;
timer:
undertimelimit = 0;
return;
entered:
if (undertimelimit == 1)
{
setInv(player, 4, 1);
settimer(0);
}
setInv(player, 1, 1);// JUMP
print("End Level");
return;
end