#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))); } }