• 🏆 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!

...Commanding someone to use a Custom Spell...

Status
Not open for further replies.
Level 6
Joined
May 26, 2010
Messages
190
I made a spell. It has a lot of levels and didn't take a short time to make. I fucked up and made him a Custom spell, when I want a Computer to automatically use the spell as AI.
How do I do this?
Can I somehow change the spell/copy it over another non-custom spell?
Halp.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
The AI will use all custom spells like it uses normal spells (they inherit the same AI characteristics). Thus spells based on shockwave will automatically be cast in combat. Spells based on death pact will never be cast (no AI for these spells).

You can always order units to cast them via triggers. Be aware that GUI is retarded and is confusing when it comes to doing this. Triggers actually issue orders to the unit to cast the spell via an order string or an order identifier. In GUI it looks like you can only order non custom spells but actually it is refering to the order that non custom spell uses. Thus ordering a unit to use tauren chieftain shockwave in GUI will also order it to use a custom shockwave.

If you use JASS, you will realise they share the same order string both abilities (custom and normal) so this is less confusing. Although you can change the order string for most abilities, it will mostly never work and almost always still use the order the parent had (channel being one of the few exceptions).
 
Level 6
Joined
May 26, 2010
Messages
190
You don't say.. Didn't connect the 'Order string - Use' in object editor to the trigger order.
Can't I just do use the action 'General - Custom Script' to order the unit to use the spell's string?
 
Last edited:
Status
Not open for further replies.
Top