I work on the buffy sheet for unisystem. I am a complete html noob. I try to streamline this part: value="/e attacks with @{melee_weapon_name-1}, rolling [[@{melee_weapon_attack_rating-1} + d10]] to hit and [[((@{melee_weapon_damage_base-1} + (@{melee_weapon_twohanded-1})*(@{melee_weapon_damage_Multiplier-1})))*(@{melee_weapon_damage_type-1})]] damage (add @{melee_weapon_damage_type-1} x Success Levels to damage)."></button></th> I need to have a variable for this [[@{melee_weapon_attack_rating-1} + d10]] = var1 and compare it to fixed values and create another variable var2 var1 =1-8 then var2 = 0 var1 =9-10 then var2 = 1 var1 =11-12 then var2 =2 and so on. var2 then needs to be added to the damage like this: [[((@{melee_weapon_damage_base-1} +
(@{melee_weapon_twohanded-1})*(@{melee_weapon_damage_Multiplier-1})))*(@{melee_weapon_damage_type-1})]]+ (var2 * (@{melee_weapon_damage_type-1})) can someone help me with this?