Page 2 of 2

Re: SmgLifeSystem.lua v1.1 - Custom Health and more! Now with icantswim.lua support!

Posted: Mon Jan 17, 2022 8:54 pm
by AlanLive2020
marioman2007 wrote:
Mon Jan 17, 2022 8:49 pm
AlanLive2020 wrote:
Mon Jan 17, 2022 12:25 pm
There is some boolean text on the top left of the screen. Dunno if thats intentional or not. Anyway i deleted it.
at which line? can't seem to find that

AlanLive2020 wrote:
Mon Jan 17, 2022 12:25 pm
How do i make the coin reward from collecting a heart at full health add to anothercurrency.lua?
it already does that
1. Line 414
2. Doesn't seem to work, the custom currency counter doesn't increase, it just adds coins for 1ups.

Re: SmgLifeSystem.lua - Custom Health and more!

Posted: Thu Feb 17, 2022 11:06 am
by Mal8rk
Is there a way to make this work with SMW Mario and Luigi costume sprites? I saw some harmed SMW Mario and Luigi sprites, but they don't seem to be used in the code as far as I'm aware

Re: SmgLifeSystem.lua - Custom Health and more!

Posted: Thu Feb 17, 2022 9:52 pm
by Marioman2007
POPME wrote:
Thu Feb 17, 2022 11:06 am
Is there a way to make this work with SMW Mario and Luigi costume sprites? I saw some harmed SMW Mario and Luigi sprites, but they don't seem to be used in the code as far as I'm aware
you need to modify the row used by the sheet as:

Code: Select all

SmgLifeSystem.HarmedSheetRow = {
        [CHARACTER_MARIO] = 3, [CHARACTER_LUIGI] = 1,
        [CHARACTER_PEACH] = 0, [CHARACTER_TOAD] = 1}
AlanLive2020 wrote:
Mon Jan 17, 2022 9:46 pm
2. Doesn't seem to work, the custom currency counter doesn't increase, it just adds coins for 1ups.
you need to set hijackDefaultCounter to true

Re: SmgLifeSystem.lua - Custom Health and more!

Posted: Wed Feb 23, 2022 9:52 am
by Mal8rk
Hey, I have another question, hope I'm not bothering

But how can I disable the false/true words on the top left of the screen?

Re: SmgLifeSystem.lua - Custom Health and more!

Posted: Wed Feb 23, 2022 10:29 am
by Marioman2007
POPME wrote:
Wed Feb 23, 2022 9:52 am
But how can I disable the false/true words on the top left of the screen?
remove the line 414 "Text.print(icantswim_inWater,0,0)"
(sorry for that, but I'm too lazy to update the link just for one line lol)

Re: SmgLifeSystem.lua - Custom Health and more!

Posted: Sat Mar 05, 2022 6:23 pm
by RadMetalMarioSMIX
Could this also work with a Wario Land-esque episode?

Re: SmgLifeSystem.lua - Custom Health and more!

Posted: Sat Mar 19, 2022 5:20 am
by Marioman2007
Version 1.2 is here!
This version mostly fixes some bugs.

Re: SmgLifeSystem.lua - Custom Health and more!

Posted: Wed Jun 15, 2022 8:37 am
by Mal8rk
Hey there, I have a question

Is it possible to trigger events depending on how much health you have? Like for example, an event that triggers if you are on 1 hp

Re: SmgLifeSystem.lua - Custom Health and more!

Posted: Thu Jun 16, 2022 7:27 am
by Marioman2007
POPME wrote:
Wed Jun 15, 2022 8:37 am
Hey there, I have a question

Is it possible to trigger events depending on how much health you have? Like for example, an event that triggers if you are on 1 hp

Code: Select all

SmgLifeSystem.HealthCounter
Returns the current health of the player.

HUGE Update: CHS.lua - Custom Health and more! [v1.3]

Posted: Tue Oct 11, 2022 6:44 am
by Marioman2007
Huge Update!

That's right an update just dropped, and a really huge one!
Changelog and download link are in the original post.
Enjoy!!


I hope there are no more bugs...