• 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.

how can i make a unit replaced via trigger to keep its items

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
i belive the items remain when you replace a unit if i remember it right.

if it wont work use this
  • For each (Integer A) from 1 to 6, do (Actions)
    • Loop - Actions
      • Set Items[(Integer A)] = (Item-type of (Item carried by Your_unit in slot (Integer A)))
this is how you store the items.

give the items by doing this
  • For each (Integer A) from 1 to 6, do (Actions)
    • Loop - Actions
      • Hero - Create Items[(Integer A)] and give it to Your_unit
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
how can i use a script i dont understand at all. another problem i have is that the replaced unit doesnt carry out the order of the initial unit despite the fact that i have added a trigger for it. i found a problem that cause the game to lock up completely. please report it to blizzard for me because i cant.(they banned me for discussing vjass if you must ask.)
 

Attachments

  • bamversion023broken.w3x
    292.8 KB · Views: 43
Last edited:
Status
Not open for further replies.
Top