//////////////////////////////////////////////////// /* Custom Random Noble 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 = the number of times this mob should be considered for the likelyhood of appearing. case 0:sChoice = "NPC_NOB_HU_F001"; // Noble: Human Female 01 iWeight = 4; break; case 1:sChoice = "NPC_NOB_HU_F002"; // Noble: Human Female 02 iWeight = 2; break; case 2:sChoice = "NPC_NOB_HU_M001"; // Noble: Human Male 01 iWeight = 4; break; case 3:sChoice = "NPC_NOB_HU_M002"; // Noble: Human Male 02 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); }