ID:177146
Oct 24 2002, 9:01 am
|
|
How do you make "Who" like a statpanel where it shows everyone on, and thier icon, direction they are facing, ect? I've seen it on some Dragon Warrior chat games and thought it looked neat, but I can't figure it out. =(
|
In response to Garthor
|
|
I tried that, but it didn't do anything. I tried replacing the spaces with tabs, but that didn't help either. I'll just mess around with it and try to figure something out
|
In response to CoWdUdE7
|
|
stat(Players) would show all contents of list (example would be contents) so just
statpanel("Players") stat(Players) |
In response to Super16
|
|
I thought you'd have to do somesthing special to get the icons to show correctly.
|
In response to Garthor
|
|
Nope. If you do this...
<code>statpanel("Inventory") stat(src.contents)</code> ...it will show src's inventory, with the object's icons next to their names. In other words, if you've only provided one argument and that argument has an icon attached to it, it will display the icon automatically. |
In response to Super16
|
|
I tried and it said "The Outlands.dm:39:error:Players:undefined var", so how do I get it to work?
|
In response to Crispy
|
|
My problem is kinda like Hazman's, but when I do it there's no errors, the stat panel just doesn't show up at all. This is what I put:
mob Stat() statpanel("Players") stat(Players) someone who knows, please help me get this right... |
In response to CoWdUdE7
|
|
Are you adding people to Players when they log in/out?
|
mob
Login()
Players += src
..()
Logout()
Players -= src
del(src)
..()
Stat()
statpanel("Who")
for(var/mob/M in Players)
stat(M.icon,M)