Page 1 of 1

Extendable hearts?

Posted: Sat Oct 21, 2017 3:54 am
by squp
Can I give link one extra heart when he picks up a 3up moon? It would help a LOT.

Re: Extendable hearts?

Posted: Sat Oct 21, 2017 4:17 am
by The0x539
Yes, you can.

Re: Extendable hearts?

Posted: Sat Oct 21, 2017 4:28 am
by squp
The0x539 wrote:Yes, you can.
Yeah but I mean with lua. I’m bad at lua too.

Like this but with lua:
https://youtu.be/UjRym__aqOM

Re: Extendable hearts?

Posted: Sun Oct 29, 2017 1:57 pm
by Gaming-Dojo
FlatKiwi wrote:
The0x539 wrote:Yes, you can.
Yeah but I mean with lua. I’m bad at lua too.

Like this but with lua:
https://youtu.be/UjRym__aqOM
I would suggest trying this:

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

Re: Extendable hearts?

Posted: Sun Oct 29, 2017 3:39 pm
by squp
yoshiegg wrote:
FlatKiwi wrote:
The0x539 wrote:Yes, you can.
Yeah but I mean with lua. I’m bad at lua too.

Like this but with lua:
https://youtu.be/UjRym__aqOM
I would suggest trying this:

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.

Re: Extendable hearts?

Posted: Sun Oct 29, 2017 3:56 pm
by The0x539
yoshiegg wrote:
FlatKiwi wrote:
The0x539 wrote:Yes, you can.
Yeah but I mean with lua. I’m bad at lua too.

Like this but with lua:
https://youtu.be/UjRym__aqOM
I would suggest trying this:

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
There is nothing about this that would work anyway.