Coin-Cup Guess

By `Node_ on Mar 09, 2004

This is a simple game where you have to guess which cup the coin is under. Copy and paste the following into your remotes section. To access the script after you have copied and pasted it, right-click the middle of a channel and click on 'Coin-Cup Guess'.

menu channel { 
Coin-Cup Guess { dialog -m ccg ccg } } 

dialog ccg { 
title "Coin-Cup Guess" 
size -1 -1 203 31 
option dbu 
edit "", 1, 4 4 196 10 
button "New Game", 2, 2 17 37 12 
button "Quit", 3, 43 17 37 12 
button "Cup 1", 4, 84 17 37 12 
button "Cup 2", 5, 124 17 37 12 
button "Cup 3", 6, 164 17 37 12 
} 
on *:dialog:ccg:sclick:*:{ 
if ($did == 2) { 
set %score 0 
set %cup $rand(1,3) 
set %right 0 
set %wrong 0 
did -i ccg 1 1 I have shuffled the cups, take a guess! 
} 
if ($did == 3) { dialog -x ccg | unset %score | unset %cup | unset %right | unset %wrong } 
if ($did == 4) { 
var %guess 1 
if (%guess == %cup) { 
inc %score 2.5 
inc %right 1 
did -i ccg 1 1 You have guessed right! Wins: %right Losses: %wrong Score: %score 
set %cup $rand(1,3) 
halt 
} 
else { 
dec %score 2 
inc %wrong 1 
did -i ccg 1 1 You have guessed wrong! Wins: %right Losses: %wrong Score: %score 
set %cup $rand(1,3) 
halt 
} 
} 
if ($did == 5) { 
var %guess 2 
if (%guess == %cup) { 
inc %score 2.5 
inc %right 1 
did -i ccg 1 1 You have guessed right! Wins: %right Losses: %wrong Score: %score 
set %cup $rand(1,3) 
halt 
} 
else { 
dec %score 2 
inc %wrong 1 
did -i ccg 1 1 You have guessed wrong! Wins: %right Losses: %wrong Score: %score 
set %cup $rand(1,3) 
halt 
} 
} 
if ($did == 6) { 
var %guess 3 
if (%guess == %cup) { 
inc %score 2.5 
inc %right 1 
did -i ccg 1 1 You have guessed right! Wins: %right Losses: %wrong Score: %score 
set %cup $rand(1,3) 
halt 
} 
else { 
dec %score 2 
inc %wrong 1 
did -i ccg 1 1 You have guessed wrong! Wins: %right Losses: %wrong Score: %score 
set %cup $rand(1,3) 
halt 
} 
} 
}

Comments

Sign in to comment.
StarFirefly26   -  Jun 23, 2004

Useless, but entertaining nontheless. Gives me somthing to do during slow talk times in a channel.

 Respond  
StarFirefly26   -  Jun 23, 2004

Remotes.

 Respond  
ShowstoppeR   -  May 20, 2004

Where will i put this stuff anyway?

 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.