For example, I discovered with glee tonight that I could actually send a proc (undocumented?) as input thusly:
mob verb/whistle() usr << "You whistle..." orange(src) << hear_whistle() proc/hear_whistle() world << "[src] heard a whistle" // just a test line
When the whistle verb is used, the proc is called for PCs in the area, but not for NPCs.
I know I can easily code around this by cycling through mobs in the range, and calling the proc for each, but the attempt above would have been so much slicker.
Besides which, I think there should be a way for NPCs to react to text they hear. If you say something, and an NPC overhears it, it should be able to comment. They could even comment on, or react to shouts!
Yes, it's all kludgeable, but I guess you can put me down for requesting this for 3.0.
Carry on,
mob/skysaw</<>
Shouldn't orange(src) << hear_whistle() send the return value of hear_whistle() to every mob in orange? Which is, by default, null, so nothing gets output. (Is there no good past tense to output? Outputted sounds lame.)
And its pretty easy to make NPC's react to text, you just have to have a react proc that is called everyone time someone speaks, and pass it the text that was spoken. Then code away reactions however you want.
-AbyssDragon