It is possible, but it's a large pain on the API development, and hard to get right for anything remotely complicated. I recently added support to the Tagmar script. It more than doubled the number of lines of code and has some unfortunate side effects.(empty seeming messages in chat), in addition to making the internal logic much more complicated (it necessitates deferred processing of commands/events and requires some shenanigans to make the dice show up the way you want and in the colors you want) and it slows down processing the script because of needing to wait on the dice to finish rolling.