• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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