Macro code.
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
-
- Kobold
- Posts: 4
- Joined: Fri Mar 13, 2015 5:44 pm
Macro code.
I'm trying to make a macro for damage bonus roll, so I can choose how many D6 are rolled in the macro. This is for Savagelands, so if I roll and get a raise, I can add 1d6 to the damage, if I get two raises, I can roll 2d6 etc. Thanks in advance.
Re: Macro code.
I don't think you need to create a macro for that, I think it may be covered by simple dice expressions Dice_Expressions
Look at the "explode" and "exploding success" options.
Look at the "explode" and "exploding success" options.
-
- Kobold
- Posts: 4
- Joined: Fri Mar 13, 2015 5:44 pm
Re: Macro code.
I already know about exploding die. It's more like I want to click a macro, then have a window pop up asking me how many D6 I want to roll.
Re: Macro code.
The super simple way is like this:
But it doesn't give you much feed back. If you want to see the individual die rolls you'll need to have a loop and save each roll in to an array.
Code: Select all
[H: abort(input("numDice|1,2,3,4,5,6,7,8,9,10|Dice to Roll|radio|orient=H span=true value=string"))]
[R: eval(strformat("%{numDice}d6e"))]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
-
- Kobold
- Posts: 4
- Joined: Fri Mar 13, 2015 5:44 pm
Re: Macro code.
Thank you very much for that. =D