• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Load/Unload

Status
Not open for further replies.
Level 3
Joined
May 28, 2015
Messages
41
yes but not inside hero but somewhere outside where no player is hitting or going to your place

couldn't the heal be done if you set negative values for dmg in devour ability? i mean wouldn't the unit be healed instead of being damaged?
 
Level 14
Joined
Jul 26, 2008
Messages
1,009
The hero wouldn't be able to leave or be unloaded if it's devoured. (I think. Haven't paired devour and unload together before)

Alternatively, you could GUI or Script it yourself, which may be the least messy way.

To do that easily, you would need AutoIndex and AutoEvents, and perhaps a little knowledge of JASS or GUI + Custom Scripts.

You could do it without those by creating your own load/unload abilities. When you use the load ability on a unit, you store that unit in a variable and hide it. When you unload it, or when the unit dies, you move the unit to the unloading unit and unhide it.
While it's hidden, you heal the unit.

For more details on how to create something like that, ask in the Trigger zone.

I used something similar in my 11th Vampire map with the Osirian Vampire.
 
Level 11
Joined
Jan 23, 2015
Messages
788
couldn't the heal be done if you set negative values for dmg in devour ability? i mean wouldn't the unit be healed instead of being damaged?

That's the first thing that came on my mind but devour doesn't work as he wants it to, it can only carry one unit at a time and it will drop it only when it dies.
The best way I can think of right now is use boats' load ability and when you load a unit you give it item ability ring of regeneration with the bonus hp regen you want.
 
Level 14
Joined
Jul 26, 2008
Messages
1,009
That's not bad however, how do you detect if a unit is unloaded via clicking the unit in the cargo list?
A player could exploit this issue easily.

http://www.hiveworkshop.com/forums/...-unloading-please-help-me-159051/#post1480564

This link does sort of touch on the same concept. It would take some extra rigging to make it work bug-free though. Once again best to start that journey in the Trigger Zone if you go that route.
 
Status
Not open for further replies.
Top