Script for twitch - 20/02/15 08:12 PM
Hello
Cookies are a currency I award on my channel for the viewers that spend time there, and one of the usage of those cookies are that users can scare me via commands, and pay for that with said cookies. I have a script that should do that, and for some reason it doesn't. The script is supposed to take 5 cookies away from the user when he/she uses the !scarewave1 command, or tell them they don't have enough cookies if they have less than 5. Any help would be greatly appreciated, as this is already bugging me out to extreme extents.
Cookies are a currency I award on my channel for the viewers that spend time there, and one of the usage of those cookies are that users can scare me via commands, and pay for that with said cookies. I have a script that should do that, and for some reason it doesn't. The script is supposed to take 5 cookies away from the user when he/she uses the !scarewave1 command, or tell them they don't have enough cookies if they have less than 5. Any help would be greatly appreciated, as this is already bugging me out to extreme extents.
Code:
on *:TEXT:!scaryWave1 :#:{ var %topic = $+(#,.,$nick) var %cookies = $readini(Points.ini,%topic,Points) var %final = 5 var %remove = %cookies - %final if (%remove > 4) { writeini -n Points.ini %topic Points %remove splay C:\Users\Marian\Desktop\Stream Images\StreamScary\ScaryWave1.mp3 } if (%remove < 5) { msg $chan Sorry $nick $+ , but you need at least 5 cookies to scare me. } }