mob
Login()
usr.loc=locate(6,7,3)
color = input("what color do you want to be?") in list("Red","Black")
if("Red")
usr.icon='Red ants..dmi'
world<<"[src.key] has logged in as a red ant."
usr.red=1
usr.hp=10
usr.loc=locate(40,39,1)
if("Black")
usr.icon='Black ants.dmi'
world<<"[src.key] has logged in as a black ant."
usr.black=1
usr.hp=10
usr.loc=locate(4,5,1)
Why does it say BLah has logged in as a red ant but then says it again as a black one?
mob
verb
Dig(mob/M in get_step(src,src.dir))
if(src==/turf/Wall)
del(src)
Why does'nt this work?It does'nt delete the wall.
You're not checking if(color == "Black") or if(color == "Red"), you're just checking if("Black") or if("Red"), which will always be true.
You probably wanted to be using a switch, like this:
<code>color = input(your input here) switch(color) if("Black") if("Red")</code>
Problem 2:
A turf is not a type. You want to check if(src.type == /turf/wall), not if(src == /turf/wall).