PRC8_fork/nwn/nwnprc/trunk/scripts/acp_s3_diffstyle.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

33 lines
1.1 KiB
Plaintext

/////////////////////////////////////////////////
// ACP_S3_diffstyle
// Author: Ariel Kaiser
// Creation Date: 13 May 2005
////////////////////////////////////////////////
/*
In combination with the right feat.2da and spells.2da entries, this script
allows a player (or possessed NPC with the right feat, I guess) to change
their fighting style and trade it for different animations. Part of the ACP pack.
*/
#include "inc_acp"
void main()
{
if (GetLocalInt(OBJECT_SELF, sLock)) //Feat is still locked? Bad user!
{
SendMessageToPC(OBJECT_SELF, "You need to wait at least 90 seconds before using this feat again.");
return;
}
int nSpellID = GetSpellId();
if(nSpellID == 2282) // Normal/Reset
ResetFightingStyle();
else if(nSpellID == 2278) // Kensai
SetCustomFightingStyle(PHENOTYPE_KENSAI);
else if(nSpellID == 2279) // Assassin
SetCustomFightingStyle(PHENOTYPE_ASSASSIN);
else if(nSpellID == 2280) // Heavy
SetCustomFightingStyle(PHENOTYPE_BARBARIAN);
else if(nSpellID == 2281) // Fencing
SetCustomFightingStyle(PHENOTYPE_FENCING);
}