Using a piece of Snooop's coding in his Random Greet snippet that sets the variables for his random messaging I created this snippet to play a random song on start. I only coded it for three since I only had three songs I wanted it to choose from but more can easily be added. Simply replace the word filename with the title of the songs you want it to choose from.
Press alt+r and paste this into the remotes section of your Scripts Editor.
All comments are welcome.
P.S. I hope you don't mind that I used that piece of your coding Snooop. I will give you full credit for it in my script if you would like.
on *:START:{
var %rander = $rand(1,3)
if (%rander == 1) {
splay filename.mp3
}
if (%rander == 2) {
splay filename.mp3
}
if (%rander == 3) {
splay filename.mp3
}
}
Ty Teh Maestro but as I am self taught and still learning I only understand parts of the code you gave me and not all. But I appreciate the feedback and hope to submit better snippets that accomplish as much as possible with the least amount of code so please bear with me as I learn new ways to code. :P