mob
icon='Peeps.dmi'
proc
TD()
if(src.z>1)
for(src.z-=1)
world<<"HELLO LOWER"
icon_state="BOT"
for(src.z)
//world<<"HELLOW MID"
icon_state="Normal"
if(src.z<7)
for(src.z+=1)
world<<"HELLO UPPER"
icon_state="TOP"
New()
..()
TD()
Problem description:
I'm having a problem, and it seems to be the TD() being called that make the icons disappear. These are for icons that are placed on the map as NPC. I figured that proc would be the best way to do this since I always want it on.
Your proc changes the icon_state of every mob that's created, not just AI types. If the mobs do not have the icon_state specified, they will default to the last instance (iirc) of a blank state found in their icon. If there is no blank state to fall back on, they will appear blank/invisible.
Let's say you wanted to find all players one map above you when you call a verb named find_players(). You could do something like this:
Edited to add the supercall to Login().