• 🏆 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!

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