PRC8/nwn/nwnprc/trunk/scripts/prc_shou_flryall.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

36 lines
1.3 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Shou Disciple - Martial Flurry All
//:://////////////////////////////////////////////
/*
This is the spell cast on the Shou to apply the effects
*/
//:://////////////////////////////////////////////
//:: Created By: Stratovarius
//:: Created On: March 4, 2006
//:://////////////////////////////////////////////
#include "prc_alterations"
void main()
{
string nMesA = "";
object oPC = PRCGetSpellTargetObject();
//check armor type
if(GetArmorType(GetItemInSlot(INVENTORY_SLOT_CHEST, oPC)) < ARMOR_TYPE_MEDIUM)
{
if(GetLevelByClass(CLASS_TYPE_SHOU, oPC) > 4 && isNotShield(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC))
&& !(GetLevelByClass(CLASS_TYPE_MONK, oPC) && GetBaseItemType(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC)) == BASE_ITEM_KAMA))
{
effect eLinkA = EffectLinkEffects(EffectModifyAttacks(1), EffectAttackDecrease(2));
eLinkA = SupernaturalEffect(eLinkA);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLinkA, oPC);
nMesA = "*Martial Flurry Activated*";
}
else
nMesA = "*Invalid Weapon. Ability Not Activated!*";
}
else
nMesA = "*Your armour is to heavy to use this ability*";
FloatingTextStringOnCreature(nMesA, oPC, FALSE);
}