34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
//uc_t_root - The root conversation node for the version 2 unit creation
|
|
// By Deva Bryson Winblood. 04/10/2005
|
|
#include "rtsh_multiplay"
|
|
|
|
int StartingConditional()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
string sID=GetLocalString(oPC,"sTeamID");
|
|
string sTeamName="";
|
|
int nMana=fnGetTeamMana(oPC);
|
|
int nGold=GetGold(oPC);
|
|
int nSouls=fnGetTeamSouls(oPC);
|
|
int nBase=GetLocalInt(oPC,"nUCBase");
|
|
int nMax=GetLocalInt(GetModule(),sID+"_UNITS");
|
|
int nTop=nBase+10;
|
|
string sBottom=IntToString(nBase+1);
|
|
string sTop;
|
|
string sMax=IntToString(nMax);
|
|
SetLocalInt(GetPCSpeaker(),"bGoldExploitPreventionOn",TRUE);
|
|
if (nTop>nMax) nTop=nMax;
|
|
DeleteLocalInt(oPC,"nUCRun");
|
|
sTop=IntToString(nTop);
|
|
if (sID=="SPID") sTeamName="Spider Cultists";
|
|
else if (sID=="UNC") sTeamName="Unclean";
|
|
else if (sID=="UND") sTeamName="Undead";
|
|
else if (sID=="DWF") sTeamName="Dwarven";
|
|
SetCustomToken(1000,sTeamName);
|
|
SetCustomToken(9997,IntToString(nMana));
|
|
SetCustomToken(9998,IntToString(nGold));
|
|
SetCustomToken(9999,IntToString(nSouls));
|
|
SetCustomToken(1021,sBottom+"-"+sTop+" out of "+sMax);
|
|
return TRUE;
|
|
}
|