Skip to content

Instantly share code, notes, and snippets.

@mwild1
Created April 14, 2013 16:44
Show Gist options
  • Save mwild1/5383359 to your computer and use it in GitHub Desktop.
Save mwild1/5383359 to your computer and use it in GitHub Desktop.
-- Original
if answer == "r" then
if NMH == true then
STR = math.random(3, 18) + 2
DEX = math.random(3, 18) + 2
SIZE = math.random(3, 18) + 2
CON = math.random(3, 18) + 2
INT = math.random(3, 18) + 2
WILL = math.random(3, 18) + 2
CHR = math.random(3, 18) + 2
else
STR = math.random(3, 18)
DEX = math.random(3, 18)
SIZE = math.random(3, 18)
CON = math.random(3, 18)
INT = math.random(3, 18)
WILL = math.random(3, 18)
CHR = math.random(3, 18)
end
end
-- Alternative
if answer == "r" then
local adjust = 0;
if NMH == true then
adjust = 2
end
STR = math.random(3, 18) + adjust
DEX = math.random(3, 18) + adjust
SIZE = math.random(3, 18) + adjust
CON = math.random(3, 18) + adjust
INT = math.random(3, 18) + adjust
WILL = math.random(3, 18) + adjust
CHR = math.random(3, 18) + adjust
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment