guest598594 commented on a Page, Trivia  -  Jul 01, 2007

One thing doesnt work in this. When a new user begins to play, and they get their first question right, it says $nick has points. It says this because u increased the score AFTER it says their points. So make it like this.

instead of
msg %chan 12You Got It Right The Answer Was:4 $+(%answer,!)$+ $+(12,$nick)$+ Has %score [ $+ [ $nick ] ] Point(s)!
inc %score [ $+ [ $nick ] ]

make it
inc %score [ $+ [ $nick ] ]
msg %chan 12You Got It Right The Answer Was:4 $+(%answer,!)$+ $+(12,$nick)$+ Has %score [ $+ [ $nick ] ] Point(s)!

also, i added a feature to check other ppl\'s scores.
if ($1 == !score) {
if (%score [ $+ [ $nick ] ] == $null) && ( $2 == $null ) {
notice $nick You Have 0 Points
}
elseif (%score [ $+ [ $nick ] ] != $null) && ( $2 == $null ) {
notice $nick You Have %score [ $+ [ $nick ] ] Points!
}
elseif (%score [ $+ [ $2 ] ] == $null) && ( $2 != $null ) {
notice $nick $2 Has 0 Points
}
elseif (%score [ $+ [ $2 ] ] != $null) && ( $2 != $null ) {
notice $nick $2 Has %score [ $+ [ $2 ] ] Points!
}
}
}

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.