timmaugh said: So, it looks like you're building this command line in a script, so I expect that you can drop in whatever text you need to before sending the finished line to the chat output. I don't want to make too many assumptions about what you're doing, so let me ask some questions: how would a global mod be defined? How would you capture it? Would it be coming from a character sheet, or could the GM have "switches" applied to a given situation where the mods were active? How many global mods could be active? Because it seems that, at least from the script's perspective, the workflow would be: 1) identify the global mods 2) capture the values of the mods 3) construct the command line output 4) send it to chat (or write it to the character sheet) So, are you having trouble at the transition between 2 and 3, above...? How to put the value of the mod into the roll language you're building? Well you are thinking a few steps out. I normally do this when coding in VBA as it is my wheelhouse, but this is all new so I am baby stepping it. What I am trying to create for martial attacks is a custom drop down that is populated with the players martial options, the number of hands used drop down option, player ability modifiers (sneak attack, rage) drop down options. These are all sent to the script which will then roll the appropriate amount and size of dice add all applicable modifiers (including globals) and return the message to the GM and player only. Like I stated it should be accomplished with drop downs. Actually that or Chat menu buttons. I like token as they don't hyper scroll chat, but the fewer the better so the token action bar isnt too full. So which ever results in the cleanest process. This is an extension of the custom spell book and prayer ideas. Custom marial i guess. Thanks,