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])