• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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