Amon_PRC8/_module/nss/di_pz2init.nss

21 lines
675 B
Plaintext
Raw Normal View History

2025-04-03 19:00:46 -04:00
#include "di_include"
void main()
{
string sSeedString = GetLocalString(OBJECT_SELF, "seedstring");
string sSoundString = GetLocalString(OBJECT_SELF, "soundstring");
if(sSeedString == "")
{
sSeedString = di_ShuffleString("123456");
SetLocalString(OBJECT_SELF, "seedstring", sSeedString);
sSoundString = di_ShuffleString("1234567890ABCDEFG");
SetLocalString(OBJECT_SELF, "soundstring", sSoundString);
SetLocalString(OBJECT_SELF, "sDisabled", IntToString(d6()));
}
int x;
for(x=1; x<=6; x++)
{
DelayCommand(IntToFloat(x * 2), di_PlaySound(GetSubString(sSoundString, x - 1, 1)));
}
}