[mod] Bandage FORKED [git] [0.2]

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

[mod] Bandage FORKED [git] [0.2]

by azekill_DIABLO » Wed Jun 22, 2016 12:47

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!!!

CODEDOWNLOAD
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Bandage FORKED [git] [0.2]

by azekill_DIABLO » Thu Jun 23, 2016 10:45

no one like this :(
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
everamzah
Member
 
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [mod] Bandage FORKED [git] [0.2]

by everamzah » Thu Jun 23, 2016 11:43

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.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Bandage FORKED [git] [0.2]

by azekill_DIABLO » Thu Jun 23, 2016 13:26

i removed the on use becuase other medkit stuff is coming!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Bandage FORKED [git] [0.2]

by azekill_DIABLO » Thu Jun 23, 2016 13:28

edited the code! thank you for seeing my error :)
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Bandage FORKED [git] [0.2]

by azekill_DIABLO » Thu Jun 23, 2016 13:28

azekill_DIABLO wrote:no one like this :(

was a bit dramatic, sorry ':)
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

by Hybrid Dog » Thu Jun 23, 2016 17:01

https://github.com/azekillDIABLO/bandag ... it.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?

+ Spoiler
Last edited by Hybrid Dog on Fri Jun 24, 2016 06:28, edited 1 time in total.
 

User avatar
everamzah
Member
 
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [mod] Bandage FORKED [git] [0.2]

by everamzah » Thu Jun 23, 2016 17:16

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.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re:

by azekill_DIABLO » Thu Jun 23, 2016 17:34

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
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

by Hybrid Dog » Thu Jun 23, 2016 17:45

+ Spoiler

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.
Last edited by Hybrid Dog on Fri Jun 24, 2016 06:28, edited 1 time in total.
 

User avatar
everamzah
Member
 
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [mod] Bandage FORKED [git] [0.2]

by everamzah » Thu Jun 23, 2016 18:09

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.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Bandage FORKED [git] [0.2]

by azekill_DIABLO » Thu Jun 23, 2016 18:35

can u stop the offtopic discussion?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Bandage FORKED [git] [0.2]

by azekill_DIABLO » Fri Jun 24, 2016 16:53

added a craft for bandage and a medkit :)
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 9 guests

cron