Extendable hearts?

This is the place for discussion and support for LunaLua and related modifications and libraries.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
squp
Snifit
Snifit
Posts: 209
Joined: Sat Aug 12, 2017 10:10 pm
Flair: worm
Pronouns: they/them
Contact:

Extendable hearts?

Postby squp » 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.
Last edited by squp on Sat Oct 21, 2017 5:29 am, edited 5 times in total.

The0x539
Eerie
Eerie
Posts: 751
Joined: Fri Jan 22, 2016 8:02 pm

Re: Extendable hearts?

Postby The0x539 » Sat Oct 21, 2017 4:17 am

Yes, you can.

squp
Snifit
Snifit
Posts: 209
Joined: Sat Aug 12, 2017 10:10 pm
Flair: worm
Pronouns: they/them
Contact:

Re: Extendable hearts?

Postby squp » Sat Oct 21, 2017 4:28 am

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

yoshiegg
Hoopster
Hoopster
Posts: 122
Joined: Mon Jan 25, 2016 9:20 am

Re: Extendable hearts?

Postby yoshiegg » Sun Oct 29, 2017 1:57 pm

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

squp
Snifit
Snifit
Posts: 209
Joined: Sat Aug 12, 2017 10:10 pm
Flair: worm
Pronouns: they/them
Contact:

Re: Extendable hearts?

Postby squp » Sun Oct 29, 2017 3:39 pm

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.

The0x539
Eerie
Eerie
Posts: 751
Joined: Fri Jan 22, 2016 8:02 pm

Re: Extendable hearts?

Postby The0x539 » Sun Oct 29, 2017 3:56 pm

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.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari