So I found a video by Nick Olivo Creating Games of Chance in Roll20 in the video he linked to an old forum post Gambling Roller of Macros and I liked the concept and wanted to use it, but I've never used power cards before and the post is over 6 years old so they almost work but not really. The problem might be that I'm using the Ogl sheet too. So I was wondering if anyone could take a look and help me out. So here are the problems Roulette: if you pick to place your bets on odds for example it then still forces you to pick a number 1-36 so even if it lands on odds if it isn't the number it forced you picked you still loose. Now picking a number 1-36 should be one of the bets you can make but it forces you to pick one no matter what else you pick. Both Slot Machines: work just fine except that if you win it doesn't give you the win message or show you what you won. Find the Lady: You never win tried it a bunch of time on a pc with 13 precp bonus and he losses every time In Between: You win no matter what the rolls are High vs Low: Back to never winning no mater what the rolls Here is the code for all of them !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
}}
!power {{
--emote|@{selected|token_name} tries their luck on the slot machine.
--name|Slot Machine
--Rules|If you get two 6's and another numer OR Three of a kind, You win.
--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
}}
!power {{
--emote|@{selected|token_name} tries their luck on the big slot machine.
--name|Zowie Slot Machine
--Rules|If you get two 6's and another numer OR Three of a kind, You win.
--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
}}
!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|perception_bonus} ]] [[ [$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.
}}
!power {{
--emote|@{selected|token_name} tries their luck at the ‘In Between’ table
--name|In Between
--Rules|Center die must be between the other two.^^Tie=loss^^If outside dice match automatic loss.
--Wager|[[ [$bet] ?{How Much?|5} + 0d0]]gp
--!blurb|**Roll the Bones!!!**
--Rolls|[[ [$r1] 1d20 ]] • [[ [$r2] 1d20 ]] • [[ [$r3] 1d20 ]]
--?? $r1 == $r3 ?? Loser|Outer dice match. Automatic loss. skiptTo*5|EndofCard
--?? $r1 > $r3 ?? skipTo*1|bigsmall
--?? $r3 > $r1 ?? skipTo*2|smallbig
--:bigsmall|
--?? $r2 < $r1 AND $r2 > $r3 ?? Winner!|Your winnings: [[?{How Much?}*5/2]]
--?? $r2 > $r1 OR $r2 < $r3 ?? Loser|Better luck next time
--?? $r2 == $r1 OR $r2 == $r3 ?? Loser|Better luck next time
--skipTo*3|EndofCard
--:smallbig|
--?? $r2 > $r1 AND $r2 < $r3 ?? Winner!|Your winnings: [[?{How Much?}*5/2]]
--?? $r2 < $r1 OR $r2 > $r3 ?? Loser|Better luck next time
--?? $r2 == $r1 OR $r2 == $r3 ?? Loser|Better luck next time
--skipTo*4|EndofCard
--:EndofCard
}}
!power {{
--emote|@{selected|token_name} tries their luck at the ‘In Between’ table
--name|High vs Low
--leftsub|[[ [$roll] ?{How Many Dice|1} + 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.
}}