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

Tavern problem (how to store sold heroes into an array)

Status
Not open for further replies.
Level 1
Joined
Aug 20, 2011
Messages
3
So yeah im making a map which you need to pick heroes in the tavern...
so i want the hero i pick to add in an unit array variable so i can transfer him into another region if needed
thx sorry for the bad english hard to explain
 
I guess Unit Indexer may be usefull for you.

Create unit array variable in GUI variable editor and with UI usage try:
  • init
    • Events
      • Unit - A unit Sells unit
    • Conditions
      • // here either use unit-type comparison related to bought unit or
      • // the tavern in which hero has been bought
    • Actions
      • Set Unit[(Custom value of (Sold Unit))] = (Sold unit)
EDIT: Sorry baassee didn't know you have replied, I was writing trigger as freshhand so it look me a while =o.
 
Status
Not open for further replies.
Top