ID:176418
 
Well I need to know how to ad a whisper verb.
I've tried several diffrent ways but they either didn't work or the person whispering could only whisper mob's in the same view.
This is what I've got...
whisper (mob/M = input() as text, msg as text in world)
M<< "[usr] whispers: \"[msg]\""
usr << "You whisper \"[msg]\" to [M]"
It works but everytime I compile the project it comes up with this warning...
"it is recommended that you use an object filter or 'anything' when combining constant input types with lists"
and when that piece of code is used a list of every mob, obj and turf comes up but only mobs can be selected to whisper to. So what am I doing wrong?
Well, that code is pretty far off from what you need. But it's always good to try before comming straight to the forums. Here is what you need.
mob/verb
Whisper(mob/M as mob in world, msg as text)// mob/M as mob in world asks for a mob thats in the world, and refers to it as M
usr << "You whisper, '[msg]' to [M]"
M << "[usr] whispers to you, '[msg]"


~>Volte