Extendable hearts?
Posted: Sat Oct 21, 2017 3:54 am
Can I give link one extra heart when he picks up a 3up moon? It would help a LOT.
Yeah but I mean with lua. I’m bad at lua too.The0x539 wrote:Yes, you can.
I would suggest trying this:FlatKiwi wrote:Yeah but I mean with lua. I’m bad at lua too.The0x539 wrote:Yes, you can.
Like this but with lua:
https://youtu.be/UjRym__aqOM
Code: Select all
functionOnTick()
local hp = player:mem(0x16, FIELD_WORD)
end
functionOnNPCKill(killObj, killedNPC, killReason)
if killedNPC.id == 188 then
hp = hp+1
end
end
nvm yoshiegg, I used hudoftime.lua which does exactly this.yoshiegg wrote:I would suggest trying this:FlatKiwi wrote:Yeah but I mean with lua. I’m bad at lua too.The0x539 wrote:Yes, you can.
Like this but with lua:
https://youtu.be/UjRym__aqOMCode: Select all
functionOnTick() local hp = player:mem(0x16, FIELD_WORD) end functionOnNPCKill(killObj, killedNPC, killReason) if killedNPC.id == 188 then hp = hp+1 end end
There is nothing about this that would work anyway.yoshiegg wrote:I would suggest trying this:FlatKiwi wrote:Yeah but I mean with lua. I’m bad at lua too.The0x539 wrote:Yes, you can.
Like this but with lua:
https://youtu.be/UjRym__aqOMCode: Select all
functionOnTick() local hp = player:mem(0x16, FIELD_WORD) end functionOnNPCKill(killObj, killedNPC, killReason) if killedNPC.id == 188 then hp = hp+1 end end