AOC_PRC8/_removed/subrace_include.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

1886 lines
76 KiB
Plaintext

#include "nodrop_include"
#include "spellres"
#include "damage_inc2"
//By: mad_andrew
void UnSubrace(object oSubraceCharacter);
void ApplySubrace(object oPC)
{
UnSubrace(oPC);
//Place your subraces here
//Just copy the TRAITS below, and uncomment/modify what you want
//You can delete anything you never plan on uncommenting
if(GetSubRace(oPC) == "Night Elf" && GetRacialType(oPC) == RACIAL_TYPE_ELF)
{
//DEXTERITY+2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 2)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(2, AC_DODGE_BONUS,
DAMAGE_TYPE_NEGATIVE)), oPC);
//Movement speed up 120%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMovementSpeedIncrease(120)), oPC);
}
if(GetHitDice(oPC) > 7)//gets it at 8th level
{
//Attack Increase +3
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAttackIncrease(3)), oPC);
//Damage increase +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageIncrease(2, DAMAGE_TYPE_NEGATIVE)), oPC);
}
if(GetHitDice(oPC) > 9)//gets it at 10th level
{
// Immunity cursed
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_CURSED)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 6th level
{
// Saving Throw
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_REFLEX, 1, SAVING_THROW_TYPE_EVIL)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 12th level
{
//Skill Increase
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_LISTEN, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_MOVE_SILENTLY, 10)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
//Immune to Doom
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_DOOM)), oPC);
}
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//Ultravision
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectUltravision()), oPC);
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
}
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("darkelfprops2", oPC);}
else
if ((GetHitDice(oPC) >=8) && (GetHitDice(oPC) <16))
{CreateItemOnObject("darkelfprops1", oPC); }
else
{CreateItemOnObject("darkelfprops", oPC);}
}
if(GetSubRace(oPC) == "Drow" && GetRacialType(oPC) == RACIAL_TYPE_ELF)
{
//STRENGTH +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_STRENGTH, 2)), oPC);
//INTELLIGENCE +3
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_INTELLIGENCE, 3)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(2, AC_DODGE_BONUS)), oPC);//, AC_VS_DAMAGE_TYPE_ALL)), oPC);
}
if(GetHitDice(oPC) > 7)//gets it at 8th level
{
//Attack Increase +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAttackIncrease(2)), oPC);
}
if(GetHitDice(oPC) > 9)//gets it at 10th level
{
//Damage Immunity +20% Magic
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityIncrease(DAMAGE_TYPE_MAGICAL, 20)), oPC);
//Immunity Blindness
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_BLINDNESS)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 6th level
{
//Saving throw increase +1 all
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_WILL, 1, SAVING_THROW_TYPE_DEATH)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Skill Increase
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_CONCENTRATION, 5)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_DISCIPLINE, 5)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
// Spell Immunity Darkness
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_DARKNESS)), oPC);
//True Seeing
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectTrueSeeing()), oPC);
}
//Spell Resistance 24
SpellResApply(oPC, 26);
//Give Subrace Item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("drowprops2", oPC);}
else
if ((GetHitDice(oPC) >=8) && (GetHitDice(oPC) <16))
{CreateItemOnObject("drowprops1", oPC); }
else
{CreateItemOnObject("drowprops", oPC);}
}
if(GetSubRace(oPC) == "Wood Elf" && GetRacialType(oPC) == RACIAL_TYPE_HALFELF)
{
//DEXTERITY +3
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 3)), oPC);
//WISDOM +3
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_WISDOM, 3)), oPC);
if(GetHitDice(oPC) > 7)//gets it at 4th level
{
//Attack Increase +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAttackIncrease(2)), oPC);
}
if(GetHitDice(oPC) > 9)//gets it at 4th level
{
//Concealment percentage 20%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectConcealment(20)), oPC);
//Damage Immunity +50%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityIncrease(DAMAGE_TYPE_POSITIVE, 50)), oPC);
//Immunity Paraysis
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_PARALYSIS)), oPC);
}
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//Movement speed up 140%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMovementSpeedIncrease(140)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 6th level
{
//Saving throw increase Fort +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_FORT, 2)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Skill Increase Empathy
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_ANIMAL_EMPATHY, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_MOVE_SILENTLY, 5)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
//Spell Immunity, web
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_WEB)), oPC);
}
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("woodprops2", oPC);}
else
if ((GetHitDice(oPC) >=10) && (GetHitDice(oPC) <16))
{CreateItemOnObject("woodprops1", oPC); }
else
{CreateItemOnObject("woodprops", oPC);}
}
if(GetSubRace(oPC) == "Duergar" && GetRacialType(oPC) == RACIAL_TYPE_DWARF)
{
//STRENGTH +1
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_STRENGTH, 1)), oPC);
//CONSTITUTION +3
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_CONSTITUTION, 3)), oPC);
// Charisma -2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_CHARISMA, 2)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(2, AC_NATURAL_BONUS)), oPC);
}
if(GetHitDice(oPC) > 7)//gets it at 4th level
{
//Attack Increase +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAttackIncrease(2)), oPC);
}
if(GetHitDice(oPC) > 9)//gets it at 4th level
{
//Damage Immunity Bludgeoning +20%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityIncrease(DAMAGE_TYPE_BLUDGEONING, 20)), oPC);
//Immunity
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_POISON)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_DISEASE)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 4th level
{
//Saving throw increase +1 all
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_FORT, 4)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_WILL, 2)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Skill Increase Taunt & Parry +5
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_PARRY, 5)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_TAUNT, 5)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
//True Seeing
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectTrueSeeing()), oPC);
}
//Spell Resistance 20
SpellResApply(oPC, 20);
//Give Subrace Item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("duergprops2", oPC);}
else
if ((GetHitDice(oPC) >=10) && (GetHitDice(oPC) <16))
{CreateItemOnObject("duergprops1", oPC); }
else
{CreateItemOnObject("duergprops", oPC);}
}
if(GetSubRace(oPC) == "Silver Dwarf" && GetRacialType(oPC) == RACIAL_TYPE_DWARF)
{
//DEXTERITY +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 2)), oPC);
//CONSTITUTION +4
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_CONSTITUTION, 4)), oPC);
//CHARISMA +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_CHARISMA, 2)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(2, AC_DODGE_BONUS)), oPC);
//Movement speed up 60%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMovementSpeedIncrease(120)), oPC);
}
if(GetHitDice(oPC) > 9)//gets it at 4th level
{
//Concealment percentage 30%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectConcealment(30)), oPC);
//Immunity
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_DAZED)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_POISON)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_STUN)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 4th level
{
//Saving throw increase +5 fort
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_FORT, 5)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Skill Increase
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_DISCIPLINE, 5)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_SPOT, 5)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
//True Seeing
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectTrueSeeing()), oPC);
}
//Spell Resistance 16
SpellResApply(oPC, 16);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("whiteprops2", oPC);}
else
if ((GetHitDice(oPC) >=8) && (GetHitDice(oPC) <16))
{CreateItemOnObject("whiteprops1", oPC); }
else
{CreateItemOnObject("whiteprops", oPC);}
}
if(GetSubRace(oPC) == "Dragoon" && GetRacialType(oPC) == RACIAL_TYPE_HUMAN)
{
//STRENGTH +4
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_STRENGTH, 4)), oPC);
//INTELLIGENCE +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_INTELLIGENCE, 2)), oPC);
//CHARISMA +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_CHARISMA, 2)), oPC);
//DEXTERITY -1
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
//SupernaturalEffect(EffectAbilityDecrease(ABILITY_DEXTERITY, 1)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(2, AC_DODGE_BONUS)), oPC);
//Movement speed Increase 30%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMovementSpeedIncrease(110)), oPC);
}
if(GetHitDice(oPC) > 9)//gets it at 4th level
{
//Damage Immunity Fire 100%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityIncrease(DAMAGE_TYPE_FIRE, 100)), oPC);
//Immunity
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_FEAR)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_PARALYSIS)), oPC);
}
if(GetHitDice(oPC) > 7)//gets it at 4th level
{
//Attack Increase +4
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAttackIncrease(4)), oPC);
//Damage increase fire +1
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageIncrease(2, DAMAGE_TYPE_FIRE)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 4th level
{
//Saving throw increase +1 all
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_TYPE_MIND_SPELLS, 1)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Skill Increase
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_DISCIPLINE, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_CONCENTRATION, 5)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
//Spell immunity
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_STORM_OF_VENGEANCE)), oPC);
//True Seeing
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectTrueSeeing()), oPC);
}
//Spell Resistance 12
SpellResApply(oPC, 12);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("dragprops3", oPC);}
else
if ((GetHitDice(oPC) >=12) && (GetHitDice(oPC) <16))
{CreateItemOnObject("dragprops2", oPC); }
else
if ((GetHitDice(oPC) >=6) && (GetHitDice(oPC) <12))
{CreateItemOnObject("dragprops1", oPC); }
else
if ((GetHitDice(oPC) >=4) && (GetHitDice(oPC) <6))
{CreateItemOnObject("dragprops", oPC);}
else
{CreateItemOnObject("dragprop", oPC);}
}
if(GetSubRace(oPC) == "Horodrim" && GetRacialType(oPC) == RACIAL_TYPE_HUMAN)
{
// Strength -1
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
//SupernaturalEffect(EffectAbilityDecrease(ABILITY_STRENGTH, 1)), oPC);
//DEXTERITY +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 2)), oPC);
//CONSTITUTION -3
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
//SupernaturalEffect(EffectAbilityDecrease(ABILITY_CONSTITUTION, 3)), oPC);
//INTELLIGENCE
//+5
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_INTELLIGENCE, 5)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +6
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(4, AC_DODGE_BONUS)), oPC);
//Movement speed up 100%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMovementSpeedIncrease(150)), oPC);
}
// Magical Damage gets +1 per level up to a Max of +20
DamageIncApply(oPC, 20);
if(GetHitDice(oPC) > 9)//gets it at 4th level
{
//Immunity spell Res Decrease
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_SPELL_RESISTANCE_DECREASE)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 4th level
{
//Saving throw increase +3 mind
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_WILL, 3, SAVING_THROW_TYPE_MIND_SPELLS)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Skill Increase
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_CONCENTRATION, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_SPELLCRAFT, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_USE_MAGIC_DEVICE, 10)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
//Spell Immunity, specific spell
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_GREATER_DISPELLING)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_LESSER_DISPEL)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_DISPEL_MAGIC)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_MORDENKAINENS_DISJUNCTION)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_GREATER_SPELL_BREACH)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_LESSER_SPELL_BREACH)), oPC);
//True Seeing
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectTrueSeeing()), oPC);
}
//Spell Resistance 36
SpellResApply(oPC, 36);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("horodprops2", oPC);}
else
if ((GetHitDice(oPC) >=12) && (GetHitDice(oPC) <16))
{CreateItemOnObject("horodprops1", oPC); }
else
{CreateItemOnObject("horodprops", oPC);}
}
if(GetSubRace(oPC) == "Succubus" && GetRacialType(oPC) == RACIAL_TYPE_HUMAN)
{
// Strength -1
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
//SupernaturalEffect(EffectAbilityDecrease(ABILITY_STRENGTH, 1)), oPC);
//DEXTERITY +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 2)), oPC);
//CONSTITUTION -3
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
//SupernaturalEffect(EffectAbilityDecrease(ABILITY_CONSTITUTION, 3)), oPC);
//CHARISMA
//+6
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_CHARISMA, 6)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +6
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(4, AC_DODGE_BONUS)), oPC);
//Movement speed up 120%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMovementSpeedIncrease(150)), oPC);
}
// Cold Damage gets +1 per level up to a Max of +20
ColdDamageIncApply(oPC, 20);
if(GetHitDice(oPC) > 9)//gets it at 10th level
{
//Immunity spell Res Decrease
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_SPELL_RESISTANCE_DECREASE)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 4th level
{
//Saving throw increase +3 mind
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_WILL, 3, SAVING_THROW_TYPE_MIND_SPELLS)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Skill Increase
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_CONCENTRATION, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_SPELLCRAFT, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_USE_MAGIC_DEVICE, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_PERSUADE, 10)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
//Spell Immunity, specific spell
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_GREATER_DISPELLING)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_LESSER_DISPEL)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_DISPEL_MAGIC)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_MORDENKAINENS_DISJUNCTION)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_GREATER_SPELL_BREACH)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_LESSER_SPELL_BREACH)), oPC);
//True Seeing
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectTrueSeeing()), oPC);
}
//Spell Resistance 36
SpellResApply(oPC, 36);
// Succubus Appearance
SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_SUCCUBUS);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("succprops2", oPC);}
else
if ((GetHitDice(oPC) >=8) && (GetHitDice(oPC) <16))
{CreateItemOnObject("succprops1", oPC); }
else
{CreateItemOnObject("succprops", oPC);}
}
if(GetSubRace(oPC) == "Pixie" && GetRacialType(oPC) == RACIAL_TYPE_GNOME)
{
//STRENGTH -2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_STRENGTH, 2)), oPC);
//DEXTERITY +4
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 4)), oPC);
//CONSTITUTION -2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_CONSTITUTION, 2)), oPC);
//INTELLIGENCE
//+2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_INTELLIGENCE, 2)), oPC);
//WISDOM +6
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_WISDOM, 6)), oPC);
//CHARISMA +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_CHARISMA, 2)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +4
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(4, AC_DODGE_BONUS)), oPC);
//Haste
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectHaste()), oPC);
}
if(GetHitDice(oPC) > 9)//gets it at 4th level
{
//Concealment percentage 20%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectConcealment(50)), oPC);
//Immunity
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_SPELL_RESISTANCE_DECREASE)), oPC);
//Miss chance 10%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMissChance(20)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 4th level
{
//Saving throw increase +2 all
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_ALL, 2, SAVING_THROW_TYPE_ALL)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Skill Increase
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_ANIMAL_EMPATHY, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_MOVE_SILENTLY, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_HIDE, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_USE_MAGIC_DEVICE, 10)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
//Ultravision
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectUltravision()), oPC);
}
//Spell Resistance 36
SpellResApply(oPC, 36);
//SetAppearance
SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_FAIRY);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("pixiprops2", oPC);}
else
if ((GetHitDice(oPC) >=8) && (GetHitDice(oPC) <16))
{CreateItemOnObject("pixiprops1", oPC); }
else
{CreateItemOnObject("pixiprops", oPC);}
}
if(GetSubRace(oPC) == "Demon" && GetRacialType(oPC) == RACIAL_TYPE_HALFORC)
{
//STRENGTH +6
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_STRENGTH, 6)), oPC);
//INTELLIGENCE -2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_INTELLIGENCE, 2)), oPC);
//WISDOM -4
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_WISDOM, 4)), oPC);
//CHARISMA -5
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_CHARISMA, 2)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +3
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(3, AC_DODGE_BONUS)), oPC);
}
if(GetHitDice(oPC) > 7)//gets it at 4th level
{
//Attack Increase +4
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAttackIncrease(4)), oPC);
//Damage increase +4
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageIncrease(4, DAMAGE_TYPE_ACID)), oPC);
}if(GetHitDice(oPC) > 9)//gets it at 4th level
{
//Damage Immunity +100% fire, acid
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityIncrease(DAMAGE_TYPE_FIRE, 100)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityIncrease(DAMAGE_TYPE_ACID, 100)), oPC);
//Immunity
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_CHARM)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_DISEASE)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_DEATH)), oPC);
}
if(GetHitDice(oPC) > 15)//gets it at 4th level
{
//Regeneration 1 damage every 6.0 seconds
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectRegenerate(1, 6.0)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Bonus Skill
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_TAUNT, 15)), oPC);
}
//SetAppearance
SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_LICH);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("demonprops2", oPC);}
else
if ((GetHitDice(oPC) >=8) && (GetHitDice(oPC) <16))
{CreateItemOnObject("demonprops1", oPC); }
else
{CreateItemOnObject("demonprops", oPC);}
}
if(GetSubRace(oPC) == "Vampire" && GetRacialType(oPC) == RACIAL_TYPE_HUMAN)
{
//STRENGTH +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_STRENGTH, 2)), oPC);
//DEXTERITY +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 2)), oPC);
//Damage Immunity +20%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityIncrease(DAMAGE_TYPE_NEGATIVE, 100)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityDecrease(DAMAGE_TYPE_DIVINE, 100)), oPC);
//Immunity
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_FEAR)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_POISON)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_DISEASE)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_NEGATIVE_LEVEL)), oPC);
//Regeneration 1 damage every 6.0 seconds
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectRegenerate(2, 6.0)), oPC);
//Saving throw increase +1 all
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowDecrease
(SAVING_THROW_ALL, 10, SAVING_THROW_TYPE_DIVINE)), oPC);
//See Invisible
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSeeInvisible()), oPC);
//Spell Immune
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_SLAY_LIVING)), oPC);
//Appearance
SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_VAMPIRE_FEMALE);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("vampprops2", oPC);}
else
if ((GetHitDice(oPC) >=8) && (GetHitDice(oPC) <16))
{CreateItemOnObject("vampprops1", oPC); }
else
{CreateItemOnObject("vampprops", oPC);}
}
if(GetSubRace(oPC) == "Dracula" && GetRacialType(oPC) == RACIAL_TYPE_HUMAN)
{
//STRENGTH +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_STRENGTH, 2)), oPC);
//DEXTERITY +2
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 2)), oPC);
//Damage Immunity +20%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityIncrease(DAMAGE_TYPE_NEGATIVE, 100)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityDecrease(DAMAGE_TYPE_DIVINE, 100)), oPC);
//Immunity
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_FEAR)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_POISON)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_DISEASE)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_NEGATIVE_LEVEL)), oPC);
//Regeneration 1 damage every 6.0 seconds
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectRegenerate(2, 6.0)), oPC);
//Saving throw increase +1 all
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowDecrease
(SAVING_THROW_ALL, 10, SAVING_THROW_TYPE_DIVINE)), oPC);
//See Invisible
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSeeInvisible()), oPC);
//Spell Immune
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_SLAY_LIVING)), oPC);
//Appearance
SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_VAMPIRE_MALE);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("dracprops2", oPC);}
else
if ((GetHitDice(oPC) >=8) && (GetHitDice(oPC) <16))
{CreateItemOnObject("dracprops1", oPC); }
else
{CreateItemOnObject("dracprops", oPC);}
}
if(GetSubRace(oPC) == "Morphlord" && GetRacialType(oPC) == RACIAL_TYPE_GNOME)
{
//Strength +3
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_STRENGTH, 3)), oPC);
//DEXTERITY +4
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 2)), oPC);
//CONSTITUTION +1
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_CONSTITUTION, 1)), oPC);
//WISDOM +8
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_WISDOM, 8)), oPC);
if(GetHitDice(oPC) > 3)//gets it at 4th level
{
//AC +3
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(3, AC_DODGE_BONUS)), oPC);
//Movement speed up 130%
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMovementSpeedIncrease(130)), oPC);
}
if(GetHitDice(oPC) > 7)//gets it at 4th level
{
//Damage Increase +3
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageIncrease(3, DAMAGE_TYPE_ELECTRICAL)), oPC);
}
if(GetHitDice(oPC) > 9)//gets it at 4th level
{
//Immunity Paralysis
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_PARALYSIS)), oPC);
}
if(GetHitDice(oPC) > 5)//gets it at 4th level
{
//Saving throw increase +2 all
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_FORT, 2, SAVING_THROW_TYPE_MIND_SPELLS)), oPC);
}
if(GetHitDice(oPC) > 11)//gets it at 4th level
{
//Skill Increase
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_ANIMAL_EMPATHY, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_SPELLCRAFT, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_CONCENTRATION, 10)), oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_USE_MAGIC_DEVICE, 10)), oPC);
}
//Spell Resistance 18
SpellResApply(oPC, 20);
//SetAppearance
SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_GHOUL);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
if (GetHitDice(oPC) >= 16)
{CreateItemOnObject("shiftprops2", oPC);}
else
if ((GetHitDice(oPC) >=8) && (GetHitDice(oPC) <16))
{CreateItemOnObject("shiftprops1", oPC); }
else
{CreateItemOnObject("shiftprops", oPC);}
}
/*
//////////////////TRAITS/////////////////////////////
if(GetSubRace(oPC) == "X" && GetRacialType(oPC) == Y)
// Change X to Subrace and Y to one of these
//RACIAL_TYPE_HUMAN
//RACIAL_TYPE_HALFORC
//RACIAL_TYPE_HALFELF
//RACIAL_TYPE_ELF
//RACIAL_TYPE_DWARF
//RACIAL_TYPE_GNOME
//RACIAL_TYPE_HALFLING
{
//STRENGTH
//+2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_STRENGTH, 2)), oPC);
//-2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_STRENGTH, 2)), oPC);
//DEXTERITY
//+2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_DEXTERITY, 2)), oPC);
//-2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_DEXTERITY, 2)), oPC);
//CONSTITUTION
//+2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_CONSTITUTION, 2)), oPC);
//-2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_CONSTITUTION, 2)), oPC);
//INTELLIGENCE
//+2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_INTELLIGENCE, 2)), oPC);
//-2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_INTELLIGENCE, 2)), oPC);
//WISDOM
//+2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_WISDOM, 2)), oPC);
//-2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_WISDOM, 2)), oPC);
//CHARISMA
//+2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityIncrease(ABILITY_CHARISMA, 2)), oPC);
//-2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAbilityDecrease(ABILITY_CHARISMA, 2)), oPC);
//POLYMORPH
//For polymorph, change constant from pixie to one found in the script near the bottom
//first TRUE is for including the polymorphs creature skin (may need ILR off)
//second TRUE is for including weapons (may need ILR off)
//change to FALSE to not include these
//SubracePolymorph(oPC, "POLYMORPH_TYPE_PIXIE", TRUE, TRUE);
//AC +2
//Can change AC_NATURAL_BONUS to one of these:
//AC_ARMOUR_ENCHANTMENT_BONUS
//AC_DEFLECTION_BONUS
//AC_DODGE_BONUS
//AC_NATURAL_BONUS
//AC_SHIELD_ENCHANTMENT_BONUS
//Can change AC_VS_DAMAGE_TYPE_ALL to one of these:
//DAMAGE_TYPE_ACID
//DAMAGE_TYPE_BLUDGEONING
//DAMAGE_TYPE_COLD
//DAMAGE_TYPE_DIVINE
//DAMAGE_TYPE_ELECTRICAL
//DAMAGE_TYPE_FIRE
//DAMAGE_TYPE_MAGICAL
//DAMAGE_TYPE_NEGATIVE
//DAMAGE_TYPE_PIERCING
//DAMAGE_TYPE_POSITIVE
//DAMAGE_TYPE_SONIC
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACIncrease(2, AC_NATURAL_BONUS, AC_VS_DAMAGE_TYPE_ALL)), oPC);
//AC -2
//Can change AC_NATURAL_BONUS as above
//Can change AC_VS_DAMAGE_TYPE_ALL as above
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectACDecrease(2, AC_NATURAL_BONUS, AC_VS_DAMAGE_TYPE_ALL)), oPC);
//Attack Increase +2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAttackIncrease(2)), oPC);
//Attack Decrease -2
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectAttackDecrease(2)), oPC);
//Concealment percentage 20%
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectConcealment(20)), oPC);
//Damage increase +2
//DAMAGE_TYPE_MAGICAL can be changed to any damage type listed up at AC bonus
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageIncrease(2, DAMAGE_TYPE_MAGICAL)), oPC);
//Damage Decrease -2
//DAMAGE_TYPE_MAGICAL can be changed to any damage type listed up at AC bonus
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageDecrease(2, DAMAGE_TYPE_MAGICAL)), oPC);
//Damage Immunity +20%
//DAMAGE_TYPE_MAGICAL can be changed to any damage type listed up at AC bonus
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageImmunityIncrease(DAMAGE_TYPE_MAGICAL, 20)), oPC);
//Damage Reduction 1/-
//Change DAMAGE_POWER_NORMAL to these for 'needed to penetrate':
//DAMAGE_POWER_ENERGY
//DAMAGE_POWER_NORMAL
//DAMAGE_POWER_PLUS_FIVE
//DAMAGE_POWER_PLUS_FOUR
//DAMAGE_POWER_PLUS_THREE
//DAMAGE_POWER_PLUS_TWO
//DAMAGE_POWER_PLUS_ONE
// Change 1 to whatever amount absorbed
//Change 0 to whatever amnount it can take before effect goes away, zero is infinite
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageReduction(1, DAMAGE_POWER_NORMAL, 0)), oPC);
//Damage Resistance 1
//Change damage type as above
//Change zero as Damage Reduction
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectDamageResistance(DAMAGE_TYPE_MAGICAL, 1, 0)), oPC);
//Haste
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectHaste()), oPC);
//Immunity
//Change IMMUNITY_TYPE_CHARM to any immunity below:
//IMMUNITY_TYPE_ABILITY_DECREASE
//IMMUNITY_TYPE_AC_DECREASE
//IMMUNITY_TYPE_ATTACK_DECREASE
//IMMUNITY_TYPE_BLINDNESS
//IMMUNITY_TYPE_CHARM
//IMMUNITY_TYPE_CONFUSED
//IMMUNITY_TYPE_CRITICAL_HIT
//IMMUNITY_TYPE_CURSED
//IMMUNITY_TYPE_DAMAGE_DECREASE
//IMMUNITY_TYPE_DAMAGE_IMMUNITY_DECREASE
//IMMUNITY_TYPE_DAZED
//IMMUNITY_TYPE_DEAFNESS
//IMMUNITY_TYPE_DEATH
//IMMUNITY_TYPE_DISEASE
//IMMUNITY_TYPE_DOMINATE
//IMMUNITY_TYPE_ENTANGLE
//IMMUNITY_TYPE_FEAR
//IMMUNITY_TYPE_KNOCKDOWN
//IMMUNITY_TYPE_MIND_SPELLS
//IMMUNITY_TYPE_MOVEMENT_SPEED_DECREASE
//IMMUNITY_TYPE_NEGATIVE_LEVEL
//IMMUNITY_TYPE_NONE
//IMMUNITY_TYPE_PARALYSIS
//IMMUNITY_TYPE_POISON
//IMMUNITY_TYPE_SAVING_THROW_DECREASE
//IMMUNITY_TYPE_SILENCE
//IMMUNITY_TYPE_SKILL_DECREASE
//IMMUNITY_TYPE_SLEEP
//IMMUNITY_TYPE_SLOW
//IMMUNITY_TYPE_SNEAK_ATTACK
//IMMUNITY_TYPE_SPELL_RESISTANCE_DECREASE
//IMMUNITY_TYPE_STUN
//IMMUNITY_TYPE_TRAP
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectImmunity(IMMUNITY_TYPE_CHARM)), oPC);
//Miss chance 10%
//Change 10% to any %. this is like concealment,
100% concealment gives 50% miss chance
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMissChance(10)), oPC);
//Adds extra 1 attack, can go up to 5
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectModifyAttacks(1)), oPC);
//Movement speed up 10%
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMovementSpeedIncrease(10)), oPC);
//Movement speed decrease 10%
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectMovementSpeedDecrease(10)), oPC);
//Regeneration 1 damage every 6.0 seconds
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectRegenerate(1, 6.0)), oPC);
//Saving throw increase +1 all
//Can change SAVING_THROW_ALL to:
//SAVING_THROW_ALL
//SAVING_THROW_FORT
//SAVING_THROW_WILL
//SAVING_THROW_REFLEX
//Can change SAVING_THROW_TYPE_ALL to:
//SAVING_THROW_TYPE_ACID
//SAVING_THROW_TYPE_ALL
//SAVING_THROW_TYPE_CHAOS
//SAVING_THROW_TYPE_COLD
//SAVING_THROW_TYPE_DEATH
//SAVING_THROW_TYPE_DISEASE
//SAVING_THROW_TYPE_DIVINE
//SAVING_THROW_TYPE_ELECTRICITY
//SAVING_THROW_TYPE_EVIL
//SAVING_THROW_TYPE_FEAR
//SAVING_THROW_TYPE_FIRE
//SAVING_THROW_TYPE_GOOD
//SAVING_THROW_TYPE_LAW
//SAVING_THROW_TYPE_MIND_SPELLS
//SAVING_THROW_TYPE_NEGATIVE
//SAVING_THROW_TYPE_NONE
//SAVING_THROW_TYPE_POISON
//SAVING_THROW_TYPE_POSITIVE
//SAVING_THROW_TYPE_SONIC
//SAVING_THROW_TYPE_TRAP
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSavingThrowIncrease(SAVING_THROW_ALL, 1, SAVING_THROW_TYPE_ALL)), oPC);
//See Invisible
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSeeInvisible()), oPC);
//Skill Increase
//Change 2 to bonus
//Change SKILL_MOVE_SILENTLY, to any of these:
//SKILL_ALL_SKILLS
//SKILL_ANIMAL_EMPATHY
//SKILL_CONCENTRATION
//SKILL_DISABLE_TRAP
//SKILL_DISCIPLINE
//SKILL_HEAL
//SKILL_HIDE
//SKILL_LISTEN
//SKILL_LORE
//SKILL_MOVE_SILENTLY
//SKILL_OPEN_LOCK
//SKILL_PARRY
//SKILL_PERFORM
//SKILL_PERSUADE
//SKILL_PICK_POCKET
//SKILL_SEARCH
//SKILL_SET_TRAP
//
//SKILL_SPOT
//SKILL_TAUNT
//SKILL_USE_MAGIC_DEVICE
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillIncrease(SKILL_MOVE_SILENTLY, 2)), oPC);
//Skill Decrease
//Change 2 to whatever amount to decrease
//Change skill to any above
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSkillDecrease(SKILL_MOVE_SILENTLY, 2)), oPC);
//Slow
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSlow()), oPC);
//Spell Immunity, specific spell
//Change SPELL_ALL_SPELLS to one of these:
//SPELL_ACID_FOG
//SPELL_AID
//SPELL_ALL_SPELLS
//SPELL_ANIMATE_DEAD
//SPELL_AURA_OF_VITALITY
//SPELL_AWAKEN
//SPELL_BARKSKIN
//SPELL_BESTOW_CURSE
//SPELL_BLADE_BARRIER
//SPELL_BLESS
//SPELL_BLESS_WEAPON
//SPELL_BLINDNESS_AND_DEAFNESS
//SPELL_BULLS_STRENGTH
//SPELL_BURNING_HANDS
//SPELL_CALL_LIGHTNING
//SPELL_CATS_GRACE
//SPELL_CHAIN_LIGHTNING
//SPELL_CHARM_MONSTER
//SPELL_CHARM_PERSON
//SPELL_CHARM_PERSON_OR_ANIMAL
//SPELL_CIRCLE_OF_DEATH
//SPELL_CIRCLE_OF_DOOM
//SPELL_CLAIRAUDIENCE_AND_CLAIRVOYANCE
//SPELL_CLARITY
//SPELL_CLOAK_OF_CHAOS
//SPELL_CLOUDKILL
//SPELL_COLOR_SPRAY
//SPELL_CONE_OF_COLD
//SPELL_CONFUSION
//SPELL_CONTAGION
//SPELL_CONTROL_UNDEAD
//SPELL_CREATE_GREATER_UNDEAD
//SPELL_CREATE_UNDEAD
//SPELL_CREEPING_DOOM
//SPELL_CURE_CRITICAL_WOUNDS
//SPELL_CURE_LIGHT_WOUNDS
//SPELL_CURE_MINOR_WOUNDS
//SPELL_CURE_MODERATE_WOUNDS
//SPELL_CURE_SERIOUS_WOUNDS
//SPELL_DARKNESS
//SPELL_DARKVISION
//SPELL_DAZE
//SPELL_DEATH_WARD
//SPELL_DELAYED_BLAST_FIREBALL
//SPELL_DESTRUCTION
//SPELL_DISMISSAL
//SPELL_DISPEL_MAGIC
//SPELL_DIVINE_POWER
//SPELL_DOMINATE_ANIMAL
//SPELL_DOMINATE_MONSTER
//SPELL_DOMINATE_PERSON
//SPELL_DOOM
//SPELL_EAGLE_SPLEDOR
//SPELL_ELEMENTAL_SHIELD
//SPELL_ELEMENTAL_SWARM
//SPELL_ENDURANCE
//SPELL_ENDURE_ELEMENTS
//SPELL_ENERGY_BUFFER
//SPELL_ENERGY_DRAIN
//SPELL_ENERVATION
//SPELL_ENTANGLE
//SPELL_ETHEREAL_VISAGE
//SPELL_EVARDS_BLACK_TENTACLES
//SPELL_FEAR
//SPELL_FEEBLEMIND
//SPELL_FIND_TRAPS
//SPELL_FINGER_OF_DEATH
//SPELL_FIRE_STORM
//SPELL_FIREBALL
//SPELL_FLAME_ARROW
//SPELL_FLAME_LASH
//SPELL_FLAME_STRIKE
//SPELL_FOXS_CUNNING
//SPELL_FREEDOM_OF_MOVEMENT
//SPELL_GATE
//SPELL_GHOSTLY_VISAGE
//SPELL_GHOUL_TOUCH
//SPELL_GLOBE_OF_INVULNERABILITY
//SPELL_GREASE
//SPELL_GREATER_BULLS_STRENGTH
//SPELL_GREATER_CATS_GRACE
//SPELL_GREATER_DISPELLING
//SPELL_GREATER_EAGLE_SPLENDOR
//SPELL_GREATER_ENDURANCE
//SPELL_GREATER_FOXS_CUNNING
//SPELL_GREATER_MAGIC_WEAPON
//SPELL_GREATER_OWLS_WISDOM
//SPELL_GREATER_PLANAR_BINDING
//SPELL_GREATER_RESTORATION
//SPELL_GREATER_SHADOW_CONJURATION_ACID_ARROW
//SPELL_GREATER_SHADOW_CONJURATION_MINOR_GLOBE
//SPELL_GREATER_SHADOW_CONJURATION_MIRROR_IMAGE
//SPELL_GREATER_SHADOW_CONJURATION_SUMMON_SHADOW
//SPELL_GREATER_SHADOW_CONJURATION_WEB
//SPELL_GREATER_SPELL_BREACH
//SPELL_GREATER_SPELL_MANTLE
//SPELL_GREATER_STONESKIN
//SPELL_HAMMER_OF_THE_GODS
//SPELL_HARM
//SPELL_HASTE
//SPELL_HEAL
//SPELL_HEALING_CIRCLE
//SPELL_HOLD_ANIMAL
//SPELL_HOLD_MONSTER
//SPELL_HOLD_PERSON
//SPELL_HOLY_AURA
//SPELL_HOLY_SWORD
//SPELL_HORRID_WILTING
//SPELL_ICE_STORM
//SPELL_IDENTIFY
//SPELL_IMPLOSION
//SPELL_IMPROVED_INVISIBILITY
//SPELL_INCENDIARY_CLOUD
//SPELL_INVISIBILITY
//SPELL_INVISIBILITY_PURGE
//SPELL_INVISIBILITY_SPHERE
//SPELL_KNOCK
//SPELL_LEGEND_LORE
//SPELL_LESSER_DISPEL
//SPELL_LESSER_MIND_BLANK
//SPELL_LESSER_PLANAR_BINDING
//SPELL_LESSER_RESTORATION
//SPELL_LESSER_SPELL_BREACH
//SPELL_LESSER_SPELL_MANTLE
//SPELL_LIGHT
//SPELL_LIGHTNING_BOLT
//SPELL_MAGE_ARMOR
//SPELL_MAGIC_CIRCLE_AGAINST_CHAOS
//SPELL_MAGIC_CIRCLE_AGAINST_EVIL
//SPELL_MAGIC_CIRCLE_AGAINST_GOOD
//SPELL_MAGIC_CIRCLE_AGAINST_LAW
//SPELL_MAGIC_MISSILE
//SPELL_MAGIC_VESTMENT UNKNOWN
//SPELL_MAGIC_WEAPON
//SPELL_MASS_BLINDNESS_AND_DEAFNESS
//SPELL_MASS_CHARM
//SPELL_MASS_HASTE
//SPELL_MASS_HEAL
//SPELL_MELFS_ACID_ARROW
//SPELL_METEOR_SWARM
//SPELL_MIND_BLANK
//SPELL_MIND_FOG
//SPELL_MINOR_GLOBE_OF_INVULNERABILITY
//SPELL_MORDENKAINENS_DISJUNCTION
//SPELL_MORDENKAINENS_SWORD
//SPELL_NATURES_BALANCE
//SPELL_NEGATIVE_ENERGY_BURST
//SPELL_NEGATIVE_ENERGY_PROTECTION
//SPELL_NEGATIVE_ENERGY_RAY
//SPELL_NEUTRALIZE_POISON
//SPELL_OWLS_WISDOM
//SPELL_PHANTASMAL_KILLER
//SPELL_PLANAR_BINDING
//SPELL_POISON
//SPELL_POLYMORPH_SELF
//SPELL_POWER_WORD_KILL
//SPELL_POWER_WORD_STUN
//SPELL_PRAYER
//SPELL_PREMONITION
//SPELL_PRISMATIC_SPRAY
//SPELL_PROTECTION__FROM_CHAOS
//SPELL_PROTECTION_FROM_ELEMENTS
//SPELL_PROTECTION_FROM_EVIL
//SPELL_PROTECTION_FROM_GOOD
//SPELL_PROTECTION_FROM_LAW
//SPELL_PROTECTION_FROM_SPELLS
//SPELL_RAISE_DEAD
//SPELL_RAY_OF_ENFEEBLEMENT
//SPELL_RAY_OF_FROST
//SPELL_REGENERATE
//SPELL_REMOVE_BLINDNESS_AND_DEAFNESS
//SPELL_REMOVE_CURSE
//SPELL_REMOVE_DISEASE
//SPELL_REMOVE_FEAR
//SPELL_REMOVE_PARALYSIS
//SPELL_RESIST_ELEMENTS
//SPELL_RESISTANCE
//SPELL_RESTORATION
//SPELL_RESURRECTION
//SPELL_SANCTUARY
//SPELL_SCARE
//SPELL_SEARING_LIGHT
//SPELL_SEE_INVISIBILITY
//SPELL_SHADES_CONE_OF_COLD
//SPELL_SHADES_FIREBALL
//SPELL_SHADES_STONESKIN
//SPELL_SHADES_SUMMON_SHADOW
//SPELL_SHADES_WALL_OF_FIRE
//SPELL_SHADOW_CONJURATION_DARKNESS
//SPELL_SHADOW_CONJURATION_INIVSIBILITY
//SPELL_SHADOW_CONJURATION_MAGE_ARMOR
//SPELL_SHADOW_CONJURATION_MAGIC_MISSILE
//SPELL_SHADOW_CONJURATION_SUMMON_SHADOW
//SPELL_SHADOW_SHIELD
//SPELL_SHAPECHANGE
//SPELL_SHIELD_OF_LAW
//SPELL_SILENCE
//SPELL_SLAY_LIVING
//SPELL_SLEEP
//SPELL_SLOW
//SPELL_SOUND_BURST
//SPELL_SPELL_MANTLE
//SPELL_SPELL_RESISTANCE
//SPELL_SPHERE_OF_CHAOS
//SPELL_STINKING_CLOUD
//SPELL_STONESKIN
//SPELL_STORM_OF_VENGEANCE
//SPELL_SUMMON_CREATURE_I
//SPELL_SUMMON_CREATURE_II
//SPELL_SUMMON_CREATURE_III
//SPELL_SUMMON_CREATURE_IV
//SPELL_SUMMON_CREATURE_IX
//SPELL_SUMMON_CREATURE_V
//SPELL_SUMMON_CREATURE_VI
//SPELL_SUMMON_CREATURE_VII
//SPELL_SUMMON_CREATURE_VIII
//SPELL_SUNBEAM
//SPELL_TENSERS_TRANSFORMATION
//SPELL_TIME_STOP
//SPELL_TRUE_SEEING
//SPELL_UNHOLY_AURA
//SPELL_VAMPIRIC_TOUCH
//SPELL_VIRTUE
//SPELL_WAIL_OF_THE_BANSHEE
//SPELL_WALL_OF_FIRE
//SPELL_WAR_CRY
//SPELL_WEB
//SPELL_WEIRD
//SPELL_WORD_OF_FAITH
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellImmunity(SPELL_ALL_SPELLS)), oPC);
//Spell Level Absorbsion
//change 3 to max spell level absorbed
//change 6 to max # of spell levels absorbed (0 default)
//change SPELL_SCHOOL_GENERAL to any of these schools:
//SPELL_SCHOOL_ABJURATION
//SPELL_SCHOOL_CONJURATION
//SPELL_SCHOOL_DIVINATION
//SPELL_SCHOOL_ENCHANTMENT
//SPELL_SCHOOL_EVOCATION
//SPELL_SCHOOL_GENERAL
//SPELL_SCHOOL_ILLUSION
//SPELL_SCHOOL_NECROMANCY
//SPELL_SCHOOL_TRANSMUTATION
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellLevelAbsorption(3, 6, SPELL_SCHOOL_GENERAL)), oPC);
//Spell Resistance 3
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectSpellResistanceIncrease(3)), oPC);
//True Seeing
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectTrueSeeing()), oPC);
//Turn Resistance +3HD
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectTurnResistanceIncrease(3)), oPC);
//Ultravision
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,
SupernaturalEffect(EffectUltravision()), oPC);
//SetAppearance
//Change "APPEARANCE_TYPE_GOBLIN_A" to any of the following:
//APPEARANCE_TYPE_ALLIP
//APPEARANCE_TYPE_ARANEA
//APPEARANCE_TYPE_ARCH_TARGET
//APPEARANCE_TYPE_ARIBETH
//APPEARANCE_TYPE_ASABI_CHIEFTAIN
//APPEARANCE_TYPE_ASABI_SHAMAN
//APPEARANCE_TYPE_ASABI_WARRIOR
//APPEARANCE_TYPE_BADGER
//APPEARANCE_TYPE_BADGER_DIRE
//APPEARANCE_TYPE_BALOR
//APPEARANCE_TYPE_BARTENDER
//APPEARANCE_TYPE_BASILISK
//APPEARANCE_TYPE_BAT
//APPEARANCE_TYPE_BAT_HORROR
//APPEARANCE_TYPE_BEAR_BLACK
//APPEARANCE_TYPE_BEAR_BROWN
//APPEARANCE_TYPE_BEAR_DIRE
//APPEARANCE_TYPE_BEAR_KODIAK
//APPEARANCE_TYPE_BEAR_POLAR
//APPEARANCE_TYPE_BEETLE_FIRE
//APPEARANCE_TYPE_BEETLE_SLICER
//APPEARANCE_TYPE_BEETLE_STAG
//APPEARANCE_TYPE_BEETLE_STINK
//APPEARANCE_TYPE_BEGGER
//APPEARANCE_TYPE_BLOOD_SAILER
//APPEARANCE_TYPE_BOAR
//APPEARANCE_TYPE_BOAR_DIRE
//APPEARANCE_TYPE_BODAK
//APPEARANCE_TYPE_BUGBEAR_A
//APPEARANCE_TYPE_BUGBEAR_B
//APPEARANCE_TYPE_BUGBEAR_CHIEFTAIN_A
//APPEARANCE_TYPE_BUGBEAR_CHIEFTAIN_B
//APPEARANCE_TYPE_BUGBEAR_SHAMAN_A
//APPEARANCE_TYPE_BUGBEAR_SHAMAN_B
//APPEARANCE_TYPE_CAT_CAT_DIRE
//APPEARANCE_TYPE_CAT_COUGAR
//APPEARANCE_TYPE_CAT_CRAG_CAT
//APPEARANCE_TYPE_CAT_JAGUAR
//APPEARANCE_TYPE_CAT_KRENSHAR
//APPEARANCE_TYPE_CAT_LEOPARD
//APPEARANCE_TYPE_CAT_LION
//APPEARANCE_TYPE_CAT_MPANTHER
//APPEARANCE_TYPE_CAT_PANTHER
//APPEARANCE_TYPE_CHICKEN
//APPEARANCE_TYPE_COCKATRICE
//APPEARANCE_TYPE_COMBAT_DUMMY
//APPEARANCE_TYPE_CONVICT
//APPEARANCE_TYPE_COW
//APPEARANCE_TYPE_CULT_MEMBER
//APPEARANCE_TYPE_DEER
//APPEARANCE_TYPE_DEER_STAG
//APPEARANCE_TYPE_DEVIL
//APPEARANCE_TYPE_DOG
//APPEARANCE_TYPE_DOG_BLINKDOG
//APPEARANCE_TYPE_DOG_DIRE_WOLF
//APPEARANCE_TYPE_DOG_FENHOUND
//APPEARANCE_TYPE_DOG_HELL_HOUND
//APPEARANCE_TYPE_DOG_SHADOW_MASTIF
//APPEARANCE_TYPE_DOG_WINTER_WOLF
//APPEARANCE_TYPE_DOG_WOLF
//APPEARANCE_TYPE_DOG_WORG
//APPEARANCE_TYPE_DOOM_KNIGHT
//APPEARANCE_TYPE_DRAGON_BLACK
//APPEARANCE_TYPE_DRAGON_BLUE
//APPEARANCE_TYPE_DRAGON_BRASS
//APPEARANCE_TYPE_DRAGON_BRONZE
//APPEARANCE_TYPE_DRAGON_COPPER
//APPEARANCE_TYPE_DRAGON_GOLD
//APPEARANCE_TYPE_DRAGON_GREEN
//APPEARANCE_TYPE_DRAGON_RED
//APPEARANCE_TYPE_DRAGON_SILVER
//APPEARANCE_TYPE_DRAGON_WHITE
//APPEARANCE_TYPE_DROW_CLERIC
//APPEARANCE_TYPE_DROW_FIGHTER
//APPEARANCE_TYPE_DRUEGAR_CLERIC
//APPEARANCE_TYPE_DRUEGAR_FIGHTER
//APPEARANCE_TYPE_DRYAD
//APPEARANCE_TYPE_DWARF
//APPEARANCE_TYPE_DWARF_NPC_FEMALE
//APPEARANCE_TYPE_DWARF_NPC_MALE
//APPEARANCE_TYPE_ELEMENTAL_AIR
//APPEARANCE_TYPE_ELEMENTAL_AIR_ELDER
//APPEARANCE_TYPE_ELEMENTAL_EARTH
//APPEARANCE_TYPE_ELEMENTAL_EARTH_ELDER
//APPEARANCE_TYPE_ELEMENTAL_FIRE
//APPEARANCE_TYPE_ELEMENTAL_FIRE_ELDER
//APPEARANCE_TYPE_ELEMENTAL_WATER
//APPEARANCE_TYPE_ELEMENTAL_WATER_ELDER
//APPEARANCE_TYPE_ELF
//APPEARANCE_TYPE_ELF_NPC_FEMALE
//APPEARANCE_TYPE_ELF_NPC_MALE_01
//APPEARANCE_TYPE_ELF_NPC_MALE_02
//APPEARANCE_TYPE_ETTERCAP
//APPEARANCE_TYPE_ETTIN
//APPEARANCE_TYPE_FAERIE_DRAGON
//APPEARANCE_TYPE_FAIRY
//APPEARANCE_TYPE_FALCON
//APPEARANCE_TYPE_FEMALE_01
//APPEARANCE_TYPE_FEMALE_02
//APPEARANCE_TYPE_FEMALE_03
//APPEARANCE_TYPE_FEMALE_04
//APPEARANCE_TYPE_FORMIAN_MYRMARCH
//APPEARANCE_TYPE_FORMIAN_QUEEN
//APPEARANCE_TYPE_FORMIAN_WARRIOR
//APPEARANCE_TYPE_FORMIAN_WORKER
//APPEARANCE_TYPE_GARGOYLE
//APPEARANCE_TYPE_GHAST
//APPEARANCE_TYPE_GHOUL
//APPEARANCE_TYPE_GHOUL_LORD
//APPEARANCE_TYPE_GIANT_FIRE
//APPEARANCE_TYPE_GIANT_FIRE_FEMALE
//APPEARANCE_TYPE_GIANT_FROST
//APPEARANCE_TYPE_GIANT_FROST_FEMALE
//APPEARANCE_TYPE_GIANT_HILL
//APPEARANCE_TYPE_GIANT_MOUNTAIN
//APPEARANCE_TYPE_GNOLL_WARRIOR
//APPEARANCE_TYPE_GNOLL_WIZ
//APPEARANCE_TYPE_GNOME
//APPEARANCE_TYPE_GNOME_NPC_FEMALE
//APPEARANCE_TYPE_GNOME_NPC_MALE
//APPEARANCE_TYPE_GOBLIN_A
//APPEARANCE_TYPE_GOBLIN_B
//APPEARANCE_TYPE_GOBLIN_CHIEF_A
//APPEARANCE_TYPE_GOBLIN_CHIEF_B
//APPEARANCE_TYPE_GOBLIN_SHAMAN_A
//APPEARANCE_TYPE_GOBLIN_SHAMAN_B
//APPEARANCE_TYPE_GOLEM_BONE
//APPEARANCE_TYPE_GOLEM_CLAY
//APPEARANCE_TYPE_GOLEM_FLESH
//APPEARANCE_TYPE_GOLEM_IRON
//APPEARANCE_TYPE_GOLEM_STONE
//APPEARANCE_TYPE_GORGON
//APPEARANCE_TYPE_GREY_RENDER
//APPEARANCE_TYPE_GYNOSPHINX
//APPEARANCE_TYPE_HALF_ELF
//APPEARANCE_TYPE_HALF_ORC
//APPEARANCE_TYPE_HALF_ORC_NPC_FEMALE
//APPEARANCE_TYPE_HALF_ORC_NPC_MALE_01
//APPEARANCE_TYPE_HALF_ORC_NPC_MALE_02
//APPEARANCE_TYPE_HALFLING
//APPEARANCE_TYPE_HALFLING_NPC_FEMALE
//APPEARANCE_TYPE_HALFLING_NPC_MALE
//APPEARANCE_TYPE_HELMED_HORROR
//APPEARANCE_TYPE_HEURODIS_LICH
//APPEARANCE_TYPE_HOBGOBLIN_WARRIOR
//APPEARANCE_TYPE_HOBGOBLIN_WIZARD
//APPEARANCE_TYPE_HOOK_HORROR
//APPEARANCE_TYPE_HOUSE_GUARD
//APPEARANCE_TYPE_HUMAN
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_01
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_02
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_03
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_04
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_05
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_06
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_07
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_08
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_09
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_10
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_11
//APPEARANCE_TYPE_HUMAN_NPC_FEMALE_12
//APPEARANCE_TYPE_HUMAN_NPC_MALE_01
//APPEARANCE_TYPE_HUMAN_NPC_MALE_02
//APPEARANCE_TYPE_HUMAN_NPC_MALE_03
//APPEARANCE_TYPE_HUMAN_NPC_MALE_04
//APPEARANCE_TYPE_HUMAN_NPC_MALE_05
//APPEARANCE_TYPE_HUMAN_NPC_MALE_06
//APPEARANCE_TYPE_HUMAN_NPC_MALE_07
//APPEARANCE_TYPE_HUMAN_NPC_MALE_08
//APPEARANCE_TYPE_HUMAN_NPC_MALE_09
//APPEARANCE_TYPE_HUMAN_NPC_MALE_10
//APPEARANCE_TYPE_HUMAN_NPC_MALE_11
//APPEARANCE_TYPE_HUMAN_NPC_MALE_12
//APPEARANCE_TYPE_HUMAN_NPC_MALE_13
//APPEARANCE_TYPE_HUMAN_NPC_MALE_14
//APPEARANCE_TYPE_HUMAN_NPC_MALE_15
//APPEARANCE_TYPE_HUMAN_NPC_MALE_16
//APPEARANCE_TYPE_HUMAN_NPC_MALE_17
//APPEARANCE_TYPE_HUMAN_NPC_MALE_18
//APPEARANCE_TYPE_IMP
//APPEARANCE_TYPE_INN_KEEPER
//APPEARANCE_TYPE_INTELLECT_DEVOURER
//APPEARANCE_TYPE_INVISIBLE_HUMAN_MALE
//APPEARANCE_TYPE_INVISIBLE_STALKER
//APPEARANCE_TYPE_KID_FEMALE
//APPEARANCE_TYPE_KID_MALE
//APPEARANCE_TYPE_KOBOLD_A
//APPEARANCE_TYPE_KOBOLD_B
//APPEARANCE_TYPE_KOBOLD_CHIEF_A
//APPEARANCE_TYPE_KOBOLD_CHIEF_B
//APPEARANCE_TYPE_KOBOLD_SHAMAN_A
//APPEARANCE_TYPE_KOBOLD_SHAMAN_B
//APPEARANCE_TYPE_LANTERN_ARCHON
//APPEARANCE_TYPE_LICH
//APPEARANCE_TYPE_LIZARDFOLK_A
//APPEARANCE_TYPE_LIZARDFOLK_B
//APPEARANCE_TYPE_LIZARDFOLK_SHAMAN_A
//APPEARANCE_TYPE_LIZARDFOLK_SHAMAN_B
//APPEARANCE_TYPE_LIZARDFOLK_WARRIOR_A
//APPEARANCE_TYPE_LIZARDFOLK_WARRIOR_B
//APPEARANCE_TYPE_LUSKAN_GUARD
//APPEARANCE_TYPE_MALE_01
//APPEARANCE_TYPE_MALE_02
//APPEARANCE_TYPE_MALE_03
//APPEARANCE_TYPE_MALE_04
//APPEARANCE_TYPE_MALE_05
//APPEARANCE_TYPE_MANTICORE
//APPEARANCE_TYPE_MEDUSA
//APPEARANCE_TYPE_MEPHIT_AIR
//APPEARANCE_TYPE_MEPHIT_DUST
//APPEARANCE_TYPE_MEPHIT_EARTH
//APPEARANCE_TYPE_MEPHIT_FIRE
//APPEARANCE_TYPE_MEPHIT_ICE
//APPEARANCE_TYPE_MEPHIT_MAGMA
//APPEARANCE_TYPE_MEPHIT_OOZE
//APPEARANCE_TYPE_MEPHIT_SALT
//APPEARANCE_TYPE_MEPHIT_STEAM
//APPEARANCE_TYPE_MEPHIT_WATER
//APPEARANCE_TYPE_MINOGON
//APPEARANCE_TYPE_MINOTAUR
//APPEARANCE_TYPE_MINOTAUR_CHIEFTAIN
//APPEARANCE_TYPE_MINOTAUR_SHAMAN
//APPEARANCE_TYPE_MOHRG
//APPEARANCE_TYPE_MUMMY_COMMON
//APPEARANCE_TYPE_MUMMY_FIGHTER_2
//APPEARANCE_TYPE_MUMMY_GREATER
//APPEARANCE_TYPE_MUMMY_WARRIOR
//APPEARANCE_TYPE_NW_MILITIA_MEMBER
//APPEARANCE_TYPE_NWN_AARIN
//APPEARANCE_TYPE_NWN_ARIBETH_EVIL
//APPEARANCE_TYPE_NWN_HAEDRALINE
//APPEARANCE_TYPE_NWN_MAUGRIM
//APPEARANCE_TYPE_NWN_MORAG
//APPEARANCE_TYPE_NWN_NASHER
//APPEARANCE_TYPE_NWN_SEDOS
//APPEARANCE_TYPE_NYMPH
//APPEARANCE_TYPE_OGRE
//APPEARANCE_TYPE_OGRE_CHIEFTAIN
//APPEARANCE_TYPE_OGRE_CHIEFTAINB
//APPEARANCE_TYPE_OGRE_MAGE
//APPEARANCE_TYPE_OGRE_MAGEB
//APPEARANCE_TYPE_OGREB
//APPEARANCE_TYPE_OLD_MAN
//APPEARANCE_TYPE_OLD_WOMAN
//APPEARANCE_TYPE_ORC_A
//APPEARANCE_TYPE_ORC_B
//APPEARANCE_TYPE_ORC_CHIEFTAIN_A
//APPEARANCE_TYPE_ORC_CHIEFTAIN_B
//APPEARANCE_TYPE_ORC_SHAMAN_A
//APPEARANCE_TYPE_ORC_SHAMAN_B
//APPEARANCE_TYPE_OX
//APPEARANCE_TYPE_PENGUIN
//APPEARANCE_TYPE_PLAGUE_VICTIM
//APPEARANCE_TYPE_PROSTITUTE_01
//APPEARANCE_TYPE_PROSTITUTE_02
//APPEARANCE_TYPE_PSEUDODRAGON
//APPEARANCE_TYPE_QUASIT
//APPEARANCE_TYPE_RAKSHASA_BEAR_MALE
//APPEARANCE_TYPE_RAKSHASA_TIGER_FEMALE
//APPEARANCE_TYPE_RAKSHASA_TIGER_MALE
//APPEARANCE_TYPE_RAKSHASA_WOLF_MALE
//APPEARANCE_TYPE_RAT
//APPEARANCE_TYPE_RAT_DIRE
//APPEARANCE_TYPE_RAVEN
//APPEARANCE_TYPE_SHADOW
//APPEARANCE_TYPE_SHADOW_FIEND
//APPEARANCE_TYPE_SHIELD_GUARDIAN
//APPEARANCE_TYPE_SHOP_KEEPER
//APPEARANCE_TYPE_SKELETAL_DEVOURER
//APPEARANCE_TYPE_SKELETON_CHIEFTAIN
//APPEARANCE_TYPE_SKELETON_COMMON
//APPEARANCE_TYPE_SKELETON_MAGE
//APPEARANCE_TYPE_SKELETON_PRIEST
//APPEARANCE_TYPE_SKELETON_WARRIOR
//APPEARANCE_TYPE_SKELETON_WARRIOR_1
//APPEARANCE_TYPE_SKELETON_WARRIOR_2
//APPEARANCE_TYPE_SLAAD_BLUE
//APPEARANCE_TYPE_SLAAD_DEATH
//APPEARANCE_TYPE_SLAAD_GRAY
//APPEARANCE_TYPE_SLAAD_GREEN
//APPEARANCE_TYPE_SLAAD_RED
//APPEARANCE_TYPE_SPECTRE
//APPEARANCE_TYPE_SPHINX
//APPEARANCE_TYPE_SPIDER_DIRE
//APPEARANCE_TYPE_SPIDER_GIANT
//APPEARANCE_TYPE_SPIDER_PHASE
//APPEARANCE_TYPE_SPIDER_SWORD
//APPEARANCE_TYPE_SPIDER_WRAITH
//APPEARANCE_TYPE_STINGER
//APPEARANCE_TYPE_STINGER_CHIEFTAIN
//APPEARANCE_TYPE_STINGER_MAGE
//APPEARANCE_TYPE_STINGER_WARRIOR
//APPEARANCE_TYPE_SUCCUBUS
//APPEARANCE_TYPE_TROLL
//APPEARANCE_TYPE_TROLL_CHIEFTAIN
//APPEARANCE_TYPE_TROLL_SHAMAN
//APPEARANCE_TYPE_UMBERHULK
//APPEARANCE_TYPE_UTHGARD_ELK_TRIBE
//APPEARANCE_TYPE_UTHGARD_TIGER_TRIBE
//APPEARANCE_TYPE_VAMPIRE_FEMALE
//APPEARANCE_TYPE_VAMPIRE_MALE
//APPEARANCE_TYPE_VROCK
//APPEARANCE_TYPE_WAITRESS
//APPEARANCE_TYPE_WAR_DEVOURER
//APPEARANCE_TYPE_WERECAT
//APPEARANCE_TYPE_WERERAT
//APPEARANCE_TYPE_WEREWOLF
//APPEARANCE_TYPE_WIGHT
//APPEARANCE_TYPE_WILL_O_WISP
//APPEARANCE_TYPE_WRAITH
//APPEARANCE_TYPE_WYRMLING_BLACK
//APPEARANCE_TYPE_WYRMLING_BLUE
//APPEARANCE_TYPE_WYRMLING_BRASS
//APPEARANCE_TYPE_WYRMLING_BRONZE
//APPEARANCE_TYPE_WYRMLING_COPPER
//APPEARANCE_TYPE_WYRMLING_GOLD
//APPEARANCE_TYPE_WYRMLING_GREEN
//APPEARANCE_TYPE_WYRMLING_RED
//APPEARANCE_TYPE_WYRMLING_SILVER
//APPEARANCE_TYPE_WYRMLING_WHITE
//APPEARANCE_TYPE_YUAN_TI
//APPEARANCE_TYPE_YUAN_TI_CHIEFTEN
//APPEARANCE_TYPE_YUAN_TI_WIZARD
//APPEARANCE_TYPE_ZOMBIE
//APPEARANCE_TYPE_ZOMBIE_ROTTING
//APPEARANCE_TYPE_ZOMBIE_TYRANT_FOG
//APPEARANCE_TYPE_ZOMBIE_WARRIOR_1
//APPEARANCE_TYPE_ZOMBIE_WARRIOR_2
//SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_GOBLIN_A);
//Give Subrace Item
//change "resref" to the resref of the item
//add this items tag to the following scripts: "subraces_items"
//CreateItemOnObject("resref", oPC);
}
//////////////////ENDTRAITS/////////////////////////////
*/
}
////////////////////////////////////////////////////////////////////////////////
void SubraceRemoveEffect(object oSubraceCharacter, effect eSubraceEffect)
{
if((GetEffectCreator(eSubraceEffect) != GetModule()) && (GetEffectSubType(eSubraceEffect) != SUBTYPE_SUPERNATURAL))
{
RemoveEffect(oSubraceCharacter, eSubraceEffect);
}
}
////////////////////////////////////////////////////////////////////////////////
void RemoveEffectsSubrace(object oSubraceCharacter)
{
effect eFX = GetFirstEffect(oSubraceCharacter);
while(GetIsEffectValid(eFX))
{
RemoveEffect(oSubraceCharacter, eFX);
eFX = GetNextEffect(oSubraceCharacter);
}
}
////////////////////////////////////////////////////////////////////////////////
void UnSub(object oSubraceCharacter, effect eSubraceEffect)
{
if((GetEffectCreator(eSubraceEffect) == GetModule()) && (GetEffectSubType(eSubraceEffect) == SUBTYPE_SUPERNATURAL))
{
RemoveEffect(oSubraceCharacter, eSubraceEffect);
}
}
////////////////////////////////////////////////////////////////////////////////
void UnSubrace(object oSubraceCharacter)
{
effect eFX = GetFirstEffect(oSubraceCharacter);
while(GetIsEffectValid(eFX))
{
UnSub(oSubraceCharacter, eFX);
eFX = GetNextEffect(oSubraceCharacter);
}
}
////////////////////////////////////////////////////////////////////////////////
void SubraceRemoveEffects(object oSubraceCharacter)
{
RemoveEffectsSubrace(oSubraceCharacter);
object oItem = GetFirstItemInInventory(oSubraceCharacter);
while (GetIsObjectValid(oItem) == TRUE)
{
if(GetIsSubraceItem(oItem))
{
DestroyObject(oItem);
}
oItem = GetNextItemInInventory(oSubraceCharacter);
}
ApplySubrace(oSubraceCharacter);
}
////////////////////////////////////////////////////////////////////////////////
void SetSubraceItemString(object oPC, string strString)
{
if(GetIsPC(oPC) == TRUE)
{
int nSetAlready = FALSE;
int nLoop;
while(GetLocalString(oPC, "SUBRACEITEM" + IntToString(nLoop)) != "")
{
if(GetLocalString(oPC, "SUBRACEITEM" + IntToString(nLoop)) == (strString))
{
nSetAlready = TRUE;
}
nLoop++;
}
if(nSetAlready == FALSE)
{
SetLocalString(oPC, "SUBRACEITEM" + IntToString(nLoop), strString);
}
}
}
////////////////////////////////////////////////////////////////////////////////
void SubraceItemOnRest(object oPC)
{
int nLoop = 0;
while(GetLocalString(oPC, "SUBRACEITEM" + IntToString(nLoop)) != "")
{
string strCreate = GetLocalString(oPC, "SUBRACEITEM"+IntToString(nLoop));
CreateItemOnObject(strCreate, oPC, 1);
nLoop++;
}
}
////////////////////////////////////////////////////////////////////////////////
//void main(){}