[mod] Bandage FORKED [git] [0.2]

Posted:
Wed Jun 22, 2016 12:47
by azekill_DIABLO
Hello everyone! i'm happy to present you my fork of evermazah:bandage!
It's pretty simple, and useful, but maybe a bit OP... a great thing for
fun_caves dangerous world!
When you take damage, 1 to 3 bandage are automatically applied and saves you one HP on the total damage.
ENJOY!!!
CODE ๏
DOWNLOAD
Re: [mod] Bandage FORKED [git] [0.2]

Posted:
Thu Jun 23, 2016 11:43
by everamzah
I like it. I noticed you are registering bandage:bandage twice, however, and you could remove one of those definitions. The different texture looks interesting, care to post a screenshot of it in-game? In the original version, one was able to use the bandage directly with on_use(), but I see you've removed that in your version for whatever reason.
Re: [mod] Bandage FORKED [git] [0.2]

Posted:
Thu Jun 23, 2016 13:26
by azekill_DIABLO
i removed the on use becuase other medkit stuff is coming!
Re: [mod] Bandage FORKED [git] [0.2]

Posted:
Thu Jun 23, 2016 13:28
by azekill_DIABLO
edited the code! thank you for seeing my error :)
Re: [mod] Bandage FORKED [git] [0.2]

Posted:
Thu Jun 23, 2016 13:28
by azekill_DIABLO
azekill_DIABLO wrote:no one like this :(
was a bit dramatic, sorry ':)

Posted:
Thu Jun 23, 2016 17:01
by Hybrid Dog
https://github.com/azekillDIABLO/bandag ... it.lua#L23l don't understand your code, it returns -2 if the hp change is cancelled,
so a working bandage sets hp reduction to -2 hp even if hp_change is probably only -1 hp?
Re: [mod] Bandage FORKED [git] [0.2]

Posted:
Thu Jun 23, 2016 17:16
by everamzah
There's always
doom wads. But seriously, if you made a mod called worldedit_extras and included chatcommand_delays in it, I bet it would get used a lot. I never like to use WorldEdit. I may be posting in the wrong thread.
Re:

Posted:
Thu Jun 23, 2016 17:34
by azekill_DIABLO
Hybrid Dog wrote:https://github.com/azekillDIABLO/bandage/blob/master/init.lua#L23
l don't understand your code, it returns -2 if the hp change is cancelled,
so a working bandage sets hp reduction to -2 hp even if hp_change is probably only -1 hp?
i think it's a great thing to make the damage harder with this mod...but your true, it's weird. i may fix it

Posted:
Thu Jun 23, 2016 17:45
by Hybrid Dog
everamzah wrote:There's always
doom wads. But seriously, if you made a mod called worldedit_extras and included chatcommand_delays in it, I bet it would get used a lot. I never like to use WorldEdit. I may be posting in the wrong thread.
To make using e.g. worldedit easier (less typing) l made the chatcommand tool mod.
l don't want to put chatcommand_delays into my worldedit_extras mod because chatcommand_delays is supposed to work independently for any chatcommand and not only for worldedit.
(chat)command tool:
https://github.com/HybridDog/command_toolworldedit_extras (note that l hardly work on this mod):
https://github.com/HybridDog/worldedit_extrasmy worldedit fork:
https://github.com/HybridDog/Minetest-WorldEdit
to not be too offtopic: metaphorically l tried to put a bandage on everamzah's problems, you are not capable of making bandages which can do this, are you?
ln my opinion if you don't take damage when walking through a scratchy dry shrub, you also shouldn't take damage when pulling off a patch.
Re: [mod] Bandage FORKED [git] [0.2]

Posted:
Thu Jun 23, 2016 18:09
by everamzah
I dunno,
mine are just to warn me and save me when I almost die on fun_caves. I'd love to add other goodies, but I'm novice at best.
I'm not surprised you actually had a worldedit_extras mod. You have, it seems, many great mods that do very interesting things. I always enjoy your screenshots and wish I understood any of the code snippets.
Re: [mod] Bandage FORKED [git] [0.2]

Posted:
Thu Jun 23, 2016 18:35
by azekill_DIABLO
can u stop the offtopic discussion?
Re: [mod] Bandage FORKED [git] [0.2]

Posted:
Fri Jun 24, 2016 16:53
by azekill_DIABLO
added a craft for bandage and a medkit :)