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

good item system

Status
Not open for further replies.
Level 6
Joined
Oct 29, 2010
Messages
171
I thiiink this is the right place im putting this if not sorry :/ anyways can someone give me a link to a better item system? where yo can have like 1 helmet 1 sword 1 sheild 1 chest armour and 1 leg armour
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
· Create 5 Item Type Arrays
Helmets[]
Swords[]
Shields[]
Chests[]
Legs[]

· On Event "Map Initialization" store in each list all the corresponding item types

· Then do 5 loops on Event "Map Initialization"
For Each Integer A from 1 to (Max Helmet Index) do
Set custom value of Helms[Integer A] = 1

For Each Integer A from 1 to (Max Swords Index) do
Set custom value of Swords[Integer A] = 2

For Each Integer A from 1 to (Max Shields Index) do
Set custom value of Shields[Integer A] = 3

For Each Integer A from 1 to (Max Chests Index) do
Set custom value of Chests[Integer A] = 4

For Each Integer A from 1 to (Max Legs Index) do
Set custom value of Legs[Integer A] = 5

· On Event "A unit acquires an item" do
For Each Integer A from 1 to 6 do
If (Custom value of (Item Being Manipulated)) Equal to (Custom Value of (Item Carried by Hero in Slot (Integer A))) then
- Drop the item
Else
- (Leave this blank, means "Nothing")

· You're done. It's not the most efficient way, but it's the easiest.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
oooh... that's REALLY hard. You need to have deep knowledge of JASS and probably vJASS, use trackables, images, models, and several stuff. I wouldn't recommended. You can check here custom inventory systems

Inventory Systems
 
Level 3
Joined
Apr 4, 2006
Messages
33
the cost-benefit ratio is it not really worth so keep it easy and try a dialog system!
 
Level 14
Joined
Aug 8, 2010
Messages
1,022
1. Go to http://www.hiveworkshop.com
2. Click on "Spells" in the top-left corner of the site
3. Scroll down a little bit
4. Find the type field to the left (below the "Search" text)
5. Type "inventory" in this field.
6. Click the "Filter" button below this type field
7. Find the system that pleases you

Don't say you want someone to implement a system into your map...
 
Level 10
Joined
May 21, 2006
Messages
323
In my current map I am using a Custom Item Inventory watchable with the Multiboard the Items are divided in Equipment and Items it´s affords a lot of triggers and for each Item there has to exist a Unit with the same name. My Inventory has 30 slots 15 for equipment and 15 for items. So i created for each slot 1 rect. An item aquired will be removed and creates 1 Item equivalent in one of the inventories depending on what it is (permanent = Equipment, Charged = Item)

The equipment can be selected and will be put into a seperat Character Inventory. My chars can carry Equip on the Head, Chest, Hands, Foot, Mainhand, Offhand, Legs and Accessoire. Armor reaches from Cloth to Plate (4 types) plus Several Weapontypes. It works perfectly

For my Equipment I use all the stats a unit can bring in the Editor, for example Point Value for Weapondamage, Level for Level needed to carry the item, Aquisition Range for Armor, Strength, Agility, Intelligence to improve the equivalents of the Hero carrying. etc etc it works really good, I dont wanna Post my whole system but maybe I can give you some ideas.
 
Level 6
Joined
Oct 29, 2010
Messages
171
Lol Thank you guys i found what i needed. I was just asking for someone to help me find a system to my liking... when did i EVER say i wanted someone to put it into my map... read everything before you say something dumb please
 
Status
Not open for further replies.
Top