ES_PRC8/_module/nss/ew_spellchecko.nss
Jaysyn904 08e84b4e71 Initial upload
Initial upload.
2023-11-14 12:09:02 -05:00

16 lines
483 B
Plaintext

void main()
{
object oPC = GetLastSpeaker();
int nRoll=d20();
int nRank=GetSkillRank (SKILL_SPELLCRAFT, oPC);
int nResult=nRoll+nRank;
string sRoll=IntToString(nRoll);
string sRank=IntToString(nRank);
string sResult=IntToString(nResult);
string sAbility="SpellCraft";
AssignCommand( oPC, ActionPlayAnimation (ANIMATION_LOOPING_GET_MID, 3.0, 3.0));
AssignCommand( oPC, SpeakString(sAbility+" Check, Roll: "+sRoll+" Modifier: "+sRank+" = "+sResult));
}