• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Mend Item

Status
Not open for further replies.
Level 11
Joined
May 26, 2009
Messages
760
Greetings,

Maybe I'm dumb or maybe I'm just too tired right now, but here it goes.

I have a consumable item called Full Mend with a varying amount of stacks. This item should be able to be used by a unit on either itself or an ally/neutral. When the item is used on self it will channel heal in intervals of 1 second for 10 seconds. Channeling the ability can be canceled by moving. It is also canceled when taking damage. If the item is used on an ally the manipulating unit channels the same effect. The ally can move around without canceling the channeling ability, but the ability is interrupted if the ally or manipulator takes damage. Also, a buff should be displayed on the unit that is being mended. When the ability ends (in whichever way) it turns into a Empty Mend item with one stack.

I think this is similar to World of Warcraft's first aid bandage system.

I'd prefer if the ability was in GUI with only few custom scripts if necessary.

Thanks in advance!
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
How does the stack size affect the healing? And by stack you mean charge?

Well test this: -Link removed-

I used wait for replacing the item when it becomes empty. A timer would be better but I was lazy.

And it isn't completely MUI yet. It won't work interrupt the healing correctly if the same unit casts it one two units. I'll fix it.

EDIT: Fixed, a bit of hashtable indexing. It should work correctly now.

http://www.hiveworkshop.com/forums/pastebin.php?id=qj70z8
 
Last edited:
Level 11
Joined
May 26, 2009
Messages
760
How does the stack size affect the healing? And by stack you mean charge?

Well test this: -Link removed-

I used wait for replacing the item when it becomes empty. A timer would be better but I was lazy.

And it isn't completely MUI yet. It won't work interrupt the healing correctly if the same unit casts it one two units. I'll fix it.

EDIT: Fixed, a bit of hashtable indexing. It should work correctly now.

http://www.hiveworkshop.com/forums/pastebin.php?id=qj70z8

I meant charges. And it doesn't matter how many charges, the effect is the same. I think I just wanted to tell you that it has charges :p

With some visual design changes this will work very well.

Thanks a bunch to you Maker!
 
Status
Not open for further replies.
Top