RATDOG/_module/nss/re_commoner0.nss
Jaysyn904 d0d52fb1d0 Adding MMO systems
Added barred doors, set up more city denizen spawners, cleaned up Baleas Town Guards, Faerunized the "Holy Paladins".

Added character deleter NPC in the OOC Starting Area.
2021-09-04 01:08:04 -04:00

111 lines
3.6 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;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//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);
}