byond - Modules - TypesVar Details - Proc Details

slot machine

Vars

balanceHow much money is in the machine, ready to be CONSUMED
iconsIcons that can be displayed by the slot machine.
jackpotsCounter of how many jackpots have been won so far
playsHow many times it has been rolled
prize_moneyHow much money it has CONSUMED
reelsThe current state of the reels
rollingWhether it is currently rolling

Procs

can_spinCheck if the machine can be spun
check_jackpotChecks for a jackpot (5 matching icons in the middle row) with the given icon name
dispenseDispense the given amount to the target if they are adjacent
get_linesFinds the largest number of consecutive matching icons in a row
give_moneyGive the specified amount of money. If the amount is greater than the amount of prize money available, add the difference as balance
give_prizesChecks if any prizes have been won, and pays them out
randomize_reelsRandomize the states of all reels
toggle_reel_spinSets the spinning states of all reels to value, with a delay between them
toggle_reel_spin_syncSame as toggle_reel_spin, but without the delay and runs synchronously

Var Details

balance

How much money is in the machine, ready to be CONSUMED

icons

Icons that can be displayed by the slot machine.

jackpots

Counter of how many jackpots have been won so far

plays

How many times it has been rolled

prize_money

How much money it has CONSUMED

reels

The current state of the reels

rolling

Whether it is currently rolling

Proc Details

can_spin

Check if the machine can be spun

check_jackpot

Checks for a jackpot (5 matching icons in the middle row) with the given icon name

dispense

Dispense the given amount to the target if they are adjacent

get_lines

Finds the largest number of consecutive matching icons in a row

give_money

Give the specified amount of money. If the amount is greater than the amount of prize money available, add the difference as balance

give_prizes

Checks if any prizes have been won, and pays them out

randomize_reels

Randomize the states of all reels

toggle_reel_spin

Sets the spinning states of all reels to value, with a delay between them

toggle_reel_spin_sync

Same as toggle_reel_spin, but without the delay and runs synchronously