ID:270974
 
I'm trying to make it so I can put an icon into the stat panel. See, I have the statpanel along with the stats, but I want to show an icon for certain things.

Like I have an Earth variable, which tells the user their Earth elemental stats. And instead of just having it say Earth: [usr.Earth], I want it to show the Earth icon I made then : [usr.Earth].

If you need more explaination, I'll post the DM part of it here, or in Code Problems. Thank you.
stat(atomhere)

You have to put the entire atom as an argument in stat() for it to display an icon.
In response to CaptFalcon33035 (#1)
This is what I have:

mob
Stat()
if(!src.login)return
statpanel("Stats")
stat("Element Info")
stat("Earth: [usr.Earth]")
stat("Wood: [usr.Wood]")
stat("Fire: [usr.Fire]")
stat("Water: [usr.Water]")
stat("Thunder: [usr.Thunder]")
stat("Darkness: [usr.Darkness]")


Sorry, please show me what you suggest in DM format, so I can understand it more. I'm new to coding in DM and all, but I understand things better if I see it in DM.

By stat(atomhere), what do you mean I should do?
In response to Krimson Fury (#2)
atom => /atom, /mob, /obj, etc

http://www.byondscape.com/ascape.dmb/ Shadowdarke.2003-0322/#list

Look at the examples on the right.

- GhostAnime
In response to GhostAnime (#3)
I'm getting a huge headache trying to figure that out. I see what's happening, but I'm pretty sure I don't understand some part, since I'm not getting it done right. Well, I'll keep trying to figure out how to do it, and I'll use that page as a guide.