HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Casting an ability the hero doesn't have

11-05-2005, 12:15 PM#1
Father_Chaos
Is there a way to use the "Issue Order Targeting..." triggers to make a hero cast an ability he doesn't have? Using dummy abilities maybe? I don't know...

Thanks!
11-05-2005, 12:46 PM#2
LegolasArcher
No, you cannot using any "simple" means. You can, however, add the ability to the hero, order him to cast it, then remove it afterwards. A better solution might be to create a dummy unit that would by given the ability you want to cast, cast it, then killed. This would prevent icon problems on the actual hero.
11-05-2005, 03:18 PM#3
Father_Chaos
Quote:
Originally Posted by LegolasArcher
A better solution might be to create a dummy unit that would by given the ability you want to cast, cast it, then killed. This would prevent icon problems on the actual hero.
That sounds good, but could you give me an example?
11-05-2005, 03:25 PM#4
LegolasArcher
Quote:
Originally Posted by Father_Chaos
Quote:
Originally Posted by LegolasArcher
A better solution might be to create a dummy unit that would by given the ability you want to cast, cast it, then killed. This would prevent icon problems on the actual hero.
That sounds good, but could you give me an example?

Make a unit with no model and the ability "Locust" in the object editor. Make any abilities you wish to cast in this manner unit abilites with no mana cost or casting time. When you want to make the hero "cast" one of these abilities:

1. Create one of the dummy units at the location of the hero.
2. Add the ability you wish to cast to the dummy unit.
3. Give the unit a short timed life (~1-2 seconds).
4. Order the unit to cast the ability that you just added.
11-05-2005, 03:28 PM#5
Tim.
Create a unit with no model, give it Carrion Swarm.
Create your Hero and give it 'DummySpell'

Create a trigger for when the ability 'DummySpell' is cast.
--Create DummyUnit at position of Casting Unit
--Order DummyUnit to cast Carrion Swarm
--Remove DummyUnit from game

Nice and simple, although it leaks. Once you get the trigger working you can easily remove the leaks.

Edit: LegolasArcher you posted just before I did .