- Joined
- Jul 9, 2010
- Messages
- 297
I've already made quite a lot of LUA-based custom abilities that need a "dummy" ability that upon casting on target or location run my script magic. At first I based them on Channel ability like the ones made by e.g. @chopinski . But I ran onto a problem: Heroes controlled by AI or simply computer player do not use these abilities at all. Most basic abilities probably have their use condition hardcoded (e.g. cast Holy Light when ally has less than X% health), but Channel most likely doesn't. Also I can't order using these abilities against particular targets via triggers (Channel is only available in "no target" ability order), although perhaps it's doable via script with custom order id.
So now I'm trying to use some vanilla abilities as base and while abilities cast around player work great based on Fan of Knives and for ones against groups of targets I use Carrion Swarm, with those against a single enemy I'm hitting the wall. Some have hardcoded behaviours that can't be disabled while others e.g. Shadowstrike or Stormbolt retain their original graphical effect and sound even though I removed every effect and buff from my custom ability based on them (I think it worked before Reforged). Finger of Death doesn't have this problem and can be easily turned into "dummy", but AI isn't using it either.
Reforged of course.
So, how else can I approach this? How the hell can I make script-based abilities usable by AI without a bunch of ugly hacks?
So now I'm trying to use some vanilla abilities as base and while abilities cast around player work great based on Fan of Knives and for ones against groups of targets I use Carrion Swarm, with those against a single enemy I'm hitting the wall. Some have hardcoded behaviours that can't be disabled while others e.g. Shadowstrike or Stormbolt retain their original graphical effect and sound even though I removed every effect and buff from my custom ability based on them (I think it worked before Reforged). Finger of Death doesn't have this problem and can be easily turned into "dummy", but AI isn't using it either.
Reforged of course.
So, how else can I approach this? How the hell can I make script-based abilities usable by AI without a bunch of ugly hacks?