PRC8/nwn/nwnprc/trunk/newspellbook/tob_swd_recover.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
841 B
Plaintext

/*
Recover all swordsage maneuvers
Only functions in combat, otherwise call delayed recovery
*/
#include "tob_inc_tobfunc"
#include "inc_dynconv"
#include "x0_i0_modes"
void main()
{
object oInitiator = OBJECT_SELF;
if (GetIsInCombat(oInitiator))
{
int nStealth = FALSE;
if(GetStealthMode(oInitiator) == STEALTH_MODE_ACTIVATED) nStealth = TRUE;
AssignCommand(oInitiator, ClearAllActions(TRUE));
StartDynamicConversation("tob_swd_rcrcnv", oInitiator, DYNCONV_EXIT_NOT_ALLOWED, FALSE, TRUE, oInitiator);
if (nStealth)
{
SetActionMode(oInitiator, ACTION_MODE_STEALTH, TRUE);
UseStealthMode();
ActionUseSkill(SKILL_HIDE, oInitiator);
ActionUseSkill(SKILL_MOVE_SILENTLY, oInitiator);
}
}
else
{
// Delayed Recovery Mechanics
ExecuteScript("tob_gen_recover", oInitiator);
}
}