• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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