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

Bag?

Status
Not open for further replies.
Level 3
Joined
Jun 25, 2008
Messages
65
Is there a way to make a "Bag" into an inventory ?
I mean an item that opens into a 4slot Bag when you click on it.
I think I saw that once a time in a map, but im not sure...

Maybe someone can help me ...
 
Level 3
Joined
Jun 25, 2008
Messages
65
Thats not the problem ;)
If it's in JASS i cant do it, then i have to copy it.
But if not I can do it if someone tells me how to do^^
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Is there a way to make a "Bag" into an inventory ?
you asked for if there is a way and I said yes
and it can be done in GUI but it will be too hard
you need to index every unit
store their inventroy when they click to bag
and remove items in inventroy and show an empty one
when they exit from bag you need to store bag inventory in anouther cache slot and put items from first cache and it goes like that
 
Level 3
Joined
Jun 25, 2008
Messages
65
Already done it. Its quite easy^^
I dont want the items in the bag give user passive abilities like +10 Damage or so. Maybe I will do that later, too, but that will he really hard^^

My bag works now =)
 
Status
Not open for further replies.
Top