
I'm running a 3.5 campaign and I'm trying to set up a macro and/or API method for executing a swordsage's Shadow Blade Technique. The ability works as follows: Player rolls 2d20. If he chooses the higher value roll, then the attack proceeds as normal. If he chooses the lower value then the attack proceeds as normal with an extra 1d6 damage. I am not proficient with writing API scripts (yet), but would certainly be willing to put in the effort if I knew the best way to approach it. Here are the ways that I thought it could potentially work: Player executes a macro that rolls 2d20. Player manually inputs roll result, is prompted if lower result is used (which adds the extra 1d6) ( Difficulty: I'm not sure how to get the manual input to register a critical hit, although I could prompt the player to state if it was a critical. Using two macros for one ability is not very elegant.) 2d20 is rolled, displayed to the player, player is prompted about which to use, the chosen die is used to attack (and 1d6 is added automatically if the lower die is chosen) ( Difficulty: As far as I can tell, this would require roll results to be sent to the chat and then retrieved for placement in the prompt for the player. This would definitely need an API and (as far as I know) players cannot provide input for an executing API script.) So my question would be, does anybody have any ideas about how to best make this ability function?