• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Spell cast help(GUI)

Status
Not open for further replies.
Level 9
Joined
May 30, 2008
Messages
430
First you need to know if the spell is cast when you : click on unit, click on point, just click on the spell like Wind Walk etc. Then you select the corresponding order for example for Chain Lightning is click on unit. It's kinda logical just go play with it.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
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.
 
Status
Not open for further replies.
Top