tell verbs and conversation

2 views
Skip to first unread message

Kevin Struska

unread,
Jun 17, 2019, 10:07:42 AM6/17/19
to MOO Talk
HI,
I'm trying to make a tell verb on an object that picks up conversation. I was thinking of doing...
stuff = tostr(@args);
I want to pick up everything after the word says, and then use $string_utils:words to split it up, and then I'll take care of doing other stuff. So could I do like:
if ($string_utils:match_string(stuff, "* says, "*""))
How could I make a variable that says I want everything picked up after the second star?


Littlefield, Tyler

unread,
Jun 17, 2019, 10:09:58 AM6/17/19
to Kevin Struska, MOO Talk
Why not just use events? Make says, emotes, etc trigger events on the room and then have NPCS and etc pick up those events by simply having a verb like event_say on them. Then you don't have to strip off the "tells" portion, etc.
HTH,
--
You received this message because you are subscribed to the Google Groups "MOO Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MOO-talk+u...@googlegroups.com.
To post to this group, send email to MOO-...@googlegroups.com.
Visit this group at https://groups.google.com/group/MOO-talk.
To view this discussion on the web visit https://groups.google.com/d/msgid/MOO-talk/c1db712d-66d9-4e57-af0c-72dc8069baf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Kevin Struska

unread,
Jun 17, 2019, 2:01:01 PM6/17/19
to ty...@tysdomain.com, MOO Talk

Could you give me an example of what capturing conversation might look like if I was to add event_say?

Reply all
Reply to author
Forward
0 new messages