Skip to content

Instantly share code, notes, and snippets.

@nolivo
Created January 19, 2022 02:26
Show Gist options
  • Save nolivo/3244c5ccb380be0837146472c3ba16b2 to your computer and use it in GitHub Desktop.
Save nolivo/3244c5ccb380be0837146472c3ba16b2 to your computer and use it in GitHub Desktop.
This powercard is used to emulate the In Between Game
!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]]
--Debug|here
--?? $r2 < $r1 OR $r2 > $r3 ?? Loser|Better luck next time
--?? $r2 == $r1 OR $r2 == $r3 ?? Loser|Better luck next time
--skipTo*4|EndofCard
--:EndofCard
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment