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.
JASS:
native IssueTargetOrderById takes unit whichUnit, integer order, widget targetWidget returns boolean
As you see, instead of 'string' function requires integer variable. If you gonna follow that method
this will be usefull for you.