#include "prc_alterations" #include "inc_letocommands" #include "prc_racial_const" #include "ccc_inc_convo" // #include "inc_encrypt" void main() { //define some varaibles object oPC = OBJECT_SELF; int i; //get some stored data int nStr = GetLocalInt(oPC, "Str"); int nDex = GetLocalInt(oPC, "Dex"); int nCon = GetLocalInt(oPC, "Con"); int nInt = GetLocalInt(oPC, "Int"); int nWis = GetLocalInt(oPC, "Wis"); int nCha = GetLocalInt(oPC, "Cha"); int nRace = GetLocalInt(oPC, "Race"); int nClass = GetLocalInt(oPC, "Class"); int nHitPoints = GetLocalInt(oPC, "HitPoints"); int nSex = GetLocalInt(oPC, "Gender"); int nOrder = GetLocalInt(oPC, "LawfulChaotic"); int nMoral = GetLocalInt(oPC, "GoodEvil"); int nSkillPointsSaved= GetLocalInt(oPC, "SavedSkillPoints"); int nFamiliar = GetLocalInt(oPC, "Familiar"); int nAnimalCompanion = GetLocalInt(oPC, "Companion"); int nDomain1 = GetLocalInt(oPC, "Domain1"); int nDomain2 = GetLocalInt(oPC, "Domain2"); int nSchool = GetLocalInt(oPC, "School"); int nSpellsPerDay0 = GetLocalInt(oPC, "SpellsPerDay0"); int nSpellsPerDay1 = GetLocalInt(oPC, "SpellsPerDay1"); int nVoiceset = GetLocalInt(oPC, "Soundset"); int nSkin = GetLocalInt(oPC, "Skin"); int nHair = GetLocalInt(oPC, "Hair"); int nTattooColour1 = GetLocalInt(oPC, "TattooColour1"); int nTattooColour2 = GetLocalInt(oPC, "TattooColour2"); //clear existing stuff string sScript; sScript += LetoDelete("FeatList"); sScript += LetoDelete("ClassList"); sScript += LetoDelete("LvlStatList"); sScript += LetoDelete("SkillList"); sScript += LetoAdd("FeatList", "", "list"); sScript += LetoAdd("ClassList", "", "list"); sScript += LetoAdd("LvlStatList", "", "list"); sScript += LetoAdd("SkillList", "", "list"); //Sex sScript += SetGender(nSex); //Race sScript += SetRace(nRace); //Class sScript += LetoAdd("ClassList/Class", IntToString(nClass), "int"); sScript += LetoAdd("ClassList/[0]/ClassLevel", "1", "short"); sScript += LetoAdd("LvlStatList/LvlStatClass", IntToString(nClass), "byte"); sScript += LetoAdd("LvlStatList/[0]/EpicLevel", "0", "byte"); sScript += LetoAdd("LvlStatList/[0]/LvlStatHitDie", IntToString(nHitPoints), "byte"); sScript += LetoAdd("LvlStatList/[0]/FeatList", "", "list"); sScript += LetoAdd("LvlStatList/[0]/SkillList", "", "list"); //Alignment sScript += LetoSet("LawfulChaotic", IntToString(nOrder), "byte"); sScript += LetoSet("GoodEvil", IntToString(nMoral), "byte"); //Familiar //has a random name if((nClass == CLASS_TYPE_WIZARD || nClass == CLASS_TYPE_SORCERER) && !GetPRCSwitch(PRC_PNP_FAMILIARS)) { sScript += LetoSet("FamiliarType", IntToString(nFamiliar), "int"); if(GetFamiliarName(oPC) == "") sScript += LetoSet("FamiliarName", RandomName(NAME_FAMILIAR), "string"); } //Animal Companion //has a random name if(nClass == CLASS_TYPE_DRUID) { sScript += LetoSet("CompanionType", IntToString(nAnimalCompanion), "int"); if(GetAnimalCompanionName(oPC) == "") sScript += LetoSet("CompanionName", RandomName(NAME_ANIMAL), "string"); } //Domains if(nClass == CLASS_TYPE_CLERIC) { // fix for air domain being 0 if (nDomain1 == -1) nDomain1 = 0; if (nDomain2 == -1) nDomain2 = 0; sScript += LetoAdd("ClassList/[0]/Domain1", IntToString(nDomain1), "byte"); sScript += LetoAdd("ClassList/[0]/Domain2", IntToString(nDomain2), "byte"); } //Ability Scores sScript += SetAbility(ABILITY_STRENGTH, nStr); sScript += SetAbility(ABILITY_DEXTERITY, nDex); sScript += SetAbility(ABILITY_CONSTITUTION, nCon); sScript += SetAbility(ABILITY_INTELLIGENCE, nInt); sScript += SetAbility(ABILITY_WISDOM, nWis); sScript += SetAbility(ABILITY_CHARISMA, nCha); //Feats //Make sure the list exists //Populate the list from array for(i=0;i