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

Inventory system

Status
Not open for further replies.
Level 17
Joined
Jun 12, 2007
Messages
1,261
It's not possible to make a bigger inventory as far as I know.
But there is something you can do:

1) Every item needs to be a dummy item when it comes down to equipment.

2) You need booleans to check if the player is wielding (I use sword for example) a sword, if it's wearing a sword the dummy item gets droped. If he is not wielding a sword the dummy item gets destroyed. (You need a boolean for each equipment slot and you need to do that for each player.)

3) You also need string variables to store the string of that piece of equipment.

4) When a unit gains for example 'Golden Sword' and he is not wearing a weapon the booleans becomes true.
The dummy item gets destroyed.
The string for PlayerRedWeapon becomes GoldenSword.
That hero will gain a spell that cant be seen. (Like damage bonus for swords.)
You attach model of the Golden Sword to that 'spell'.

5) Now when he wants to change weapon he needs to remove his sword.
I suggest to start that with the chat message: -RemoveEquipment
Then a dialog pops up, then he can select what to remove.
If he has a sword then one of the buttons gains the string of the sword.
Unused slots gain a button with the tekst: -Empty-
Don't forget to create a dummy item at the units feet.

When he clicks the dialog button: GoldenSword
- Set PlayerRedBoolean for weapons to false, remove the spell, set the string back to -Empty-

It's a rather HUGE trigger system so I'm to lazy to make it, but basicly you need something as I described above. (I think, I never tried it.)
 
Last edited:
Level 21
Joined
Dec 9, 2007
Messages
3,096
I don't want dialogs, i want trackables and interface, look at this system:
search at spells for
inventory tech
or
tech demo
or
inventory demo

those must be :D
I requested Toadcop(the real creator of that amazing system) to transform it a bit for me :D



Edit : i am using the 100 extra item slots system, but i want to replace it with a better one with active slots...
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
The dialogs is just a suggestion to make it work faster, you can also use commands or the stuf you mentioned.
But the stuf you mentioned is something I'm not realy used to so I can't help you with that. xD

And I know that 100 extra item slots thing but you can't make them active item slots.
Perhaps you can do something with jass then.

(In the end I think you still need to add a spell for the effect and model.)
But that's just me talking. :p
 
Status
Not open for further replies.
Top