ID:165879
Oct 20 2006, 4:12 pm
|
|
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.
|
Oct 20 2006, 4:33 pm
|
|
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() This ought to work. |
In response to Dragon_fire6653
|
|
You could've done
statpanel("Inventory",contents) - 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) - GhostAnime More like mob/Stat() 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. |