// uc_t_ok4 - Unit Creation V2 - Okay to build at least one of these // By Deva Bryson Winblood. 04/10/2005 #include "uc_h" int StartingConditional() { object oPC=GetPCSpeaker(); int nBase=GetLocalInt(oPC,"nUCBase"); string sID=GetLocalString(oPC,"sTeamID"); int nMax=GetLocalInt(GetModule(),sID+"_UNITS"); int nUnit=4; int nNumber=nBase+nUnit; string sDescription; if (nNumber+1>nMax) return FALSE; sDescription=GetUnitDescription(sID,nNumber); SetCustomToken(1001+nUnit,sDescription); if (HasSufficientResources(oPC,nNumber,1)) return TRUE; return FALSE; }