#Establish variables 
scoreboard players operation HPWhole nl.Quality = InputHealth nl.Quality
scoreboard players operation HPDecimal nl.Quality = InputHealth nl.Quality
scoreboard players operation MPWhole nl.Quality = InputMana nl.Quality
scoreboard players operation MPDecimal nl.Quality = InputMana nl.Quality

# Establish Whole Number # 
execute if score HPWhole nl.Quality matches ..99 run scoreboard players set HPWhole nl.Quality 0
execute if score HPWhole nl.Quality matches 100.. run scoreboard players set Div nl.Quality 100
execute if score HPWhole nl.Quality matches 100.. run scoreboard players operation HPWhole nl.Quality /= Div nl.Quality

# Establish Decimal Number #
execute if score HPDecimal nl.Quality matches 100.. run function next_level:quality/decimal_loop

# Establish Whole Number # 
execute if score MPWhole nl.Quality matches ..99 run scoreboard players set MPWhole nl.Quality 0
execute if score MPWhole nl.Quality matches 100.. run scoreboard players set Div nl.Quality 100
execute if score MPWhole nl.Quality matches 100.. run scoreboard players operation MPWhole nl.Quality /= Div nl.Quality

# Establish Decimal Number #
execute if score MPDecimal nl.Quality matches 100.. run function next_level:quality/decimal_loop


