Hi all, I have the following nesting macro which works fine when I used it in the game as ability macro for character. But if I place it in the Character sheet as macro for button it does not work. Here is a macro (I added some linebreaks for better understanding) - &{template:default}
{{name=**Armor damage absorption** }}
{{Description=**@{character_name}** got hit in his armor!}}
{{Incoming Damage= [[ (?{Damage Received|0} [DMG] ) ]]}}
{{Received DMG/Type=
?{Damage Type
|Normal, [[{([[ floor(( (?{Damage Received|0} [DMG] ) - @{damage_threshold_normal})*(1-([[ @{damage_resistance_normal}]]/100) )) + 0d0]]),0}d1]] / **Normal**
|Laser, [[{([[ floor(( (?{Damage Received|0} [DMG] ) - @{damage_threshold_laser})*(1-([[ @{damage_resistance_laser} ]]/100) )) + 0d0]]),0}d1]] / **Laser**
|Plasma, [[{([[ floor(( (?{Damage Received|0} [DMG] ) - @{damage_threshold_plasma})*(1-([[ @{damage_resistance_plasma} ]]/100) )) + 0d0]]),0}d1]] / **Plasma**
|Explosion, [[{([[ floor(( (?{Damage Received|0} [DMG] ) - @{damage_threshold_explosion})*(1-([[ @{damage_resistance_explosion} ]]/100) )) + 0d0]]),0}d1]] / **Explosion**
|Fire, [[{([[ floor(( (?{Damage Received|0} [DMG] ) - @{damage_threshold_fire})*(1-([[ @{damage_resistance_fire} ]]/100) )) + 0d0]]),0}d1]] / **Fire**
|Radiation, [[floor( (?{Damage Received|0} [DMG] )*(1-([[ @{resistance_radiation} ]]/100) )) ]] / **Radiation**
|Poison, [[floor( (?{Damage Received|0} [DMG] )*(1-([[ @{resistance_poison} ]]/100) )) ]] / **Poison**
|Gas, [[floor( (?{Damage Received|0} [DMG] )*(1-([[ @{resistance_gas} ]]/100) )) ]] / **Gas**
|Electricity, [[floor( (?{Damage Received|0} [DMG] )*(1-([[ @{resistance_electricity} ]]/100) )) ]] / **Electricity**
}
}} Macro as a sheet button with result Macro as ability Any ideas why it does not work? It seems that the error is here in first choice (?{Damage Received|0} [DMG] ).