mob/player
proc
callbattleitems()
itemsinhud=list()
itemsnumber=0
src.itemsHUD.maptext="<b>Inventory: Battle</b><br><br>"
for(var/obj/items/i in src)
itemsnumber++
if(i.itemtype=="Battle")
if(itemsnumber > hudscrolled)
if(i.stackable==1)
src.itemsHUD.maptext+="<img src=[i.icon]> [i.suffix]x [i.name]<br><br>"
else
src.itemsHUD.maptext+=" [i.name]<br><br>"
src.itemsHUD.maptext_y-=30
itemsinhud+=i
if(itemsinhud.len > 10) break
if(itemsinhud.len < 12)
itemsHUD.maptext+="Return"
itemsHUD.maptext_y-=30
else itemsHUD.maptext_y-=14
Problem description:
So, this is more of a how-to kind of question. I am working with a lot of huds sporting maptext, so my items and skills are also in there. However I want to integrate icons in the maptext and I'm unsure how to do this. The idea is not to have to delete specific stuff separately from my maptext but rather make it change automatically with maptext.