User Tools

Site Tools


builders:slotmachine

Slot Machine Class

This class replaces the slot machine server plugin. You can convert a plugin-based slot machine by using the fiddle to change the classNumber to 210. The defaults for the class based machine match the plugin based machine.

On creating a slot machine, you will see a new “Configure” option.

Stake The amount charged per play
Menu The menu entry to play a game. If left blank, the default is “Play Slots(stakeT)“
Reels Each reel consists of a variable length sequence of up to ten different symbols. Use digits 0-9 to indicate which symbol is present at each point around the circumference of the reel. Symbols may appear more than once. Reels do not have to have the same number of symbols.
Reward Matrix List the three symbols (0-9 or * for “any”) required to win, and the token reward OR a prize number. Each line displays the odds of winning that reward, based on the symbols required and the sequences on the reels.

Press “Save” once you are happy, and before you press “Prizes”

Prizes screen
This allows you to load (and unload) non-token prizes!

Images
The machine should have an image with three slots for the reels. The reels may have their own imageURL which should have the individual symbols in chores 2-11. Chores 12-14 should have spinning animations.

builders/slotmachine.txt · Last modified: 2023/02/12 08:18 by amanda