Hi,
I want to create a summon ability.
This ability has 2 types of units: ground and air.
I'm dont know how exactly the charges of an ability work but I think they could be used for this. Basicly what I want is:
- Each spawn-unit-ability has its own amount of charges. If a unit dies the summoner gets a charge back
- Each group has a spawn limit (e.g. 3 units).
- The amount and the limit should be editable
The Charge approach would definitely work for this. Just make your summon abilities share their charges on the unit, set max charges to 3, consume 1 for each summon, and add a behavior to the summons, which restores a charge for the caster, when the unit dies, via a Modify Unit effect.
Thanks...that helps alot.
My problem is the individual charges. I think its best with an example.
Lets say the summoner can spawn:
- 2 zealots
- 2 stalker
- 1 immortal
but only 3 units in total. If I use the charges on the unit the summoner could spawn 3 zealots right?! But I dont want that. Is that still possible with charges or do I need behaviour-count-system to do limit the spawn amount?
If your summoners are limited to 1 per player, you could use requirements to check for the amount of units instead, but if one player can have multiple summoners, I would probably count behaviors as you suggest.
Hi, I want to create a summon ability.
This ability has 2 types of units: ground and air.
I'm dont know how exactly the charges of an ability work but I think they could be used for this. Basicly what I want is:
- Each spawn-unit-ability has its own amount of charges. If a unit dies the summoner gets a charge back
- Each group has a spawn limit (e.g. 3 units).
- The amount and the limit should be editable
Any ideas? I'm open for everything.
The Charge approach would definitely work for this. Just make your summon abilities share their charges on the unit, set max charges to 3, consume 1 for each summon, and add a behavior to the summons, which restores a charge for the caster, when the unit dies, via a Modify Unit effect.
Added an example map.
@Kueken531: Go
Thanks...that helps alot. My problem is the individual charges. I think its best with an example. Lets say the summoner can spawn:
- 2 zealots
- 2 stalker
- 1 immortal
but only 3 units in total. If I use the charges on the unit the summoner could spawn 3 zealots right?! But I dont want that. Is that still possible with charges or do I need behaviour-count-system to do limit the spawn amount?
If your summoners are limited to 1 per player, you could use requirements to check for the amount of units instead, but if one player can have multiple summoners, I would probably count behaviors as you suggest.
@Kueken531: Go
Using requirements that count completed at unit work since the create unit effect is linked to the caster.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
nice. I can always count on you guys to know a solution.
I dont have the time to do this right now...but I think that should not be a problem.
Thanks and solved