/tg/ Station 13 - Modules - TypesVar Details - Proc Details

slot_machine

Vars

iconsIcons that can be displayed by the slot machine.

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. If machine is set to use coins, will use the specified coin type. If throwit and target are set, will launch the payment at the target
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_payoutPay out the specified amount in either coins or holochips
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

icons

Icons that can be displayed by the slot machine.

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. If machine is set to use coins, will use the specified coin type. If throwit and target are set, will launch the payment at the target

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_payout

Pay out the specified amount in either coins or holochips

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