home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_t2_objectives.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
2KB
|
94 lines
# Droids Cog Script
#
# D0_skyway.cog
#
# Skyways cog
#
#
#
#
#
# [MT]
#
#
# (C) 1997 LucasLearningLimited. All Rights Reserved
symbols
message startup
message shutdown
message timer
message pulse
message entered
message user0 //helped out droid
sector crossedtramssector linkid=1
sector finishsector
sound goalsound=00tAccomplish.wav local
end
## Code Section
code
startup:
player=getlocalplayerthing();
undertimelimit=1;
helpedoutdroid=0;
if ((getdifficulty()==0)||(getdifficulty()==1)||(getdifficulty()==2)) {
if (dwCheckDroidCaps(8)==0) SetInv(player, 2, 1); //2:tractor tread
else SetInv(player, 2, 0);
if (dwCheckDroidCaps(16)!=0) SetInv(player, 3, 1);
else SetInv(player, 3, 0);
}
if (getdifficulty()==1) {
if (dwCheckDroidCaps(2048)!=0) SetInv(player, 1, 1);
}
if ( (getdifficulty()==1)||(getdifficulty()==2) ) {
if (dwCheckDroidCaps(1048576)!=0) SetInv(player, 5, 1); //2:tractor tread
else SetInv(player, 5, 0);
}
if (getdifficulty()==2) {
if (dwCheckDroidCaps(65536)!=0) SetInv(player, 7, 1);
else SetInv(player, 7, 0);
SetTimer(210);
}
return;
shutdown:
if ((getdifficulty()==0)||(getdifficulty()==1)||(getdifficulty()==2)) {
if (getthingsector(player)==finishsector) {
SetInv(player, 6, 1); //1:finished the level
}
else SetInv(player,6,0);
}
return;
timer:
print("you blew it");
SetInv(player, 6, 0);
return;
user0:
if ((getdifficulty()==1)||(getdifficulty()==2)) {
setinv(player, 4, 1);
playsoundlocal(goalsound, 1.0, 0.0, 0);
}
helpedoutdroid=1;
playsoundlocal(goalsound, 1.0, 0.0, 0);
sleep(3);
dwplaycammyspeech(16009, "t2ca010.wav", 15, 2);
return;
end