You need to set autocast range for the ability and check the "autocast is on" flag.
Development > AI Development
How to make my unit to use his abi
- 10 posts
-
Zolden Author
- Battle.net
- Zolden
- #929 EU
- Join date
- Apr 13, 2011
- Location
- Russian Federation
- Reputation
- 71
- Posts
- 1,074
- Projects
- 4
- Last login
- May 23, 2013
-
xxxNEARBYxxx Regular Shmoe
- Join date
- Jun 27, 2011
- Location
- Russian Federation
- Reputation
- 0
- Posts
- 226
- Last login
- May 21, 2013
Already tried it. But it looks not good when hero has all abilities as auto-cast... thats why I need normal ability.
-
Trieva Author
- Battle.net
- Trieve (NA + SEA)
- #203 NA
- Join date
- Jun 22, 2011
- Location
- Australia
- Reputation
- 6
- Posts
- 944
- Projects
- 2
- Last login
- May 13, 2013
It depends on what you want. Are the AI units supposed to react with certain abilities? I haven't used the data module but with triggers there are ways to check when you want the units to use particular abilities and tell units which abilities to use.
Current Project: SquadCraft 2
Project Page
Feedback Thread
Latest Video
Published Regions: SEA, NA, EU, KOR
Status: Open Beta -
Zolden Author
- Battle.net
- Zolden
- #929 EU
- Join date
- Apr 13, 2011
- Location
- Russian Federation
- Reputation
- 71
- Posts
- 1,074
- Projects
- 4
- Last login
- May 23, 2013
Try to add an autocast validator for each ability. Validator of "number of behavior x = 0".
Each ability will have its own validator and own behavior. And each ability will apply its behavior on the the caster. Behavior duration time will be equal to ability's recharge time.
For example: you have 3 abilities (A1, A2, A3) and 3 behaviors (B1, B2, B3).
A1 applies B1 to caster. A2 applies B2 to caster. A3 applies B3 to caster.
A1 autocast validator is "number of B1 = 0"
A2 autocast validator is "number of B2 = 0"
A3 autocast validator is "number of B3 = 0"The idea is simple: unit can only have 1 autocasted ability, but after the cast happens, its autocast become temporarily disabled, and unit kinda switches to another ability to autocast. I'm not sure it will work, but worth a try.
-
Trieva Author
- Battle.net
- Trieve (NA + SEA)
- #203 NA
- Join date
- Jun 22, 2011
- Location
- Australia
- Reputation
- 6
- Posts
- 944
- Projects
- 2
- Last login
- May 13, 2013
-
xxxNEARBYxxx Regular Shmoe
- Join date
- Jun 27, 2011
- Location
- Russian Federation
- Reputation
- 0
- Posts
- 226
- Last login
- May 21, 2013
Facepalm to all. As I said no need autocast, no need couple of trash behaviors and no need triggers... cus ai uses blizzard abilities when I add "Start ai for player" trigger action, but my custom abilities ai not wana to use.
-
rikky333 Author
- Battle.net
- ThunderEagle
- #516 EU
- Join date
- Aug 18, 2011
- Location
- Netherlands
- Reputation
- 11
- Posts
- 268
- Projects
- 11
- Team
- Last login
- May 22, 2013
what kind of ability it is an train ability an cast ability an smart cast ability an target require ability an area ability ?
and is the unit you use turnable ? if it is not turnable you must made the arc on the ability 360
Last edited Oct 24, 2012 by rikky333sorry for some bad English i m dyslectic :(
-
xxxNEARBYxxx Regular Shmoe
- Join date
- Jun 27, 2011
- Location
- Russian Federation
- Reputation
- 0
- Posts
- 226
- Last login
- May 21, 2013
It active ability like psi storm, blink, etc. I've created Tactical Ai Data, Target Finds and Tactical Ai Cooldown in the Data editor for my hero. Added trigger which starts campaign ai for the owner of my hero. But it not works(
-
DemoniacMilk Regular Shmoe
- Join date
- Feb 14, 2013
- Location
- Germany
- Reputation
- 0
- Posts
- 15
- Last login
- May 09, 2013
No idea if this might help, but in each effect there is an AI flag containing options like "help friend" or "hurt enemy". The abilities themselves have an option "AI Notify Effect".
Never tried that, but might help!
- 10 posts
xxxNEARBYxxx Regular ShmoeI has custom unit with custom abilities, but he never cast them. Is there any AI trigger action which will cause my unit to cast abilities? Or another way?