Problem description:
This is in the DM Guide...
mob/verb/wink()
set src in view()
view() << "[usr] winks at [src]."
I don't understand what part of the code makes the guard know if a player has whispered in order to whisper back the "drow cigam!" part.
mob/guard/wink()
..()
usr << "[src] whispers, 'drow cigam!'"
I know the ..() is a substitution for the original code for the verb so it would be
mob/guard/wink()
set src in view()
view() << "[usr] winks at [src]."
usr << "[src] whispers, 'drow cigam!'"
Could someone explain it a bit better?
usr is the player. The whisper is only sent to usr.
src is the guard. You wink at the guard, and the guard whispers back.