tag:blogger.com,1999:blog-8014481393965775474.post2819191045064229407..comments2023-11-05T01:03:08.061-06:00Comments on The Cobalt Kobold: Macro for Exploding Tier DiceMr. Bluehttp://www.blogger.com/profile/07027893907355004146noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8014481393965775474.post-20252498489435811222012-03-14T04:17:30.287-06:002012-03-14T04:17:30.287-06:00You lot make my brain hurt. I just want to push a ...You lot make my brain hurt. I just want to push a button and have it go.Bone_Inspectorhttps://www.blogger.com/profile/04880853493009434196noreply@blogger.comtag:blogger.com,1999:blog-8014481393965775474.post-90124657815899084122012-03-11T21:07:50.081-06:002012-03-11T21:07:50.081-06:00Heck I missed the obvious way to do it. Check out...Heck I missed the obvious way to do it. Check out the revision in the main post. Pretty similar to your idea, actually.<br /><br />Been getting better with this language over the last couple of days... will post more complex stuff soon.Mr. Bluehttps://www.blogger.com/profile/07027893907355004146noreply@blogger.comtag:blogger.com,1999:blog-8014481393965775474.post-84402073971874871802012-03-11T20:56:46.039-06:002012-03-11T20:56:46.039-06:00Hmm actually I guess I could just have an explosio...Hmm actually I guess I could just have an explosion counter...Mr. Bluehttps://www.blogger.com/profile/07027893907355004146noreply@blogger.comtag:blogger.com,1999:blog-8014481393965775474.post-81741586726557700202012-03-11T20:36:53.986-06:002012-03-11T20:36:53.986-06:00Awesome. The biggest reason was that I wanted to ...Awesome. The biggest reason was that I wanted to display the original 2 dice, followed by the exploding dice from either of those. Your code would make them appear after the exploding die and not at the end after the "base roll".<br /><br />That being said proper programming for this would involve a simple data structure, sorted for display, but I was too lazy for that. MapTool does support JSON style arrays and objects, and when I need to support Heroic/Demigod tiers it's going to make sense to use some more advanced modularization.<br /><br />MapTool can indeed do a lot more than roll dice - stay tuned...<br /><br />And if you have lots of extra time, maybe I should put you to work!Mr. Bluehttps://www.blogger.com/profile/07027893907355004146noreply@blogger.comtag:blogger.com,1999:blog-8014481393965775474.post-87624947860104995732012-03-11T20:11:47.170-06:002012-03-11T20:11:47.170-06:00Nice, looks like a pretty flexible language. I wo...Nice, looks like a pretty flexible language. I wonder if you can do more than just dice rolls with it.<br /><br />That said, the programmer in me wonders why you hard coded it for 2 dice, instead of n.<br /><br />Here's some code I came up with, just based on your code - I assume there's some sort of do-while loop in this macro language.<br /><br />http://pastebin.com/YXuidikj<br /><br />And yes, I'm bored at work.Etohnoreply@blogger.com