HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Is there a way to make a unit use a certain skill that it has?

02-18-2004, 02:56 AM#1
Bustaboom
I want to know if it is possible for a unit make a unit use a spell using triggers like avatar or something if so please let me know how

Thank you
Busta
02-18-2004, 03:01 AM#2
Shimrra
Use the Unit - Use Ability and select your ability.
02-18-2004, 03:12 AM#3
Hiro
Ya but doesn't that only allow you to use abilities that shipped with the game?
02-18-2004, 03:18 AM#4
Bustaboom
Yes i was wondering if there was a way to just make a unit use a custom ability.
02-18-2004, 03:22 AM#5
Shimrra
It doesn't let you select customs? Hmm... Then I think you need to use Jass, but I can't help you there...
02-18-2004, 03:23 AM#6
Vilkacis
I dont even understand his question...
02-18-2004, 03:24 AM#7
Shimrra
He's asking how to make a unit cast a spell through triggers.
02-18-2004, 03:25 AM#8
Hiro
Ok he has a custom spell he made.

He wants to know how to make that spell be cast by using triggers.

The only way i know how is Unit->Issue order-> unit cast spell(something like that)

All thats there are spells that shipped with teh game.
02-18-2004, 03:26 AM#9
Vilkacis
errr...ok...does he like want it to cast it at a certain time??? And ya hiro those are the only ways of doin it...God i hate triggers...
02-18-2004, 03:40 AM#10
Shimrra
You have to convert it to JASS and replace the spell to be cast with the cast code for the custom spell. How you do this, however, I do not know.
02-18-2004, 03:45 AM#11
Grater
Just use the order for the spell it was based off.
02-18-2004, 03:46 AM#12
Vilkacis
if u edit a original spell yse this would work, but hes done screwed it up and made a custom BASED off a original.
02-18-2004, 03:59 AM#13
Grater
If you base an ability off avatar, just use order "Human Mountain King - Avatar." It works.
02-18-2004, 04:02 AM#14
Hiro
Heh i thought that was the case...... Damn you triggers!
02-19-2004, 03:22 AM#15
Adovid
Yes, if you tell to it issue order to unit with the root spell instead of your custom spell it will use your custom spell anyway because it is made with that root spell and it would be the only spell you have of that root. This does leave a problem with the fact that you might have 2 different abilities of the same root and you can probably use custom text to get around that.

I remember back before we had conditions that could interact with custom abilities. We had to check unit issued order and order comparison and when you use those it fires when the order is issued rather than when the unit is casting the spell. You can fire unwanted triggers from the other side of the map with that :).