Allo.
So after fiddling around with my mates we decided that we were going to use a system similar to that of World of Warcrafts (and semi like the "slot" thing seen in lummox skin design part 4).
So the way i was thinking of doing it was one of two ways. the first way was a basic you can see the equipped item in the inventory with an adjusted icon state with an E over it stating its equipped. The second way was to actually make a new panel and tab so as to hold a graphical imagery of the equipped items (very much like what you see in wow with the person picture and boxes to showcase the items).
I decided to go with the graphical side of things as heck it shows dedication right?
So my question is basically how would i go about actually doing this kind of system. i findled with a system where each slot was named a certain section and that variable simply held the "type" of object so that overlays could be rebuilt on load but i dont have a clue where to start on actually making the panel i want rebuild without saving icon data.
ID:156781
![]() Jul 27 2010, 7:58 pm
|
|
![]() Jul 27 2010, 8:03 pm
|
|
You would somehow have to save which items are equipped. Just loop through them all and re-add overlays based on that.
|
Well i have it so each item is given a "slot" and that seems to be working fine (i used the code given in the skin guide by lummox since that does exactly what it needs to do)
And i got it to easily rebuild the icons overlays for the player by making a mob variable and making that hold the type reference of the clothing in question. Just cant figure out how to make something read what goes where and place it in the appropriate "grid" box for my stuff. like.. pane is called Equipment and that holds all the little grids that will then hold each slotted item. So head slot should find and search for any equipped head items and then place it back in the grid but not quite sure how to go about it =\ thats the problem lol |
Hmm its going as i planned. =\
Slot thingy is pretty much just cut and paste from lummox skin guide #4. obj/items EDIT ADDON: i just realized that equipment was an associative list of sorts and that i could just do it that way and voolah it worked. mob/proc/UpdateEquipment() now i just need to figure out how to make it so the overlay it adds is not the icon state i set it to be for previewing :( |