• 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.

How to summon limited number of permanent units without expiration timer?

Level 5
Joined
May 10, 2024
Messages
57
Hi. I want to create a custom raise dead spell. What I have in mind:

1. Skeletons should not have expiration timer. Not a 100000 second unit.
2. Skeletons should be Summoned. Is Summoned == true.
3. Maximum number should be limited to 6.
4. It is an autocast spell.
5. Autocast is not triggered if 6 skeletons are summoned.
6. If player manually use raise dead when 6 skeletons are alive then 2 of them will die and 2 will raise.

I've seen this spell some time ago in one of the custom campaigns on this site and it worked as I described above. As far as I remember I didn't found any information about this spell in map files! The mission was on icy terrain about Lich which should raise few Necropolis (Monolits) to restore Undead power. One of the monolits was at the top of the mountain with spiral road to the tip with millions of meat wagons on the walls.
 
Level 30
Joined
Aug 29, 2012
Messages
1,383
The crypt lord carrion beetle spell, units are permanent, summoned, autocast and up to a certain number

1735078788025.png


I don't think 6/ is handled so you'll have to either find a way around it or forget it, but otherwise it's 100% the spell you're looking for
 
Level 5
Joined
May 10, 2024
Messages
57
I want to make the same with water elemental spell. Autocast is not important in that case. I thought if I modify Stats - Targets Allowed of carrion beetle spell it would work but I can't find proper combination. It is always looking for a corpse.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
When a water elemental is summoned, save its location and remove the elemental. Then spawn corpse there by killing a dummy or using the graveyard ability. Dummy cast carrion beetle summoning a ‘correct’ water elemental. If you keep one invulnerable permanent dummy for each player for just this purpose then the beetle count in the OE will be respected.
 
Top