execute if score .warrior_value const matches 100.. run scoreboard players add .warrior_digit const 1
execute if score .warrior_value const matches 100.. run scoreboard players remove .warrior_value const 100

execute if score .warrior_value const matches 100.. run function custom_items:armor/warrior/add_digit