13 lines
353 B
Plaintext
13 lines
353 B
Plaintext
// uc_t_sunum - Unit Creation V2 - set Unit Number
|
|
int StartingConditional()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
int nBase=GetLocalInt(oPC,"nUCBase");
|
|
int nParm=GetLocalInt(oPC,"nParm");
|
|
int nNum=nBase+nParm;
|
|
SetLocalInt(oPC,"nUCNumber",nNum);
|
|
DeleteLocalInt(oPC,"nUCBase");
|
|
DeleteLocalInt(oPC,"nUCRun");
|
|
return TRUE;
|
|
}
|