• 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.

How can i convert an coustom spell

Status
Not open for further replies.
That spell is based on Channel and has an order Id of "unsubmerge". To order your unit to cast it, have the spell learned (if it's a hero) and then use this trigger:
  • Set Unit = (Your unit <gen>)
  • Set Point1 = (The point you want)
  • Custom script: call IssuePointOrderLoc (udg_Unit, "unsubmerge", udg_Point1)
  • Custom script: call RemoveLocation (udg_Point1)
Use the trigger above, if you want to target a point, else, if you want to target a unit:
  • Set Unit = (Your unit <gen>)
  • Set Unit1 = (The target unit you want)
  • Custom script: call IssueTargetOrder (udg_Unit, "unsubmerge", udg_Unit1)
 
Level 3
Joined
Aug 18, 2008
Messages
25
That spell is based on Channel and has an order Id of "unsubmerge". To order your unit to cast it, have the spell learned (if it's a hero) and then use this trigger:
  • Set Unit = (Your unit <gen>)
  • Set Point1 = (The point you want)
  • Custom script: call IssuePointOrderLoc (udg_Unit, "unsubmerge", udg_Point1)
  • Custom script: call RemoveLocation (udg_Point1)
Use the trigger above, if you want to target a point, else, if you want to target a unit:
  • Set Unit = (Your unit <gen>)
  • Set Unit1 = (The target unit you want)
  • Custom script: call IssueTargetOrder (udg_Unit, "unsubmerge", udg_Unit1)

Hmmm... i think i dont get it :eekani:

Do i need to find the id of the spell and put it where unsubmarge is? because i tried just like u wroted and didint work....
 
Status
Not open for further replies.
Top