(Originaly posted in mentor forums but I realized it may be more fitting here) Hello, I'm extending Edge of the Empire character sheet (kudos to the original author) and I would like to make "roll attribute" button. Until now, I used to have macro that asks player to enter number of dice one by one (if you are not familiar there are couple kinds of dice in EotE). I would like to provide default values for those queries. However, mechanics of EotE says that player should roll [max(Attribute, Skill) - min(Attribute, Skill)] green dice and min(Attribute, Skill) yellow dice. I can't figure out how to do it. To make it less convoluted (or more?) Here is what I would like to achieve: !eed ?{Ability (Green)|(max(Attribute, Skill) - min(Attribute, Skill))}g ?{Proficiency (Yellow)|min(Attribute, Skill)}y ?{Boost (Blue)|0}b ?{Difficulty (Purple)|0}p ?{Challenge (Red)|0}r ?{Setback (Black)|0}blk I don't think this is possible directly from chat/character sheet/macro as there is no max/min function and default values for queries do not like anything but simple numbers (or am I wrong)? So I thought I will use API. I can easly calculate default values in javascript (or so I think) and I would like to send above command to chat with default values already calculated. However, it seems I cannot run another API script this way nor force roll20 to ask for values. Result of sendChat is simply text of command or error, not execution. For example following command ends with error from API: sendChat(msg.who, "/roll ?{dice|0}d20" ); but executes fine pasted directly to chat. Is this also considered as macro that I cannot use? Is there some way to make roll20 interpret sendChat command "as usual" (i.e. ask for questions and execute other API functions)? If not then is there any way asking players for input from within API? All the best, Radek.