PWE_PRC8/_module/nss/ew_d4roll.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

12 lines
320 B
Plaintext

void main()
{
object oPC = GetLastSpeaker();
int nRoll=d4();
string sName = GetName(oPC);
string sRoll=IntToString(nRoll);
AssignCommand( oPC, ActionPlayAnimation (ANIMATION_LOOPING_GET_MID, 3.0, 3.0));
DelayCommand( 2.0, AssignCommand( oPC, SpeakString(sName+" rolled a d4 and gets a: "+sRoll)));
}