Spell uses Base Order ID to refer to the String Order it suppose to fire off.
Every spell has its own Base Order ID, like Storm Bolt, it uses the string "thunderbolt" to order a unit that has any spell related to "thunderbolt"-based Order ID to cast that spell;
-
Custom script: call IssueTargetOrder(whichCaster, whichStringId, whichTarget)
Let's say you have a
Caster that will cast Banish (
banish - Base Order ID) to a
Target.
Your script should look like this;
-
Custom script: call IssueTargetOrder(udg_Caster, "banish", udg_Target)
This will order your Caster to trigger any spell that is based on "banish" Order ID to the Target.
If you base your spell from an ability named "Channel", that ability can have any Base Order ID changed in the
Data - Base Order ID in the Object Editor.
Make sure to know what target-type required for your spell.
In this case, it's Target-unit, so what if your spell is Instant-target or Target-ground ?
Instant-target;
-
Custom script: call IssueImmediateOrder(whichCaster, whichStringId)
Target-ground;
-
Custom script: call IssuePointOrderLoc(whichCaster, whichStringId, whichLocation)
Nothing is easy, but once you grab it, it's easy for life.