ID:148868
 
obj/Dice
icon='turfs.dmi'
icon_state="Smachine"
density = 1
verb
Play_Dice()
set category = "Play Dice"
set src in oview(1)
var/Dice = (input("", "Dice") in list ("1","2","3","4","5","6"))
var/pick = pick(0,1,2,3,4,5,6)
if(Dice == pick)
usr << "you win!"
if(Dice >> pick)
usr << "you do not win!"
if(Dice << pick)
usr << "you do not win!"
Nunugi wrote:
obj/Dice
icon='turfs.dmi'
icon_state="Smachine"
density = 1
verb
Play_Dice()
set category = "Play Dice"
set src in oview(1)
var/Dice = (input("", "Dice") in list ("1","2","3","4","5","6"))
var/pick = pick(0,1,2,3,4,5,6)
if(Dice == pick)
usr << "you win!"
if(Dice >> pick)
usr << "you do not win!"
if(Dice << pick)
usr << "you do not win!"

Look up >> and << in the reference(the one here or in Dream Maker-F1).

What you are looking for is probably one of these:
<code> Dice > pick // if Dice is over pick Dice >= pick // if Dice is over, or equal to pick Dice < pick // if Dice is under pick Dice <= pick // if Dice is under, or equal to pick </code>

Alathon\\
In response to Alathon
no that did not work
In response to Nunugi
Nunugi wrote:
no that did not work

It wasn't intended for you to copy paste. It was meant to replace what was inside the if() statements, and for you to look them up.

Another thing: You are comparing a text string to a number. Change the input so that the numbers don't have quotes around them.

Alathon\\