HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to make units cast custom spells

08-27-2009, 10:21 AM#1
deathminion1
The title says it all, any ideas?

best answer = +1 reputation
08-27-2009, 10:25 AM#2
Fluff
This is kind of a half answer, but if you base an ability on say, Bloodlust and give it to a unit and then order the unit to cast Bloodlust it will instead cast your new ability. This works at least some of the time as far as I can tell but I'm not sure what would happen if the unit had the original Bloodlust and a new spell based on Bloodlust. On what spell is your custom ability based?
08-27-2009, 10:51 AM#3
TKF
Quote:
Originally Posted by deathminion1
The title says it all, any ideas?

best answer = +1 reputation

I'm not sure what you mean, but do you mean triggered enchanced spells?

If so there are almost unlimited what you can do. From triggered buffed spells to projectile creation. If you're more spesific we can help you more easily.
08-27-2009, 01:17 PM#4
Anitarf
Quote:
Originally Posted by Fluff
This works at least some of the time as far as I can tell but I'm not sure what would happen if the unit had the original Bloodlust and a new spell based on Bloodlust. On what spell is your custom ability based?
You can't have two spells based on the same spell on the same unit. If you do, the unit will try to cast both whenever it is ordered to cast one of them, whether by triggers or by the user. An exception to this is the spell Channel because it has a data field for changing it's orderstring.
08-28-2009, 06:48 AM#5
deathminion1
The spell is being triggered, the custom spell is Unholy Frenzy and I'm trying to increase the attack speed of the affected units. Hope that helps narrow down my question.


+1 reputation Fluff (sorry Anitarf, I've already given you some before.)
08-28-2009, 12:57 PM#6
Anitarf
I'm still not sure I understand what the problem is. To answer your first post, you need to order the unit (with the unit-issue order targeting an object trigger action) to cast unholy frenzy. Not sure if that solves your problem, but as far as your question goes that answers it.
08-28-2009, 10:30 PM#7
deathminion1
I fixed the problem, thanks for your help.