Universal Rumble Slot Notifier

This is a rumble script. It tells you what slot you're on by rumble. You don't need to remember what slot you were on anymore. Please enjoy - Token
Version1.00
Authortoken
Publish DateThu, 24 Apr 2014 - 00:01
Last UpdateThu, 24 Apr 2014 - 00:01
Downloads73
RATE


2

0

Code: Select all
define Interval = 500; // Change this number to change the pause time between each rumble.
int Vibration = 100; // Change this number to change the vibration intensity.
int Slot_Loop;
int Slot;
int Time = Interval;
int Reset = FALSE
int Reset_Timer = 1;
init{Slot_Loop = get_pvar(PVAR_11,1,10,0);}
main {
Time = Time - get_rtime();
Slot = get_slot();
if(Reset_Timer > 0) {Reset_Timer = Reset_Timer - get_rtime();}
if(Slot_Loop > get_slot()) {set_pvar(PVAR_11, 0);Slot_Loop = 0;}
if(Reset_Timer == -9 && get_pvar(PVAR_11,1,10,0) == get_slot()) {Reset = TRUE; Reset_Timer = 5000;}
else if(Reset_Timer == 0 && get_pvar(PVAR_11,1,10,0) == get_slot()){set_pvar(PVAR_11, 0);}
if(Slot_Loop != Slot && Time <= 0 && Reset == FALSE){combo_restart(RumbleGo); Slot_Loop = Slot_Loop + 1; Time = Time + Interval*2; set_pvar(PVAR_11, Slot_Loop);}
}
combo RumbleGo {
set_rumble(RUMBLE_A, Vibration);   
wait(Interval);     
set_rumble(RUMBLE_A, 0);   
wait(Interval);     
}