PDA

View Full Version : [Trigger] Make Structure Cast Ability


crazy_spray
10-10-2008, 09:26 AM
Ok this is probaly very easy to do, but how do you make a structure cast an abilty it has.

Hoernchen
10-10-2008, 09:32 AM
Well it is, simply search for the item ability "Create small Townhall" which you can purchase as human in wc3. Then change the buildings in the list to 4x the building you want.

Avator
10-10-2008, 09:33 AM
Make a dummy unit to cast it when you click the ability's button. There are tutorials about dummy units on this forum. It will tell you what dummy units are, what they do and how to make them.

crazy_spray
10-10-2008, 09:38 AM
I am making a preschool/micro tournament map and I want it to be automaticly sent by an abilty. For varying reasons including not being able to upgrade without pressing escape 7 times. I just want a way to make it use the abilty as soon as the cooldown is gone. Sorry I didnt put this in the first post!

Hoernchen
10-10-2008, 09:57 AM
Oh, misunderstood. Use channel and then always use the same orderid for your spells and simply order the building the according order when you need to.

crazy_spray
10-10-2008, 09:58 AM
Umm, I don't understand. Sorry. Im not very good at triggers. Could you show me an example please?

bReathl3sS
10-10-2008, 11:05 AM
lets say the ability has a cooldown of 15 seconds. then make a trigger with the event u need to start off and then let the trigger run: cast ability, pause of 15.5 (to avoid problems) and then run the trigger again.

crazy_spray
10-10-2008, 11:15 AM
I don't know how to make it cast an abilty in actions. I can't find anything like it.

Avator
10-10-2008, 11:22 AM
To make a spell trigger, you need to make a complete trigger


Events
A unit starts casting an ability
Conditions
Ability being cast is equal to <YOUR ABILITY>
Actions
Whatever you want it to do

crazy_spray
10-10-2008, 11:24 AM
Is there an action to force a unit to cast an ability?

bReathl3sS
10-10-2008, 11:27 AM
Unbezeichneter Auslöser 005
Events
Your event
Conditions
your conditions if you need some
Actions
Unit - Order (*your unit*) to *the ability*
-------- careful with your spell whether its a target spell, no target spell etc. --------
Wait 15.50 seconds
Trigger - Run (This trigger) (checking conditions)

here is an example

crazy_spray
10-10-2008, 11:29 AM
Thank you somuch!

crazy_spray
10-10-2008, 11:33 AM
I can't find an action which is anything like that.

Avator
10-10-2008, 11:44 AM
It's under 'Unit - Issue order targetting ...'
If it's an ability that's targetted to a point, choose 'Issue order targetting a point'. If it's on a unit, choose 'Issue order targetting a unit'.