ID:157393
 
I can't figure out how to make a list of mobs or really a list inside of a stat panel. The only way I thought to do it was running a for loop inside a stat but it won't let me :( I can't figure out how to do it. I just want a list of mobs with some text next to them but I'm at a loss as to how.
Here's an Example.


mob/Stat()
statpanel("Mobs")
for(var/mob/M in world)
stat("[M.name]")//Here add the text what you want...


if you want to add the mob icon you should did this \icon[M.icon]
In response to Prestige Entertainment
Thanks o.0
In response to Prestige Entertainment
You could just do stat(M) instead of having to use \icon and all that jazz. That'll show the icon and the name, and it'll allow you to access verbs owned by that mob with the proper 'set src' setting.
In response to Nadrew
Nadrew wrote:
You could just do stat(M) instead of having to use \icon and all that jazz. That'll show the icon and the name, and it'll allow you to access verbs owned by that mob with the proper 'set src' setting.


Yes, that's other way. But he asked of how to add text.

In response to Prestige Entertainment
Prestige Entertainment wrote:
Nadrew wrote:
You could just do stat(M) instead of having to use \icon and all that jazz. That'll show the icon and the name, and it'll allow you to access verbs owned by that mob with the proper 'set src' setting.


Yes, that's other way. But he asked of how to add text.


stat(M) will display both the mob's icon and the mob's name.
In response to Emasym
Emasym wrote:
Prestige Entertainment wrote:
Nadrew wrote:
You could just do stat(M) instead of having to use \icon and all that jazz. That'll show the icon and the name, and it'll allow you to access verbs owned by that mob with the proper 'set src' setting.


Yes, that's other way. But he asked of how to add text.


stat(M) will display both the mob's icon and the mob's name.

Yes, but he maybe wanted add someother type of Text. Like Age or blabla.
In response to Prestige Entertainment
Hrm, different problem now. I got it to show up with their icon but it doesn't show their overlays. What do I need to add for it to show the overlays on the icon?
In response to Murtaki
Murtaki wrote:
Hrm, different problem now. I got it to show up with their icon but it doesn't show their overlays. What do I need to add for it to show the overlays on the icon?

Bump
In response to Murtaki
for that you would need to blend the icon with their overlays and update it whenever it changes...(at least that's how I fixed it when I ran into that problem)
In response to Murtaki
Murtaki wrote:
Murtaki wrote:
Hrm, different problem now. I got it to show up with their icon but it doesn't show their overlays. What do I need to add for it to show the overlays on the icon?

Bump

Do what Nadrew said and use stat(M).