ID:266504
 
ok well I was just wondering if you can add graphics to the alert screen like so...

WARNING (in yellow)
1. blah blah (in red)
2. blah blah (in green)

etc...


also I can't seem to figure out how to do this, I know all about the

stat("You",usr)
shows yourself
So... I figured this should be pretty simple but this doesn't work... (quick example)

recruit()
var/mob/monsters=list()
b=new /mob/blah(src.loc) // this is just a quick example
src.monsters+=b

stat("Your monsters",usr.monsters)

wouldn't that work?
it doesn't but shouldn't it? I am trying to get it so it just adds the monsters I recruit to my monsters list and then show them on the statpanel...
Ok I figured out how to do the list thing and make it show all the monsters...

statpanel("Monsters",usr.monsters)
seems to work...
I was doing stat(blah)....

Ok my next question is... how would I make it so it shows their HP/location, etc?

I have no idea...

maybe with syntax?
In response to Jon Snow
whos HP the usrs or the monsters?
In response to Strange Kidd
monsters
In response to Jon Snow
Simple using a for() loop.

mob/Stat()
..()
statpanel("Monsters")
for(var/mob/monster/M in world)
stat("[M]","[M.HP]")
In response to Nadrew
thanks a ton Nadrew!! :)

if(statpanel("Monsters"))
stat(usr.monsters)
for(var/mob/M in world)
stat("[M] HP=","[M.HP]")
stat("[M] MP=","[M.MP]")

this works just fine :)