A snippet of code to test a “gambit” system where players who fail a check can get a second chance at succeeding by relying on a little bit of luck.
Link to demo code: Gambit failure test (dashingdon.com)
Have a little play (it’s really short and extremely simple for the point of the test. Your choices in the fight are related to the stats as shown below.
Sword = Attack
Shield = Defend
Spell = Magic
If you either draw or lose you will get an extra option to roll a dice which does the check again but with a possible boost (it is currently set as *rand 0 2)
Thoughts on this gambit system would be appreciated would you like to see this in an actual game or not?