slot machine
Vars | |
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 |
Procs | |
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 |
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