
I'm working on modifying the character sheet for Shadowrun 5e. In that game system, the number of dice you roll is usually modified based on the player's current condition (i.e. stun and physical damage). As an example: typically a character must subtract 1 die from their dice pool for every 3 points of stun and for every 3 points of physical damage. This is easy enough to do using the floor() function where I might have a macro that was something like: /r (@{dice_pool} - [[floor(@{stun_dmg}/3)]] )d6>5 I'm simplifying the actual macro for this post. The important takeaway point here is to notice that I MUST put the floor() function in square brackets as an inline roll due to the way the order or operations works in Roll20. This is, actually, exactly the way that the current Shadowrun5e community sheet works. The problem I have is that the resulting roll looks ugly. I want to be able to do the entire roll as an inline roll so that I can have nicer-looking output for my games. However, doing this doesn't work. I cannot do this: [[(@{dice_pool} - [[floor(@{stun_dmg}/3)]] )d6>5]] because nesting inline rolls is not allowed. I also cannot do this: [[(@{dice_pool} - floor(@{stun_dmg}/3) )d6>5]] Because the floor() function is not evaulated until AFTER the inline roll is done. Does anyone know of a way that I can accomplish something like this without having to have it displayed in an ugly expanded roll?