- Joined
- Feb 27, 2019
- Messages
- 838
In contrast to having abilities that share order ID on the same unit being a problem it can be used for a purpose. Imagine a unit that has two abilities that share the same base ability and order ID. One of the abilities (one) has targets allowed set to none, the other (two) can target ground units. Hide ability two and make it inaccessible in the UI. Only ability one has a hotkey and is visible in the UI. What happens if ability one is cast on a ground target? Ability two is cast.
Some example use cases:
1. Have an autocast ability that doesnt autocast even if it has autocast on but can still target units manually
2. Have an ability that can target both Enemy, Hero and Friend, Non-hero but not Enemy, Non-hero or Friend, Hero
3. Have an ability be shown in the UI with a hotkey and be castable but the ability being cast is another ability
It adds some complexity to the logic since the ability being cast is not the one selected
Worth to note is it has UI issues with the green being cast border which is fixed flawlessly by the following example based on 2.:
Some example use cases:
1. Have an autocast ability that doesnt autocast even if it has autocast on but can still target units manually
2. Have an ability that can target both Enemy, Hero and Friend, Non-hero but not Enemy, Non-hero or Friend, Hero
3. Have an ability be shown in the UI with a hotkey and be castable but the ability being cast is another ability
It adds some complexity to the logic since the ability being cast is not the one selected
Worth to note is it has UI issues with the green being cast border which is fixed flawlessly by the following example based on 2.:
-
Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Ability being cast) Equal to Storm Bolt (Enemy Hero)
-
(Ability being cast) Equal to Storm Bolt (Friendly Non-hero)
-
-
-
-
Actions
-
Unit - For (Triggering unit), Ability Storm Bolt (Default), Disable ability: True, Hide UI: False
-
Unit - For (Triggering unit), Ability Storm Bolt (Default), Disable ability: False, Hide UI: False
-
Unit - For Unit (Triggering unit), start cooldown of ability Storm Bolt (Default) " over "1.00 seconds.
-
Unit - For Unit (Triggering unit), start cooldown of ability Storm Bolt (Enemy Hero) " over "1.00 seconds.
-
Unit - For Unit (Triggering unit), start cooldown of ability Storm Bolt (Friendly Non-hero) " over "1.00 seconds.
-
-