Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
LilDrippyMyFnf
GitHub Repository: LilDrippyMyFnf/FNF-BitEnigne
Path: blob/master/Source/ChartEvents/healthdrain.lua
2151 views
1
onEvent(name, value1, value2)
2
function opponentNoteHit(id, noteData, noteType, isSustainNote)
3
if getProperty('health') > (value2 / 50) and getProperty('health') < (value1 / 50) then -- Health is from 0 to 2, so dividing the value by 50 allow to just turn it into percentage easly
4
setProperty('health', (value2 / 50))
5
else if getProperty('health') > (value2 / 50) and getProperty('health') > (value1 / 50) then
6
setProperty('health', getProperty('health')-(value1 / 50))
7
end
8
end
9
end
10
end
11
12
-- all from https://gamebanana.com/tools/8537
13
14