PRC8/nwn/nwnprc/trunk/scripts/prc_hath_cohort.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

57 lines
1.9 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Summon Cohort
//:: Cohort
//:://////////////////////////////////////////////
/*
Summons a Rashemen Barbarian as a Hathran cohort
*/
//:://////////////////////////////////////////////
//:: Created By: Sir Attilla
//:: Created On: January 3 , 2004
//:: Modified By: Stratovarius, bugfixes.
//:://////////////////////////////////////////////
#include "prc_class_const"
void main()
{
effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_GATE);
string sSummon;
int i = 1;
object oHench = GetAssociate(ASSOCIATE_TYPE_HENCHMAN, OBJECT_SELF, i);
while (GetIsObjectValid(oHench))
{
if (GetStringLeft(GetResRef(oHench), 8) == "prc_hath_")
{
FloatingTextStringOnCreature("You already have a Rashemi Cohort", OBJECT_SELF, FALSE);
return;
}
i += 1;
oHench = GetAssociate(ASSOCIATE_TYPE_HENCHMAN, OBJECT_SELF, i);
}
int nClass = GetLevelByClass(CLASS_TYPE_HATHRAN, OBJECT_SELF);
if (nClass > 27) sSummon = "prc_hath_rash10";
else if (nClass > 24) sSummon = "prc_hath_rash9";
else if (nClass > 21) sSummon = "prc_hath_rash8";
else if (nClass > 18) sSummon = "prc_hath_rash7";
else if (nClass > 15) sSummon = "prc_hath_rash6";
else if (nClass > 12) sSummon = "prc_hath_rash5";
else if (nClass > 9) sSummon = "prc_hath_rash4";
else if (nClass > 6) sSummon = "prc_hath_rash3";
else if (nClass > 3) sSummon = "prc_hath_rash2";
else if (nClass > 0) sSummon = "prc_hath_rash";
object oCreature = CreateObject(OBJECT_TYPE_CREATURE, sSummon, GetSpellTargetLocation());
int nMaxHenchmen = GetMaxHenchmen();
SetMaxHenchmen(99);
AddHenchman(OBJECT_SELF, oCreature);
SetMaxHenchmen(nMaxHenchmen);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, GetSpellTargetLocation());
}