ID:165879
 
when you create options and there are categories you can set like when you pick up items it will go in the inventory catogory, How do you make the options go in a certain category and how do u make that category and define it, i know the get() set_category = But im wondering how to make the item you pick up go into a category, thanks.
The only way I know of, is to change the usr.contents name.so, in Stat() just define a statpanel as "whatever name" that represents usr.contents, if you want items to go to different places than others, then make lists and make the lists have a statpanel as well, then just add the items differently.If you dont understand the way I explained, then, tell me to explain it with code.
In response to Dragon_fire6653
Dragon_fire6653 wrote:
The only way I know of, is to change the usr.contents name.so, in Stat() just define a statpanel as "whatever name" that represents usr.contents, if you want items to go to different places than others, then make lists and make the lists have a statpanel as well, then just add the items differently.If you dont understand the way I explained, then, tell me to explain it with code.

Explain it with code :P
In response to Animay3
mob/Stat()
statpanel("Inventory")
stat(contents)
statpanel("Inventory2")
stat(Contents)

mob/var/Contents=list("")

obj/stuff
verb/Get()
set src in oview(1)
usr.contents+=src
obj/stuff2
verb/Get()
set src in oview(1)
usr.Contents+=src

This ought to work.
In response to Dragon_fire6653
You could've done
statpanel("Inventory",contents)
statpanel("Inventory2",Content)
as a shortcut ;x

- GhostAnime
In response to Dragon_fire6653
Having a "Contents" var would be pretty bad. :p Capitalization can get pretty confusing. So a good way would be like "contents_second."
In response to GhostAnime
Yea, I could've.As for you, Mechanios, I was going to do contents_2 but i decided not to.Besides, he can easily change it to his will.
In response to GhostAnime
GhostAnime wrote:
You could've done
statpanel("Inventory",contents)
> statpanel("Inventory2",Content)
as a shortcut ;x
- GhostAnime

More like

mob/Stat()
if(statpanel("Inventory"))stat(contents)
if(statpanel("Inventory #2"))stat(contents2)


It reduces the workload by only displaying the list that's needed.
In response to Dragon_fire6653
Actually, it won't compile. You don't indent under 'set blahblahblah'

Also, your Contents list (Horrible name choice, btw) will always have a 'null' entry in it. This may not be a good idea. It should be list(), not list(""). Subtle difference.