ID:167687
 
i was working on a nintendo ds in my game and i was wondering. i wanna make a pictochat verb, but im having a problem. i wanna be able to talk to everyone on the same "Chat Room" as you. i have this so far:

obj/Room_Items
Nintendo_DS
icon_state="Nintendo DS"
verb
PictoChat(msg as text)
for(M as mob in world)
if(M.PictoChat == usr.PictoChat)
usr << "To [M]: [msg]"
M << "From [usr]: [msg]"
Change_ChatRoom()
PictoChat = input("Please specify which chatroom you wish to join.") in list(1,2,3,4)

obj/var
M
PictoChat

mob/var
M
PictoChat


but it says:

Room Items.dm:187:error:M.PictoChat:undefined var
Try for(var/mob/M in world).


-Doh
In response to XxDohxX
Thanks! Now we can work on other aspects of our game.