ID:1777595
 
(See the best response by Kaiochao.)
Code:
mob/proc/AddItems(obj/item/I)
for(var/Grid/G in src.client.screen)
if(G.used) continue
I.screen_loc = G.screen_loc ; src.client.screen+=I
G.used =1 ; return


Problem description:
Just wondering how I would add text displaying something like the item's "amount" variable when it gets placed in the inventory window.
Best response
You can use maptext:
I.maptext = "[I.amount]"
Thank you very much. This was a repost because I had already gotten an answer but deleted the post. I was then informed it's probably best to keep it up so other people can find the answer as well :D Now you get credit for the answer. Huzzah!
G.maptext_width = 200
G.maptext_height = 32
G.maptext = "<div align=right>Amount: [I.durability]</div>"


There you go. Re-posted the answer for you.

Now you get credit for the answer. Huzzah!

I want my credit back. >:)
It's mostly yours. Though if i'm being honest, Kaiochao's helped only a little more. When I used your's (with G.maptext), when I moved the item around in the inventory, the text was stuck on the inventory slot. It was when I saw K's post with (I.maptext) that it clicked in my head to place the text on the item and not the grid... But both of you helped immensely.