Coing Flipping Script Version 1 Author: Fenris (asouza@fantasia.org) Created: 7-2-98 Location: ON OUTCHAT Syntax: flip coin Note: Requires the "coin" sound to be had by each person intended to hear the sound. In many cases this means each person in the room. As to how you distribute the sound, well that's up to you. May be used as a room script if placed in an ON OUTCHAT block.
Code:
{
10 RANDOM 1 + coin =
{ "heads" side = } { "tails" side = } coin 6 >= IFELSE
"@)coin " USERNAME & " flips up a shiny coin, and gets " & side & "." & ROOMMSG
"" CHATSTR =
} CHATSTR "flip coin" == IF