obj/Card2
icon='Cards.dmi'
icon_state="b"
Click()
usr<< pick(
prob(65)
"You lose!"
usr.losr+=1,
This is basically what I want.
ID:147106
Sep 20 2004, 3:27 am (Edited on Sep 20 2004, 3:37 am)
|
|
I have no problem with the prob proc but what i am having a problem with is adding a var in.
obj/Card2 This is basically what I want. |
In response to Hanns
|
|
Oh ok thanks.I did'nt find this one in the reference.
|
very simple, I think this should do it...
obj/Card2
icon='Cards.dmi'
icon_state="b"
Click()
var/chance = rand(1,5)//1 out of 5 chance
if(chance!=1)
usr <<"You lose!"
usr.losr+=1
else
//if chanced correctly