Item carry for summoned units?

Status
Not open for further replies.
Level 3
Joined
Jan 1, 2008
Messages
29
Hi guys!

I need a little help.
I wanna make a summoned unit, who can carry items and after re-summon, the items wont left from its inventory. Like Dota's Summoned Bear.
I made the spell from Rexxar's Bear Summoning, i gave inventory to the Bear but after resummon the items are dropped from it. Please help how could i fix this ?
 
How about you make a trigger that activated when the unit dies. Then you place all items in his inventory in a special area, or you store them by trigger. When it's created again, you load all items in the special area or the ones you stored by trigger.
 
Use this to STORE the items:
  • For each (Integer A) from 1 to 6, do (Actions)
    • Loop - Actions
      • Set Summon_Items[(Integer A)] = (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
And this to LOAD the items:
  • For each (Integer A) from 1 to 6, do (Actions)
    • Loop - Actions
      • Hero - Create Summon_Items[(Integer A)] and give it to (Triggering unit)
 
Thank you SkriK !

EDIT:
How could i change this thread to "Solved" ? :)
 
Last edited by a moderator:
I summon the unit.
Give them the orders to pick up some items. Not powerups of course.
After he got the items, i resummon him. All the items are drop from him exept one, thats still in his inventory.

This is happening.
 
Status
Not open for further replies.
Back
Top