Files
Anphillia_PRC8/_module/nss/esm_spuserdef.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

33 lines
1.0 KiB
Plaintext

/************************************************************************
* script name : esm_spuserdef
* created by : eyesolated
* date : 2018/4/15
*
* description : The user defined Spell script for eyesolated spell macros
* This script needs to be defined as the user defined spell
* script on the module.
* Either you set the variable X2_S_UD_SPELLSCRIPT manually or
* call SetModuleOverrideSpellscript
*
* changes : 2018/4/15 - eyesolated - Initial creation
************************************************************************/
// Includes
#include "color_inc"
#include "eas_inc"
#include "esm_inc"
#include "prc_inc_spells"
void main()
{
object oPC = OBJECT_SELF;
int nSpell = GetSpellId();
int nMetaMagic = PRCGetMetaMagicFeat();
if (esm_IsRecording(oPC))
{
esm_AddSpell_Temporary_PC(oPC, nSpell, nMetaMagic);
SendMessageToPC(oPC, "Added [" + esm_GetSpellName(nSpell) + "] to macro.");
}
}