EDIT: Disregard everything I said below. I did it! If anyone runs into a similar problems and would like to know the solution, here is the code I ended up using: [[floor({{(@{target|attacker|SPD} - ({@{target|attacker|WGT} - @{target|attacker|STR}, 0}kh1)) - (@{target|defender|SPD} - ({@{target|defender|WGT} - @{target|defender|STR}, 0}kh1)), 4d1}dh1 / 4, 1d0}dl1 + 1)]] Alright, I've realized that having two sets of square brackets does not seem to be completely crucial to this equation. However, I have no idea how to accomplish what I want to do without them. I'd like to put out an open request for anyone to successfully turn the following into a functioning Macro: (There are only two reasons I can think of that anyone would attempt this: either they are exceedingly helpful, or they would like to test their skill with an incredibly convoluted challenge.) Each character has a Speed stat, a Strength stat and a Weapon Weight stat. One character is attacking another. If the attacking character's Strength stat is less than their Weapon Weight stat, they suffer a penalty to their Speed equal to the remaining Weight after it is subtracted against Strength. For example, if a character has 10 Strength and their Weapon Weight is 15, they suffer a 5 point penalty to their Speed. This is because they aren't strong enough to efficiently wield the weapon. If the character's Strength is more than their Weapon Weight, Speed is not affected. It does not receive a boost rather than a penalty. After the Weight calculation is concluded; if an attacking character has 4 more Speed than their target, they will be able to attack twice. Otherwise, they will attack once. It is impossible for a character to attack more than twice, or to attack zero times. All of this needs to be contained within a single set of square
brackets, and preferably needs to return either a '1' for when the
character is only able to attack once, and a '2' when the character is
able to attack twice. This is because it will be implemented into the following Macro: [Click Here] From the image: "Avery deals 5 damage to Camilla 2 time(s) , dealing critical damage if they roll 4 or below." The bolded text is the part this Macro will be determining. The rest is already finished and functional, thankfully. The variables you will need are as follows: @{target|attacker|SPD} - Represents the attacking unit's Speed stat. @{target|attacker|STR} - Represents the attacking unit's Strength stat. @{target|attacker|WGT} - Represents the attacking unit's Weapon Weight stat. @{target|defender|SPD} - Represents the defending unit's Speed stat. @{target|defender|STR} - Represents the defending unit's Strength stat. @{target|defender|WGT} - Represents the defending unit's Weapon Weight stat. And here are my two failed attempts so you have an idea of what should be going on: 1. [[{1d1+((@{target|attacker|SPD} - ((@{target|attacker|STR}) - (@{target|attacker|WGT}))) - (@{target|defender|SPD} - (@{target|defender|WGT}) - (@{target|defender|STR}))) - 1}>4 + 1]] 2. [[{1d1+((@{target|attacker|SPD} - [[{(@{target|attacker|WGT} -
@{target|attacker|STR})d1}>0]]) - (@{target|defender|SPD} - [[{(@{target|defender|WGT} -
@{target|defender|STR})d1}>0]])) - 1}>4 + 1]] Here is the Macro that this will be implemented into in its entirety: /w self If @{target|attacker|character_name} were to attack @{target|defender|character_name} with an Iron Lance... @{target|attacker|character_name}'s Chance to Hit: [[((@{Weapons|IronLanceHIT})+(@{target|attacker|SKL}*2)+(@{target|attacker|LCK})-(?{Would they have Weapon Disadvantage?|0}0)-(@{target|defender|SPD}*2)-(@{target|defender|LCK})-(@{target|defender|TER}*10))]]%. @{target|attacker|character_name}'s Damage: [[(@{Weapons|IronLanceMGT}+@{target|attacker|STR}-(?{Would they have Weapon Disadvantage?|0})) - @{target|defender|DEF}]]. @{target|attacker|character_name}'s Number of Attacks: [[ EQUATION GOES HERE ]]. @{target|attacker|character_name}'s Chance to Crit: [[{0+((((@{target|attacker|SKL} / 2) - .5) + @{Weapons|IronLanceCRT}) - @{target|defender|LCK})d1}>0]]%. If anyone actually manages this, I will be blown away. (If someone requires additional motivation to take on this ridiculously complicated challenge: my campaign will be completely ready to play once this is done. This one Macro is the only remaining hurdle.)