SRL Archive - Other Scripts

Slots, anyone?


Jason2gs

2007-05-13 15:29:56

I'm very new to forms, but I think I did an OK job on this.

In short, it's a game of slots.

Pear
Apple
Peach

If you get three Pears, you're a very lucky person. That's quite rare.
Three Apples is less, because you have more of a chance of getting them.
Likewise with Peach. Peach has the highest odds.

You don't get very much if you strike two of something, and you get less each fruit down. Just like three in a row.

Three in a row:

Pear = 50
Apple = 25
Peach = 10

Two in a row:

Pear = 10
Apple = 5
Peach = 3

If you don't care for the odds, feel free to adjust them. If you know how to script, you should know how to fairly well.

Edit: It seems to have a small bug in it. When you lose, you'll sometimes have to click "Play again?" multiple times before it takes. Not sure how to fix it. (Forms are kinda confusing :))

stupedspam

2007-05-13 15:40:43

Cool game :D, maybe you could add some bitmaps o make it look more like slots…I don't know how to do that but I'm sure there's someone out there that does :)

~Stupedspam

Jason2gs

2007-05-13 15:46:13

Really? I kinda like the green. Makes it look kinda casinoish :p

(You know, that green carpet-like/felt-like stuff they cover the tables with?)

stupedspam

2007-05-13 15:51:39

Yea, I ment like to make it look more like a slot macine with the pull bar and the spinning things… just an idea kinda like what sKy Scripter does :D

~Stupedspam

Jason2gs

2007-05-13 15:58:46

Ahh, got it ;)

I might later. When I learn how to do images in forms.

New version attached. The first one was a wee bit broken :p

Smartzkid

2007-05-13 18:19:33

Fixed the bug:

replace line 87 to this:

   if(strtoint(Label6.Caption) <= 0)then //You were comparing strings here

Jason2gs

2007-05-13 18:26:17

Oooh, thanks for that, Smartz :p