- Joined
- May 13, 2023
- Messages
- 156
I am making a variation of SC1 Queen's Infest Command Center spell for WC3.
I don't want to make it target only specific Town Halls, so I am making some changes, but I have no idea if it is possible to implement them.
1. My first idea is to make a Parasite-like ability that spawns X units if the target building dies within 3 seconds, where X is equal to (Max building HP)/(Max spawned unit HP) - no less than 1, and rounded down.
However, I can't figure out how to register if dying unit had a specific buff - Unit Dies event with check for buff does not show unit as having that buff.
2. Second idea is to make a Channel ability, then if during the cast duration the building is at 50% or less health, change building owner to the caster player, disable all training, upgrade and research available in it and add the Infested unit as a mercenary (Sell unit ability + trigger action).
But I have no idea how to disable trainable units and researchable upgrades (including upgrading the building itself).
Can someone suggest to me solution to either of these issues?
I don't want to make it target only specific Town Halls, so I am making some changes, but I have no idea if it is possible to implement them.
1. My first idea is to make a Parasite-like ability that spawns X units if the target building dies within 3 seconds, where X is equal to (Max building HP)/(Max spawned unit HP) - no less than 1, and rounded down.
However, I can't figure out how to register if dying unit had a specific buff - Unit Dies event with check for buff does not show unit as having that buff.
2. Second idea is to make a Channel ability, then if during the cast duration the building is at 50% or less health, change building owner to the caster player, disable all training, upgrade and research available in it and add the Infested unit as a mercenary (Sell unit ability + trigger action).
But I have no idea how to disable trainable units and researchable upgrades (including upgrading the building itself).
Can someone suggest to me solution to either of these issues?
