ID:1032665
 
(See the best response by Kaiochao.)


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?



Best response
You use the verb when you right-click a guard in your view and click the wink verb, or by clicking the wink verb in your statpanel, which only shows up when you're in view of a guard.

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.
Thanks, I understand now! :D