• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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