• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Adding ability for all units of certain type

Status
Not open for further replies.
Level 7
Joined
Dec 5, 2013
Messages
280
I dont understand how to add ability for all units of certain type. In trigger options there is no such as "unit group add ability"
 
I dont understand how to add ability for all units of certain type. In trigger options there is no such as "unit group add ability"

This is still done through unit groups though.

Use the unit group action that allows you to add other actions into it(Pick every unit in group and do actions)
Then inside it you can put Unit - Add ability.

Adding abilities to unit types can not really be done ingame.
 
But it requires to select spesific unit, thus not granting ability for all units of that group
 
Set TempGroup = Units in playable map area

Pick Every Unit in TempGroup
Set TempUnit = Picked Unit
If TempUnit = Alive
Unit type of TempUnit = The Type you want to add ability too
Any other conditions such as for a specific player only?
Then
Add your Ability to TempUnit

call DestroyGroup(udg_TempGroup)

For the auto casting of abilities..either trigger it..or base the abilities off of ones that units automatically. (https://www.hiveworkshop.com/forums...ustom-spells-cast-melee-game-ai-units-193280/) This is a good guide for the latter
 
I have manually given ability to one unit which is hero because normal units dont seem to work with abilities. But other unit just doesnt work, even though its also a hero. Im trying to get enemy hero/neutral hostile to cast immolate randomly but they just autoattack

Hero that works, has the ability active slot N/A while the hero that doesnt work has active box checked

How to trigger units to cast abilities randomly when in combat?

It seems that hero cannot cast certain abilities, how to fix that?
 
I have manually given ability to one unit which is hero because normal units dont seem to work with abilities. But other unit just doesnt work, even though its also a hero. Im trying to get enemy hero/neutral hostile to cast immolate randomly but they just autoattack

Hero that works, has the ability active slot N/A while the hero that doesnt work has active box checked

How to trigger units to cast abilities randomly when in combat?

It seems that hero cannot cast certain abilities, how to fix that?

I'm not entirely sure what is causing your problem, but for me when orders are not followed it usually means using the wrong order.
Immolate and most other toggleable abilities have 2-3 orders.
Possible ones:
1. Cast
2. Autocast on
3. Autocast off

However, they are named differently.

For immolation there's 2 orders.
"immolation" for turning on and
"unimmolation" for turning off.
 
Status
Not open for further replies.
Back
Top