ID:172606
 
okay, I'm talking to a mob, and I want it to say, something like
You: Stuff
Other Guy: Stuff
You: More Stuff
Other Guy: Even More Stuff
But instead of having it say You, and other guy, I want it to say the names, like if my name is Metroid and his name is Insane Freak I want it like
Metroid: Stuff
Insane Freak: Stuff
Metroid: More Stuff
Insane Freak: Even More Stuff
so since everyone tells me to use src as the player, how do I define the other guy? My code is something like this, I dont have any chat yet, but where can I add it so that it tells me what I want.
mob
RetrieverGuildA // For First Town
icon = 'slimes.dmi'
Recruiter
icon_state = "black"
name = "Retriver's Guild Recruiter"
verb
Converse()
set src in view(1)


Any help apreciated, thanks!
All you need to do is this: But remember, I think it will all show up instantly.

mob
RetrieverGuildA // For First Town
icon = 'slimes.dmi'
Recruiter
icon_state = "black"
name = "Retriver's Guild Recruiter"
verb
Converse()
set src in view(1)
usr << "[usr]: Stuff
usr << "Other Guy: Stuff"
usr << "[usr]: More Stuff"
usr << "Other Guy: Even more stuff"


If that dosen't work, I'll try to fix it.
Look, people aren't telling you to use src as the player. usr is OK in verbs, and in that verb, src would be the mob that you're talking to.

~Cheuq
Well I want to use the same format for each guy so I dont want to change it a million times, because its long dialouge, and Id have to change it each time.
In response to Cheuq
Alright Ill do that.
In response to Metroid
mob/urmob
name = "the name of the npc"
icon = 'blabla what u had'
verb/some_verb()
set any setting here
usr << "[usr.name] balblabla"
usr << "[src.name] blablabla"

Is that what u need?
In response to Fint
Yeah I got that, I did that but I was wondering that you werent supposed to use usr because im always told everytime I post my code, dont use usr in stuff, so I didnt but I didnt know a way to do it, someone else told me that i could use usr in verbs, so I am. You people are wierd.
In response to Metroid
#define USR 1
#define SRC 2
mob
conversable
var/list/conversation = list()
verb
converse()
set src in oview(1)
for(var/V in conversation)
if(conversation[V] == USR)
usr << "[usr]: [V]"
else if(conversation[V] == SRC)
usr << "[src]: [V]"
else
usr << "[conversation[V]]: [V]"
sleep(length(V) / 2)
village_idiot
icon = 'Blue.dmi'
conversation = list(
"How are you today?" = USR, \
"Durrr..." = SRC, \
"What?" = USR, \
"Uhhhh..." = SRC, \
"Juh?" = USR, \
"Huh?" = SRC, \
"Hey! Stop talking to him!" = "Sheriff")


Note that THIS WILL NOT WORK if two parts of a conversation are the same.