ID:180448
 
Righto, I'm short on time right now, so I won't write tonnes of code, but I was wondering, how do you make it so when you pick up and item, a picture of it will be displayed in your inventory pannel?

Thanks.

Note: I already have hte pick up and drop verbs working, and I know how to make new pannels, but I just dont know how to make the picture of you items appear in your inventory pannel.
On 6/11/01 10:16 pm Botman wrote:
Righto, I'm short on time right now, so I won't write tonnes of code, but I was wondering, how do you make it so when you pick up and item, a picture of it will be displayed in your inventory pannel?

Thanks.

Note: I already have hte pick up and drop verbs working, and I know how to make new pannels, but I just dont know how to make the picture of you items appear in your inventory pannel.

If the item has an icon attached to it, it will automatically show up. If not, you'll have to make some kind of code that tells the game to assign a certain icon to an item when it goes into someone's inventory.
In response to Foomer
I believe what the distinguished young chap was asking is how you make the inventory panel in the first place. Eh, wot?

statpanel("Inventory")
stat(src.contents)



On 6/11/01 10:19 pm Foomer wrote:
On 6/11/01 10:16 pm Botman wrote:
Righto, I'm short on time right now, so I won't write tonnes of code, but I was wondering, how do you make it so when you pick up and item, a picture of it will be displayed in your inventory pannel?

Thanks.

Note: I already have hte pick up and drop verbs working, and I know how to make new pannels, but I just dont know how to make the picture of you items appear in your inventory pannel.

If the item has an icon attached to it, it will automatically show up. If not, you'll have to make some kind of code that tells the game to assign a certain icon to an item when it goes into someone's inventory.
In response to LexyBitch
Ah goody. Thanks muchly, you both helped lots.

In response to Botman
Thanks, it took a while, but I think I've figured it now.