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!
still cant figure this out. how to make unit order to cast custom ability (on a point). when i browse the orders there are like "move to" and then only default abilities like "tinker - cluster rockets" but no option for variables or something.
still cant figure this out. how to make unit order to cast custom ability (on a point). when i browse the orders there are like "move to" and then only default abilities like "tinker - cluster rockets" but no option for variables or something.
Custom abilities are still based off of regular ones. You should look at the custom ability in the object editor for: "Text - Order String - Use/Turn On" and use that one. For example, I have a custom ability called "Reprogram" that was based off of aerial shackles. The order is "magicleash" in the world editor. So if you order my unit to cast aerial shackles, he will actually cast Reprogram. The only thing to be worried about is if the unit had both Aerial Shackles and Reprogram...in which case weird stuff would happen.
I'll paste one of my answers for question like this:
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 locction
Find the one you need in Unit section 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 like: "thunderbolt" you can write the Ids of orders.
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.