Miscellany
public text v1 · immutableon *:TEXT:!dice:#:{
set %dice1 $rand(1,6)
set %dice2 $rand(1,6)
if (%dice1 == 1 && %dice2 == 1) {
msg $chan Snake-eyes! (1 and 1)
}
else {
msg $chan You have rolled a %dice1 and a %dice2
}
}on *:TEXT:!dice:#:{
set %dice1 $rand(1,6)
set %dice2 $rand(1,6)
if (%dice1 == 1 && %dice2 == 1) {
msg $chan Snake-eyes! (1 and 1)
}
else {
msg $chan You have rolled a %dice1 and a %dice2
}
}