I made some basic gambling games using powercards but it would require the creator of the game to have a pro subscription so that they could utilise the API: Roulette: !power {{
--emote|@{selected|token_name} tries their luck with the wheel.
--name|Roulette
--hroll|[[ [$type] ?{Wager Type?|Odd (x2),1|Even (x2),2|Red (x2),3|Green (x2),4|Specific Number (x35),5|1-12 (x3),6|13-24 (x3),7|25-36 (x3),8|0 (x50),9} +0d0]]
--?? $type.total == 1 ?? !choice1|**Choice:** Odd
--?? $type.total == 2 ?? !choice2|**Choice:** Even
--?? $type.total == 3 ?? !choice3|**Choice:** Red
--?? $type.total == 4 ?? !choice4|**Choice:** Green
--?? $type.total == 5 ?? !choice5|**Choice:** Number [[ [$num] ?{Which Number (1-36)?|1} + 0d0]]
--?? $type.total == 6 ?? !choice6|**Choice:** 1-12
--?? $type.total == 7 ?? !choice7|**Choice:** 13-24
--?? $type.total == 8 ?? !choice8|**Choice:** 25-36
--?? $type.total == 9 ?? !choice9|**Choice:** 0
--Wager|[[ [$bet] ?{How Much?|5} +0d0]]gp
--!spinemote|**Good luck ladies and gentlemen!**
--Result|[[ [$spin] 1d37cs3cs5cs7cs9cs11cs13cs15cs17cs19cs21cs23cs25cs27cs29cs31cs33cs35cf2cf4cf6cf8cf10cf12cf14cf16cf18cf20cf22cf24cf26cf28cf30cf32cf34cf36-1]]
--?? $type == 1 AND $spin % 2 ?? !loser1|**No win this time**
--?? $type == 2 AND $spin ~% 2 ?? !loser2|**No win this time**
--?? $type == 3 AND $spin % 2 ?? !loser3|**No win this time**
--?? $type == 4 AND $spin ~% 2 ?? !loser4|**No win this time**
--?? $type == 5 AND $spin <> $num ?? !loser5|**No win this time**
--?? $type == 6 AND $spin > 12 ?? !loser5|**No win this time**
--?? $type == 7 AND $spin < 13 OR $spin > 24 ?? !loser5|**No win this time**
--?? $type == 8 AND $spin < 25 ?? !loser5|**No win this time**
--?? $type == 9 AND $spin <> 0 ?? !loser5|**No win this time**
--?? $type == 1 AND $spin ~% 2 ?? !winner1|**You win** ^^ Your prize = [[ ?{How Much?}*2]]gp
--?? $type == 2 AND $spin % 2 ?? !winner2|**You win** ^^ Your prize = [[ ?{How Much?}*2]]gp
--?? $type == 3 AND $spin ~% 2 ?? !winner3|**You win** ^^ Your prize = [[ ?{How Much?}*2]]gp
--?? $type == 4 AND $spin % 2 ?? !winner4|**You win** ^^ Your prize = [[ ?{How Much?}*2]]gp
--?? $type == 5 AND $spin == $num ?? !winner5|**You win** ^^ Your prize = [[ ?{How Much?}*35]]gp
--?? $type == 6 AND $spin > 0 AND $spin <13 ?? !winner6|**You win** ^^ Your prize = [[ ?{How Much?}*3]]gp
--?? $type == 7 AND $spin > 12 AND $spin < 25 ?? !winner7|**You win** ^^ Your prize = [[ ?{How Much?}*3]]gp
--?? $type == 8 AND $spin > 24 ?? !winner8|**You win** ^^ Your prize = [[ ?{How Much?}*3]]gp
--?? $type == 9 AND $spin == 0 ?? !winner9|**You win** ^^ Your prize = [[ ?{How Much?}*50]]gp
}} In Between !power {{
--emote|@{selected|token_name} tries their luck at the ‘In Between’ table
--name|In Between
--leftsub|Odds
--rightsub|5/2
--Rules|Centre die must be between the outer rolls. Ties lose. If the outer rolls match you lose.
--Wager|[[ [$bet] ?{How Much?|5} + 0d0]]gp
--!blurb|**Come on for papa!!!**
--Rolls|[[ [$r1] 1d20cs>21cf>1]] • [[ [$r2] 1d20cs>1cf>1]] • [[ [$r3] 1d20cs>21cf>1]]
--?? $r2 < $r3 AND $r2 > $r1 AND $r1 <> $r3 ?? Winner!|Your winnings: [[floor(?{How Much?}*5/2)]]gp
--?? $r2 > $r3 AND $r2 < $r1 AND $r1 <> $r3 ?? Winner!|Your winnings: [[floor(?{How Much?}*5/2)]]gp
--?? $r1 == $r3 OR $r2 == $r1 OR $r2 == $r3 ?? Loser!|Better luck next time
}} Slot Machine: !power {{
--emote|@{selected|token_name} tries their luck on the slot machine.
--name|Slot Machine
--Wager|[[?{How Much?|5} + 0d0]]gp
--!stuff|You pull the handle and stand back as the clockwork ticks away inside. ^^ Eventually the reels stop, one by one:
--Result|[[ [$r1] 1d8 ]] | [[ [$r2] 1d8 ]] | [[ [$r3] 1d8 ]]
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 1 ?? !win1|**Ding Ding Ding** ^^ You win [[?{How Much?}*2]]gp
--?? $r1 == 6 AND $r2 == 1 AND $r3 == 6 ?? !win1a|**Ding Ding Ding** ^^ You win [[?{How Much?}*2]]gp
--?? $r1 == 1 AND $r2 == 6 AND $r3 == 6 ?? !win1b|**Ding Ding Ding** ^^ You win [[?{How Much?}*2]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 2 ?? !win2|**Ding Ding Ding** ^^ You win [[?{How Much?}*3]]gp
--?? $r1 == 6 AND $r2 == 2 AND $r3 == 6 ?? !win2a|**Ding Ding Ding** ^^ You win [[?{How Much?}*3]]gp
--?? $r1 == 2 AND $r2 == 6 AND $r3 == 6 ?? !win2b|**Ding Ding Ding** ^^ You win [[?{How Much?}*3]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 3 ?? !win3|**Ding Ding Ding** ^^ You win [[?{How Much?}*4]]gp
--?? $r1 == 6 AND $r2 == 3 AND $r3 == 6 ?? !win3a|**Ding Ding Ding** ^^ You win [[?{How Much?}*4]]gp
--?? $r1 == 3 AND $r2 == 6 AND $r3 == 6 ?? !win3b|**Ding Ding Ding** ^^ You win [[?{How Much?}*4]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 4 ?? !win4|**Ding Ding Ding** ^^ You win [[?{How Much?}*5]]gp
--?? $r1 == 6 AND $r2 == 4 AND $r3 == 6 ?? !win4a|**Ding Ding Ding** ^^ You win [[?{How Much?}*5]]gp
--?? $r1 == 4 AND $r2 == 6 AND $r3 == 6 ?? !win4b|**Ding Ding Ding** ^^ You win [[?{How Much?}*5]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 5 ?? !win5|**Ding Ding Ding** ^^ You win [[?{How Much?}*6]]gp
--?? $r1 == 6 AND $r2 == 5 AND $r3 == 6 ?? !win5a|**Ding Ding Ding** ^^ You win [[?{How Much?}*6]]gp
--?? $r1 == 5 AND $r2 == 6 AND $r3 == 6 ?? !win5b|**Ding Ding Ding** ^^ You win [[?{How Much?}*6]]gp
--?? $r1 == 1 AND $r2 == 1 AND $r3 == 1 ?? !win8|**Ding Ding Ding** ^^ You win [[?{How Much?}*4]]gp
--?? $r1 == 2 AND $r2 == 2 AND $r3 == 2 ?? !win9|**Ding Ding Ding** ^^ You win [[?{How Much?}*8]]gp
--?? $r1 == 3 AND $r2 == 3 AND $r3 == 3 ?? !win10|**Ding Ding Ding** ^^ You win [[?{How Much?}*10]]gp
--?? $r1 == 4 AND $r2 == 4 AND $r3 == 4 ?? !win11|**Ding Ding Ding** ^^ You win [[?{How Much?}*12]]gp
--?? $r1 == 5 AND $r2 == 5 AND $r3 == 5 ?? !win12|**Ding Ding Ding** ^^ You win [[?{How Much?}*24]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 6 ?? !win13|**JACKPOT** ^^ You win [[?{How Much?}*36]]gp
}} Zowie Slots: !power {{
--emote|@{selected|token_name} tries their luck on the big slot machine.
--name|Zowie Slot Machine
--Wager|[[?{How Much?|5} + 0d0]]gp
--!stuff|You pull the big handle and stand back as the clockwork ticks away inside. ^^ Eventually the reels stop, one by one:
--Result|[[ [$r1] 1d8 ]] | [[ [$r2] 1d8 ]] | [[ [$r3] 1d8 ]]
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 1 ?? !win1|**Ding Ding Ding** ^^ You win [[?{How Much?}*2]]gp
--?? $r1 == 6 AND $r2 == 1 AND $r3 == 6 ?? !win1a|**Ding Ding Ding** ^^ You win [[?{How Much?}*2]]gp
--?? $r1 == 1 AND $r2 == 6 AND $r3 == 6 ?? !win1b|**Ding Ding Ding** ^^ You win [[?{How Much?}*2]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 2 ?? !win2|**Ding Ding Ding** ^^ You win [[?{How Much?}*4]]gp
--?? $r1 == 6 AND $r2 == 2 AND $r3 == 6 ?? !win2a|**Ding Ding Ding** ^^ You win [[?{How Much?}*4]]gp
--?? $r1 == 2 AND $r2 == 6 AND $r3 == 6 ?? !win2b|**Ding Ding Ding** ^^ You win [[?{How Much?}*4]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 3 ?? !win3|**Ding Ding Ding** ^^ You win [[?{How Much?}*6]]gp
--?? $r1 == 6 AND $r2 == 3 AND $r3 == 6 ?? !win3a|**Ding Ding Ding** ^^ You win [[?{How Much?}*6]]gp
--?? $r1 == 3 AND $r2 == 6 AND $r3 == 6 ?? !win3b|**Ding Ding Ding** ^^ You win [[?{How Much?}*6]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 4 ?? !win4|**Ding Ding Ding** ^^ You win [[?{How Much?}*8]]gp
--?? $r1 == 6 AND $r2 == 4 AND $r3 == 6 ?? !win4a|**Ding Ding Ding** ^^ You win [[?{How Much?}*8]]gp
--?? $r1 == 4 AND $r2 == 6 AND $r3 == 6 ?? !win4b|**Ding Ding Ding** ^^ You win [[?{How Much?}*8]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 5 ?? !win5|**Ding Ding Ding** ^^ You win [[?{How Much?}*10]]gp
--?? $r1 == 6 AND $r2 == 5 AND $r3 == 6 ?? !win5a|**Ding Ding Ding** ^^ You win [[?{How Much?}*10]]gp
--?? $r1 == 5 AND $r2 == 6 AND $r3 == 6 ?? !win5b|**Ding Ding Ding** ^^ You win [[?{How Much?}*10]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 7 ?? !win6|**Ding Ding Ding** ^^ You win [[?{How Much?}*12]]gp
--?? $r1 == 6 AND $r2 == 7 AND $r3 == 6 ?? !win6a|**Ding Ding Ding** ^^ You win [[?{How Much?}*12]]gp
--?? $r1 == 7 AND $r2 == 6 AND $r3 == 6 ?? !win6b|**Ding Ding Ding** ^^ You win [[?{How Much?}*12]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 8 ?? !win7|**Ding Ding Ding** ^^ You win [[?{How Much?}*15]]gp
--?? $r1 == 6 AND $r2 == 8 AND $r3 == 6 ?? !win7a|**Ding Ding Ding** ^^ You win [[?{How Much?}*15]]gp
--?? $r1 == 8 AND $r2 == 6 AND $r3 == 6 ?? !win7b|**Ding Ding Ding** ^^ You win [[?{How Much?}*15]]gp
--?? $r1 == 1 AND $r2 == 1 AND $r3 == 1 ?? !win8|**Ding Ding Ding** ^^ You win [[?{How Much?}*8]]gp
--?? $r1 == 2 AND $r2 == 2 AND $r3 == 2 ?? !win9|**Ding Ding Ding** ^^ You win [[?{How Much?}*12]]gp
--?? $r1 == 3 AND $r2 == 3 AND $r3 == 3 ?? !win10|**Ding Ding Ding** ^^ You win [[?{How Much?}*14]]gp
--?? $r1 == 4 AND $r2 == 4 AND $r3 == 4 ?? !win11|**Ding Ding Ding** ^^ You win [[?{How Much?}*16]]gp
--?? $r1 == 5 AND $r2 == 5 AND $r3 == 5 ?? !win12|**Ding Ding Ding** ^^ You win [[?{How Much?}*20]]gp
--?? $r1 == 6 AND $r2 == 6 AND $r3 == 6 ?? !win13|**Ding Ding Ding** ^^ You win [[?{How Much?}*24]]gp
--?? $r1 == 7 AND $r2 == 7 AND $r3 == 7 ?? !win14|**JACKPOT** ^^ You win [[?{How Much?}*50]]gp
--?? $r1 == 8 AND $r2 == 8 AND $r3 == 8 ?? !win15|**ZOWIE!!!** ^^ You win [[?{How Much?}*100]]gp
}} Wheel of fortune: !power {{
--emote|@{selected|token_name} spins the wheel.
--name|Wheel of Fortune
--hroll|[[ [$type] 1d20]]
--Cost|[[ [$bet] 100 +0d0]]gp
--!spinemote|**Round and round she goes, where she stops, nobody knows!**
--?? $type.total == 1 ?? !choice1|**Result:** Spin the Wheel of Misfortune 5 Times!!!!!
--?? $type.total == 2 ?? !choice2|**Result:** Spin the Wheel of Misfortune 4 Times!!!!
--?? $type.total == 3 ?? !choice3|**Result:** Spin the Wheel of Misfortune 3 Time!!!
--?? $type.total == 4 ?? !choice4|**Result:** Spin the Wheel of Misfortune 2 Time!!
--?? $type.total == 5 ?? !choice5|**Result:** Spin the Wheel of Misfortune 1 Time!
--?? $type.total == 6 ?? !choice6|**Result:** Better luck next time
--?? $type.total == 7 ?? !choice7|**Result:** 25 gp win
--?? $type.total == 8 ?? !choice8|**Result:** 50 gp win
--?? $type.total == 9 ?? !choice9|**Result:** 75 gp win
--?? $type.total == 10 ?? !choice10|**Result:** Admission price returned
--?? $type.total == 11 ?? !choice11|**Result:** Empowerment! (+2 STR for 1 week)
--?? $type.total == 12 ?? !choice12|**Result:** Enlightenment! (+2 WIS for 1 week)
--?? $type.total == 13 ?? !choice13|**Result:** Congratulations 500 gp win
--?? $type.total == 14 ?? !choice14|**Result:** Congratulations 1.000 gp win
--?? $type.total == 15 ?? !choice15|**Result:** FREE SPIN
--?? $type.total == 16 ?? !choice16|**Result:** Enchantment! (+2 CHA for 1 week)
--?? $type.total == 17 ?? !choice17|**Result:** Enlargement! (+1 size category for 1 week)
--?? $type.total == 18 ?? !choice18|**Result:** Congratulations 2.000 gp win
--?? $type.total == 19 ?? !choice19|**Result:** Congratulations 5.000 gp win
--?? $type.total == 20 ?? !choice20|**Result:** JACKPOT ~25,000 gp~ JACKPOT
}} Wheel of misfortune: !power {{
--emote|@{selected|token_name} discovers their punishment.
--name|Wheel of Misfortune
--hroll|[[ [$type] 1d10]]
--!spinemote|**May the Gods have mercy on your soul!**
--?? $type.total == 1 ?? !choice1|**Result:** Shrunken Head (-1 size category for 1 week)
--?? $type.total == 2 ?? !choice2|**Result:** Cursed Soul (-1 to attack and damage for 1 week)
--?? $type.total == 3 ?? !choice3|**Result:** Greased Palms (25% chance to drop held items each round for 1 week)
--?? $type.total == 4 ?? !choice4|**Result:** 2,000 gp penalty
--?? $type.total == 5 ?? !choice5|**Result:** Enfeeblement (-2 STR for 1 week)
--?? $type.total == 6 ?? !choice6|**Result:** Entrapment (-2 DEX for 1 week)
--?? $type.total == 7 ?? !choice7|**Result:** 1,000 gp penalty
--?? $type.total == 8 ?? !choice8|**Result:** Personal Anti-Magic Field (Magic and magic items will not work for you for 1 week nor can you be affected by magic)
--?? $type.total == 9 ?? !choice9|**Result:** Bad Breath (-2 to skills involving talking to others for 1 week)
--?? $type.total == 10 ?? !choice10|**Result:** Divine intervention, no effect this time.
}} High v Low: !power {{
--emote|@{selected|token_name} tries their luck at the ‘In Between’ table
--name|High vs Low
--leftsub|[[ [$roll] ?{How Many Dice|1,2,3} + 0d0 ]]
--rightsub|[[?{How Many Dice}+1]]x Payout
--Rules|Highest Total Wins. Ties Lose.
--Wager|[[ [$bet] ?{How Much?|5} + 0d0]]gp
--!blurb|**Roll the Bones!!!**
--Rolls|[[ [$r1] [[?{How Many Dice}]]d6 ]] • [[ [$r2] [[?{How Many Dice}]]d6 ]]
--?? $r1 > $r2 ?? Winner!|Your winnings: [[?{How Much?}*[[?{How Many Dice}+1]] ]]gp
--?? $r1 == $r2 OR $r2 > $r1 ?? Loser!|Better luck next time.
}} Find the lady (setup for use with the 3.5e sheet): !power {{
--emote|@{selected|token_name} watches closely as the dealer swaps the cards time and time again...
--name|Find the Lady
--Wager|[[?{How Much?|5} + 0d0]]gp
--!blurb|The dealers hands flash through a well practiced routine, with a deep breath you point to the card you believe to be ‘The Lady’
--hrolls|[[ [$res] 1d20 + @{selected|spot} ]] [[ [$tar] 1d20 + 7 ]]
--?? $res >= $tar ?? Win!|You find the lady and win [[?{How Much?}*2]]gp
--?? $res < $tar ?? Lose|The lady eludes you this time.
}}