LoD_PRC8/_module/nss/ew_chachecko.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

16 lines
487 B
Plaintext

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