Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
health = 100
function updateUI()
print('Health: ' .. health)
end
function damage(amount)
health = health - amount
updateUI()
end
function heal(amount)
health = health + amount
updateUI()
end
-- Simulate actions
updateUI()
damage(20)
heal(10)Coding works best on desktop or with an external keyboard.