• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Script] Bag System

Hello!
So, I came here to request something for the big map I’m creating, and I hope someone can help me.

I want to add a Bag system. I’ve already designed the UI, but I don’t know how to implement the commands for it (I tried a lot, but it didn’t work, and I don’t know scripting).
Let me explain what I need:

First, about the map:

In single-player mode, you have 3 heroes.

In 2–4 player modes, each player has 2 heroes. (So the maximum number of heroes is 8.)

Each hero has 1 bag.

There won’t be two of the same type of hero on the map.

When you select your hero, I want there to be a button in the bottom-right corner to open and close your bag (each hero has their own bag).

The bag should have 15 slots (5x3).

Items inside the bag don’t have any effect and cannot be used.

The bag should support drag & drop.

The game’s default inventory should remain as it is, but items picked up should first go into the hero’s bag.

If you’re interested in helping me build this map, let me know and I’ll send you the map and the UI.
 

Attachments

  • IMG_20250901_004434.png
    IMG_20250901_004434.png
    4.1 MB · Views: 36
Back
Top