• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[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