• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Trigger To Cast Spell

Status
Not open for further replies.
Level 2
Joined
Feb 5, 2008
Messages
6
I need a Unit to cast a spell at a certain interval.......And im wondering if casting a spell via Trigger is possible?-
Also This Unit Will Be Under Computer Control So That Why I'd Like To Do It With Triggers
 
Level 6
Joined
Jun 30, 2006
Messages
230
Yes... but what spell do you want it to cast? and what event triggers it? It's hard to help you if you don't help us.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
And now this thread will move unto another 20+ comments concerning "why can't I use my own custom abilities in the unit order ?".

To stop that (I wish :huh:) ill just type it all now.


When you order a unit to cast a spell on a unit/target/no target, you will notice you can only use some preset (blizzard made) spells.

So, how would we use our own spells ? :confused:

Go to your custom spell and search the Order ID lines, the exact names are
  • Text - Order String - Activate
  • Text - Order String - Deactivate
  • Text - Order String - Turn Off
  • Text - Order String - Use/Turn On

Tip: Most spells use the "Use/Turn On" box.

As you can see, the value of it is usually the spell's name in one word, thats the Order ID.

Now lets say you want to cast a custom Fire Bolt (or any target-unit based spell that ).
You would create the ability you want (it doesn't have to be based on Fire Bolt), then change the Order ID of it to "firebolt".
And finaly, if you would order your unit to cast Fire Bolt on a unit, it will cast your own custom ability.

Warning! If you have more then 1 ability based on the same Order ID in the same unit it will bug those abilities for that unit ! Stick with 1 Order ID type per unit.
 
Status
Not open for further replies.
Top