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 |
| # EDIT THESE TO CHANGE THE APP TO INSTALL | |
| $wingetAppId = "7zip.7zip" # This script will only install an exact match, so double-check. | |
| $customInstallerArgs = "" # These will vary by app. Check the EXE/MSI documentation. | |
| $ResolveWingetPath = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe" | |
| if ($ResolveWingetPath){ | |
| $WingetPath = $ResolveWingetPath[-1].Path | |
| } | |
| $Wingetpath = Split-Path -Path $WingetPath -Parent |
| 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 |