RATDOG/_module/nss/re_commoner0.nss
Jaysyn904 85dbcf860e Big update.
Big update, added multiple override packages.  Finished Baleas city commoners.
2021-09-05 00:09:04 -04:00

184 lines
5.5 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 = 3;
break;
case 9:sChoice = "NPC_COM_DW_F002"; // Portly Dwarven Female
iWeight = 2;
break;
case 10:sChoice = "NPC_COM_DW_M001"; // Dwarven Male
iWeight = 4;
break;
case 11:sChoice = "NPC_COM_DW_M002"; // Portly Dwarven Male
iWeight = 2;
break;
case 12:sChoice = "NPC_COM_EL_F001"; // Elven Female
iWeight = 2;
break;
case 13:sChoice = "NPC_COM_EL_F002"; // Portly Elven Female
iWeight = 1;
break;
case 14:sChoice = "NPC_COM_EL_M001"; // Elven Male
iWeight = 2;
break;
case 15:sChoice = "NPC_COM_EL_M002"; // Portly Elven Male
iWeight = 1;
break;
case 16:sChoice = "NPC_COM_HF_M001"; // Halfling Male
iWeight = 2;
break;
case 17:sChoice = "NPC_COM_HF_M002"; // Portly Halfling Male
iWeight = 2;
break;
case 18:sChoice = "NPC_COM_HF_F001"; // Halfling Female
iWeight = 2;
break;
case 19:sChoice = "NPC_COM_HE_F002"; // Portly Halfling Female
iWeight = 2;
break;
case 20:sChoice = "NPC_COM_HE_M001"; // Half-elf Male
iWeight = 4;
break;
case 21:sChoice = "NPC_COM_HE_M002"; // Portly Half-elf Male
iWeight = 4;
break;
case 22:sChoice = "NPC_COM_HE_F001"; // Half-elf Female
iWeight = 4;
break;
case 23:sChoice = "NPC_COM_HE_F002"; // Portly Half-elf Female
iWeight = 2;
break;
case 24:sChoice = "NPC_COM_HO_M001"; // Half-orc Male
iWeight = 1;
break;
case 25:sChoice = "NPC_COM_HO_M002"; // Portly Half-orc Male
iWeight = 1;
break;
case 26:sChoice = "NPC_COM_HO_F001"; // Half-orc Female
iWeight = 1;
break;
case 27:sChoice = "NPC_COM_HO_F002"; // Portly Half-orc Female
iWeight = 1;
break;
case 28:sChoice = "NPC_COM_GM_M001"; // Gnome Male
iWeight = 2;
break;
case 29:sChoice = "NPC_COM_GM_M002"; // Portly Gnome Male
iWeight = 2;
break;
case 30:sChoice = "NPC_COM_GM_F001"; // Gnome Female
iWeight = 2;
break;
case 31:sChoice = "NPC_COM_GM_F002"; // Portly Gnome Female
iWeight = 2;
break;
case 32:sChoice = "NPC_COM_HU_OM001"; // Old Human Male
iWeight = 4;
break;
case 33:sChoice = "NPC_COM_HU_OF001"; // Old Human Female
iWeight = 4;
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);
}