RPG attributes generator: Difference between revisions
Content added Content deleted
ReeceGoding (talk | contribs) (→{{header|R}}: Bug fix.) |
ReeceGoding (talk | contribs) m (→{{header|R}}) |
||
Line 2,799: | Line 2,799: | ||
stats[i] <- sum(results[-which.min(results)]) |
stats[i] <- sum(results[-which.min(results)]) |
||
} |
} |
||
stats["TOT"] <- sum(stats) |
if(sum(stats >= 15) < 2 || (stats["TOT"] <- sum(stats)) < 75) Recall() else stats |
||
if(sum(stats >= 15) < 2 || stats["TOT"] < 75) Recall() else stats |
|||
} |
} |
||
print(genStats())</lang> |
print(genStats())</lang> |
||
Line 2,806: | Line 2,805: | ||
{{out}} |
{{out}} |
||
<pre>STR DEX CON INT WIS CHA TOT |
<pre>STR DEX CON INT WIS CHA TOT |
||
15 18 18 11 15 15 92 </pre> |
|||
=={{header|Raku}}== |
=={{header|Raku}}== |