sc-im dice should result in strings for more flexible formatting and more handy key bindings

This commit is contained in:
Daniel Flanagan 2019-03-27 10:05:58 -05:00
parent 62ad80d349
commit 2d5c3c6330
2 changed files with 3 additions and 1 deletions

View file

@ -91,5 +91,5 @@ function sc_rollres(c, r)
math.randomseed(seed) math.randomseed(seed)
log("Setting Seed: " .. tostring(seed)) log("Setting Seed: " .. tostring(seed))
local sum = sc_parserollstr(sc.lgetstr(c, r)) local sum = sc_parserollstr(sc.lgetstr(c, r))
sc.lsetnum(c + 1, r, sum) sc.lsetstr(c + 1, r, tostring(sum))
end end

View file

@ -11,3 +11,5 @@ color "type=STRG fg=WHITE bg=BLACK bold=0 dim=1"
color "type=NUMB fg=YELLOW bg=BLACK bold=0 dim=1" color "type=NUMB fg=YELLOW bg=BLACK bold=0 dim=1"
nmap "J" "<C-j>" nmap "J" "<C-j>"
nmap "fi" ":format \"#\"<cr>"
nmap "B" "Vir"