home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Games.EXE 1999 January
/
pcgamesexe-1999-01.iso
/
Warzone
/
data1.cab
/
Program_Executable_Files
/
script
/
fastplay
/
start.slo
< prev
next >
Wrap
Text File
|
1998-10-27
|
655b
|
25 lines
//Start.slo
//used to setup all the starting tech and power for player starting game
public int player, startPow;
public int numTechs;
public RESEARCHSTAT startTech[4];
public WEAPON mg; //req'd for start level
private int count, count2;
/* Initialisation */
event start(CALL_GAMEINIT)
{
//make MG available to player!
//makeComponentAvailable(mg, player); //needs to be done this way so doesn't enable rest of tree!
//set technology for player
count2 = 0;
while (count2 < numTechs)
{
completeResearch(startTech[count2], player);
count2 = count2 + 1;
}
//set power level
setPowerLevel(startPow, player);
}