RATDOG/_module/nss/re_commoner0.nss
Jaysyn904 ae152d0814 Added BESIE, MS Moneclature
Added BESIE, Markshire's Nomeclature & started initial setup for commoners in Baleas.
2021-09-01 23:42:36 -04:00

99 lines
3.3 KiB
Plaintext

////////////////////////////////////////////////////
/*
Custom Random Commoner Table for use with the BESIE
Random Encounter Package by Ray Miller
*/
////////////////////////////////////////////////////
void main()
{
int iVarNum = GetLocalInt(OBJECT_SELF, "re_iVarNum");
int END;
int iWeight;
int iCounter1;
int iCounter2;
string sChoice;
object oMod = GetModule();
while(!END)
{
sChoice = "";
switch(iCounter1)
{
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//DO NOT EDIT ABOVE THIS LINE/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CUSTOM ENCOUNTER TABLE BELOW:///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Creature rezref goes between the " marks.
// iWeight = number of times this mob should be considered for the likelyhood of appearing.
case 0:sChoice = "npc_com_hu_m001"; // Human Male
iWeight = 10;
break;
case 1:sChoice = "npc_com_hu_m002"; // Portly Human Male
iWeight = 10;
break;
case 2:sChoice = "npc_com_hu_f001"; // Human Female
iWeight = 10;
break;
case 3:sChoice = "npc_com_hu_f002"; // Portly Human Female
iWeight = 10;
break;
case 4:sChoice = "NPC_COM_HU_CM001"; // Human Male Child 01
iWeight = 4;
break;
case 5:sChoice = "NPC_COM_HU_CM002"; // Human Male Child 02
iWeight = 4;
break;
case 6:sChoice = "NPC_COM_HU_CF001"; // Human Female Child 01
iWeight = 4;
break;
case 7:sChoice = "NPC_COM_HU_CF002"; // Human Female Child 02
iWeight = 4;
break;
case 8:sChoice = "NPC_COM_DW_F001"; // Dwarven Female
iWeight = 4;
break;
case 9:sChoice = "NPC_COM_DW_F002"; // Portly Dwarven Female
iWeight = 4;
break;
case 10:sChoice = "NPC_COM_DW_M001"; // Dwarven Male
iWeight = 3;
break;
case 11:sChoice = "NPC_COM_DW_M002"; // Portly Dwarven Male
iWeight = 2;
break;
case 12:sChoice = "mhalforc";
iWeight = 2;
break;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//END OF CUSTOM ENCOUNTER TABLE! DO NOT EDIT BELOW THIS LINE//////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
default:END = TRUE;
break;
}
if(GetStringLowerCase(sChoice) != "")
{
for(iCounter2 = 1; iCounter2 <= iWeight; iCounter2++)
{
SetLocalString(oMod, "re_sCreatureList" + IntToString(iVarNum), sChoice);
iVarNum++;
}
}
iCounter1++;
}
SetLocalInt(OBJECT_SELF, "re_iVarNum", iVarNum);
}