• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Simple backpack

Level 6
Joined
Jul 3, 2006
Messages
102
There must be tons of solutions for this already, but I am going for a very simple version.
I want a selectable "hero" or "unit" that will have a bag icon and will contain a few spells and will be able to hold some items for the actual hero.
Hero works nice because there is an icon right underneath the hero icon, which is what I'm going for.
I do not have space in the hero's UI to add an "open backpack" ability.

So far I have:
1) Created a hero with invalid model, no vision and no attack. The issue is that when selected, it shows hero stats and whatnot and it also gets xp from dying mobs.
2) When selected, the selection circle shows underneath which I would prefer not to.

Any pointers to the best practises for such kind of backpack?
 
You can prevent your backpack from getting XP via trigger, add this whenever it's created

  • Hero - Disable experience gain for MyBackpackHero.
You can remove the selection circle with this little trick, although it doesn't always work perfectly

1763833788522.png
(shift enter to set a negative value)

As for the stats, I don't think there's an easy way to hide the entire panel. I guess you could have your actual backpack handled by a non-hero unit, and whenever the player selects the dummy hero, you force the selection of the backpack unit instead. There'll be like a microsecond where you can still see the hero but heh it is what it is
 
In addition to Chaosium, about using a non-hero unit, are you using the worker slot somehow in your project?

If you set a unit category into “worker”, when it is idle, it’s icon will be show at the left side of the screen (like peasants when they are idle).

Supposing your backpack doesn’t move, it’s icon will be available the entire game for quick acess.
 
Back
Top