inventory2.dm:386:error: overlay_icon: undefined var
inventory2.dm:235:error: A.overlay_icon: undefined var
The After Zone.dmb - 2 errors, 0 warnings
1
2
Well, that got ride of 1 of the errors but I'm still getting the following after making all these changes.
|
Yeah, you would have to define an overlay_icon var belonging to obj/Armor. It's in place of shoulderpiece, glovepiece, etc. which ere all unnecessary.
|
Well for some reason now when it runs, the only item I can't equip is the chest piece, and legs are forced on top of back.
|
Not to mention its also not removing stuff from the inventory when moved to equipped
mob |
Hmm. loc=hiddenlist can't be right if hiddenlist is just a regular list, not an atom. I'm not sure what purpose hiddenlist is supposed to serve.
|
apparently hiddenlist is just a seperate list for storing and remembering what's been equipped.
|
Just to chip in some advice in general, you should try and post only the code that is relevant to your problem (e.g. all the armour type definitions from the 'K...'s to the 'S[...]'s are unnecessary), that way the task of helping might not appear as tedious to anyone trying to look through your posts.
|
In response to Robinhood8
|
|
Robinhood8 wrote:
do you have to put in a verb input for every movement? What do you mean? |
In response to Lummox JR
|
|
Lummox JR wrote:
Hmm. loc=hiddenlist can't be right if hiddenlist is just a regular list, not an atom. I'm not sure what purpose hiddenlist is supposed to serve. As far as I'm seeing now, hiddenlist is essentially useless and serves no purpose. It literally is just a list that is added to everytime someone equips something, but never seems to be used otherwise. |
In that case, nix hiddenlist from your code and then post the new changes.
|
I figured out the problem with the chest one, fixed it by renaming the layout grid 'chestslot' to chest. I think the reason the inventory isn't changing though is because the Mousedrop can't call Inventory() to update the inventory though.
|
1
2
Likewise, I said the equipped var should be annihilated outright. It doesn't belong under /mob, since a mob can't be equipped. It doesn't belong under /obj/Armor either, because it shouldn't exist. You don't need that var.
In the last couple of posts you've moved the MouseDrop() code from obj/Armor to mob. It belongs under obj/Armor where it was; it was fine there. That's why it's complaining that Equip() is undefined.