home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_b0_maze_rand.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
2KB
|
103 lines
# DroidWorks
# b0_maze_rand.cog
#
# Randomizer cog for the dark maze.
#
#
#
# Script handles random enviroment object for the maze.
# taken from env_pulley
#
#
# [01/16/98] DGS Created
# [01/26/98] DGS Added code to make it random
# [01/30/98] DGS Took from env_gear.cog and added extra things
# [02/04/98] DGS Took from b0_enf_pulley.
symbols
sector Shuffle_s
thing thing1a
thing thing1b
thing thing1c
thing thing1d
thing thing1e
thing thing1f
thing thing1g
thing thing1h
thing thing2a
thing thing2b
thing thing2c
thing thing2d
thing thing2e
thing thing2f
thing thing2g
thing thing2h
message startup
message pulse
message entered
int amount=0
flex set=0.0
int inv_number=0
int act_thinga local
int act_thingb local
int enter=0 local
end
# ========================================================================================
code
startup:
setpulse(0.2);
return;
pulse:
set = (rand()*amount);
//printflex(set);
return;
entered:
if (enter == 0)
{
enter = 1;
setpulse(0);
call destroy;
}
return;
destroy:
if (set < 1)
{
print("Rand: 1");
// Keep thing 1
destroything(thing2a);
destroything(thing2b);
destroything(thing2c);
destroything(thing2d);
destroything(thing2e);
destroything(thing2f);
destroything(thing2g);
destroything(thing2h);
}
else if ( set < 2)
{
print("Rand: 2");
// keep thing 2
destroything(thing1a);
destroything(thing1b);
destroything(thing1c);
destroything(thing1d);
destroything(thing1e);
destroything(thing1f);
destroything(thing1g);
destroything(thing1h);
}
return;
end