• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 ?
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
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.
 
Level 16
Joined
Mar 26, 2004
Messages
569
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)
 
Level 3
Joined
Jan 1, 2008
Messages
29
Thank you SkriK !

EDIT:
How could i change this thread to "Solved" ? :)
 
Last edited by a moderator:
Level 3
Joined
Jan 1, 2008
Messages
29
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.
Top