• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Help Me To Create Item Transfer (Dota Crow's Ability)

Status
Not open for further replies.
Level 4
Joined
Mar 13, 2014
Messages
93
This Is Only An Example

  • Transfer Item
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Tranfer Items
    • Actions
      • Set TransferPoint[1] = (Position of (Triggering unit))
      • Set TransferPoint[2] = (Position of Transfer_Caster)
      • Set Transfer_Hero[(Player number of (Triggering player))] = (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is A Hero) Equal to True))
      • Set Transfer_Caster = (Random unit from Transfer_Hero[(Player number of (Triggering player))])
      • Unit - Order (Triggering unit) to Follow Transfer_Caster
      • Wait until ((Distance between TransferPoint[1] and TransferPoint[2]) Less than or equal to 150.00), checking every 0.50 seconds
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set Transfer_Item[(Integer A)] = (Item carried by (Triggering unit) in slot (Integer A))
          • Hero - Give Transfer_Item[(Integer A)] to Transfer_Caster
      • Custom script: call RemoveLocation (udg_TransferPoint[1])
      • Custom script: call RemoveLocation (udg_TransferPoint[2])
 
Level 4
Joined
Mar 13, 2014
Messages
93
This Is Only An Example

  • Transfer Item
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Tranfer Items
    • Actions
      • Set TransferPoint[1] = (Position of (Triggering unit))
      • Set TransferPoint[2] = (Position of Transfer_Caster)
      • Set Transfer_Hero[(Player number of (Triggering player))] = (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is A Hero) Equal to True))
      • Set Transfer_Caster = (Random unit from Transfer_Hero[(Player number of (Triggering player))])
      • Unit - Order (Triggering unit) to Follow Transfer_Caster
      • Wait until ((Distance between TransferPoint[1] and TransferPoint[2]) Less than or equal to 150.00), checking every 0.50 seconds
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set Transfer_Item[(Integer A)] = (Item carried by (Triggering unit) in slot (Integer A))
          • Hero - Give Transfer_Item[(Integer A)] to Transfer_Caster
      • Custom script: call RemoveLocation (udg_TransferPoint[1])
      • Custom script: call RemoveLocation (udg_TransferPoint[2])

Source : http://www.thehelper.net/threads/dotas-flying-courier.145247/
 
Status
Not open for further replies.
Top