HoS_PRC8/_mod/_module/nss/uc_t_nextok.nss

12 lines
381 B
Plaintext
Raw Permalink Normal View History

2024-11-25 19:36:07 -05:00
// uc_t_nextok - Unit Creation V2 - is it okay to display the NEXT option?
// By Deva Bryson Winblood. 04/10/2005
int StartingConditional()
{
object oPC=GetPCSpeaker();
string sID=GetLocalString(oPC,"sTeamID");
int nUCBase=GetLocalInt(oPC,"nUCBase");
int nUnitTypes=GetLocalInt(GetModule(),sID+"_UNITS");
if (nUCBase+11<=nUnitTypes) return TRUE;
return FALSE;
}