Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function roll(stat, difficulty)
- if stat < difficulty then
- local difference = (difficulty - stat)*10
- local seed = math.random(1, difference)
- if seed >= 50 then
- return true
- else
- return false
- end
- elseif stat >= difficulty then
- return true
- else
- return false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment