ID:160371
 
I can not get a dmi to show in a browser using the info from a variable. Is there any way to use a string var for the file path of a icon?

I don't have anyway of referencing the objects actual icon because the data I use is retrieved from a Mysql database. Thanks for your help in advanced.

mob
verb
Browse_DMI()
var/weapon=pick("Steel_Sword","Bronze_Sword","Iron_Sword")
usr << browse_rsc(file("[weapon].dmi"),"Weapon")
var/html="<img src='Weapon'/>"
usr << browse(html)