💾 Archived View for tilde.club › ~zerodni › dnddiceroller.gmi captured on 2023-07-22 at 17:16:39. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-19)

-=-=-=-=-=-=-

                                                                       _/          
    _/_/_/_/_/  _/_/_/_/  _/_/_/      _/_/    _/_/_/    _/      _/  _/    _/_/_/   
         _/    _/        _/    _/  _/    _/  _/    _/  _/_/    _/          _/      
      _/      _/_/_/    _/_/_/    _/    _/  _/    _/  _/  _/  _/          _/       
   _/        _/        _/    _/  _/    _/  _/    _/  _/    _/_/          _/        
_/_/_/_/_/  _/_/_/_/  _/    _/    _/_/    _/_/_/    _/      _/        _/_/_/       
=================================================================================

Crappy DND Stat roller that i use. My group reqires all stats should not be below 70. So it rerolls till its above 70.

#!/usr/bin/python3

import random
from sys import argv

dicetarget = argv[1] if len(argv) >= 2 else '70'
ability_scores = []
while sum(ability_scores) <= int(dicetarget):
    ability_scores = []
    work = []
    for i in range(6):
        roll = []
        rollresults = []
        for j in range(4):
            roll.append(random.randint(1, 6))
        roll.remove(min(roll))
        work.append(roll)
        score = sum(roll)
        ability_scores.append(score)


for item in work:
    print(item, "=", sum(item))
print("-----------------------------")
print(ability_scores, "=", sum(ability_scores))

Back to Main Page