mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 08:57:16 -05:00
Further file organization
Further file organization
This commit is contained in:
30
nwn/nwnprc/trunk/scripts/prc_frtrgr_punch.nss
Normal file
30
nwn/nwnprc/trunk/scripts/prc_frtrgr_punch.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Frostrager - One-Two Punch
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Gives and removes extra attack from PC
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Stratovarius
|
||||
//:: Created On: Sep 4, 2018
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
string sMes = "";
|
||||
|
||||
if(!GetHasSpellEffect(SPELL_ONETWO_PUNCH))
|
||||
{
|
||||
ActionCastSpellOnSelf(SPELL_ONETWO_PUNCH);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Removes effects
|
||||
PRCRemoveEffectsFromSpell(OBJECT_SELF, SPELL_ONETWO_PUNCH);
|
||||
|
||||
// Display message to player
|
||||
sMes = "One-Two Punch Deactivated";
|
||||
}
|
||||
FloatingTextStringOnCreature(sMes, OBJECT_SELF, FALSE);
|
||||
}
|
||||
Reference in New Issue
Block a user