phylll / mychs-macro-magic

A simple, sane, and friendly little scripting language for your Roll20 macros.
MIT License
0 stars 0 forks source link

Midgard-Skripte: Code vereinfachen mittels neuen `highlight()`-Features #7

Closed phylll closed 2 years ago

phylll commented 3 years ago

-> PR MMM#97

phylll commented 3 years ago

Teils erledigt, teils abhängig von MMM#108

phylll commented 2 years ago

Repro code:

!mmm script
!mmm set test = roll("1d20+14")
!mmm set testMod = test + 3 -2
!mmm  set test = highlight(test, default, "bla")
!mmm set testMod = highlight(testMod, test, "Further explanations")
!mmm chat: Rolled ${test} for result ${testMod}
!mmm end script

For the edge cases 0 and 20, test retains automatic highlighting as bad/good, but testMod does not pick it up since the functionality proposed in https://github.com/michael-buschbeck/mychs-macro-magic/issues/108 isn't implemented yet.