Roll some dice: !roll 1d12+3 adv
A linked character sheet is needed to run commands in the following table.
Action | Avrae command |
---|---|
Ability check | !check perception |
Initiative roll | !check init |
romanToInt("mcdxcii") | |
--> 1492 | |
intToRoman(1492) | |
--> "MCDXCII" | |
on romanToInt(numeral) | |
set numeral to my TextHandlers's changeCaseOfText(numeral, "uppercase") | |
set n to 0 | |
try |
Roll some dice: !roll 1d12+3 adv
A linked character sheet is needed to run commands in the following table.
Action | Avrae command |
---|---|
Ability check | !check perception |
Initiative roll | !check init |
on run {input} | |
--set testStringList to {"Gen. 4:7", " Eccl. 3:1,7 ", "Luke 16:1–2 (1-12)", "Moses 4:15", "D&C 121:43", "Isaiah 45:19", "Alma 38:12", " Doctrine and Covenants 122:7", "Matt. 25:21 (14-30)", "2 Kgs. 20:1 (1–6)"} | |
--set input to item 10 of testStringList -- LINE FOR TESTING | |
-- Clean up input: | |
set input to trimText(input, space, "both") | |
set input to findAndReplaceInText(input, "–", "-") | |
set input to findAndReplaceInText(input, "—", "-") | |
set book to regexSearch(input, "(.+) .+:.+") | |
log result |