• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

HIVE

Pyrogasm
Pyrogasm
Unit enters playable map area event. A unit must enter the map to exist. Unless I don’t understand the scope of when you want it added to units.
Devalut
Devalut
I'm afraid of the world editor, I don't know what horrors may appear if I try something new.

Also it indeed does work, however I can't seem to detect ankhs or reincarnation. Hive search brings up various solutions, 1. being Unit event/indexer or 2. detecting item usage.
Pyrogasm
Pyrogasm
No those will not trigger the event because the unit never leaves the map. I thought reviving a unit at an altar would trigger the enters map event again?

In any case once you add the ability you don't need to add it again when the units are revived since they already have it! It may require that you use UnitMakeAbilityPermanent on them for the abilities to persist through death (like you must to persist through a morph).
Devalut
Devalut
Oddly enough reviving from altar works.
The fact that they still have the ability is a good point...
Devalut
Devalut
So I managed to make it work, but now the issue is how can I tell if a non-hero has completely decayed and no longer revivable? I'd like to de-index it after this point.

Nvm, seems like only Unit Decays or "call TriggerRegisterAnyUnitEventBJ(<trig>, EVENT_PLAYER_UNIT_DECAY)"

SCRATCH THAT, it means it fails the moment the unit turns into a skeleton, I want to remove them when the skeleton is no longer useable.

Found a way from someone on the discord: Unit type of X (equal to) to "no unit-type"
Pyrogasm
Pyrogasm
This was quite a ride to read. ^^
Devalut
Devalut
Then lost 20% of my work because I touched some terrain.
Blizzard you fiends.
Top