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!
Quoting myself makes me confused sometimes by whatever. Btw you should use search engine, there were tons of such issues already.
You have to trigger it.
What's the spell you have based your custom one on?
If its normal ladder skill you can refer to it via actions. Lets say it's custom chain lightning.
Unit - Order Yourunit to Orc - Far Seer: Chain Lightning YourTarget
There are 3 types of actions Unit - Issued an order:
- no target
- target object (one for unit, one for destructible, one for item)
- target location
Find the one you need in Unit section in Actions and from filter select the 'base' ability.
If your spell isn't ladder one (egzample channel) you can always use:
JASS:
// For location
native IssuePointOrder takes unit whichUnit, string order, real x, real y returns boolean
// Target
native IssueTargetOrder takes unit whichUnit, string order, widget targetWidget returns boolean
// No target
native IssueImmediateOrder takes unit whichUnit, string order returns boolean
Ofcourse you can write it with custom scripts in GUI - don't worry.
There is also alternative: you can always replace those functions with 'ById' ones - so instead of 'string' (order egzample: "thunderbolt") you can write the Id (integer number) of given order.
if you have the right 'base' spell, like storm bolt/chainlightning, etc... then you dont need to trigger the AI to cast that spell coz they will automatically cast it, based on the link I gave to you...
It's simple. You have to order CPU to cast your custom spells via triggers. mckill2009 said that CPU cast ladder based spell without triggers - although half true because if your ladder spell has no effect (whole effect is triggered) you are still forced to trigger that reaction yourself.
The second part of my replay (the one after 'If your spell isn't ladder one (egzample channel) you can always use:') teaches you how to order computer player to cast not ladder spells (like chanel, etc.).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.