nice
Tk037 I tried to fill in what you did, but its not working. should I not make the thing i want to respond an obj or what?
Oh what. Are you trying to make a virtual civilization? Oh wait, that exists. That's the internet!
I just wanted to try something new
In response to Audio freak XD
It's too bad we can't pay people to be NPCs by standing around a shop 24/7...
Don't take offense to my comment! That's just humor, I promise. XD
In response to Dayvon64
Dayvon64 wrote:
Tk037 I tried to fill in what you did, but its not working. should I not make the thing i want to respond an obj or what?

It depends on your Say verb of course, the one I made above works like

verb/Say(var/phrase as text)
//First, display what you've said
view(4,src) << "<b>[src]:</b> [phrase]"
//Then, for every NPC around you
for(var/mob/NPCS/F in oview(4,src))
//Have that NPC evaluate your phrase,
//and pass in your name too in case they should respond
F.eval_phrase(phrase,src.name)


And in this case, the only ones to respond would be
for(var/mob/NPCS/F in oview(4,src))


/mob/NPCS, and anything derived from /mob/NPCS/ like mob/NPCS/Ogre


If you change that to

for(var/obj/F in oview(4,src)) //NOTE THE var/obj/F
F.eval_phrase(phrase,src.name)


Then objs will now try to respond; however, you now have to make sure objs have the following in their definition
so they know how
        var
//This is a list of Questions that this NPC may process
list/Question/questions
proc
//This is how we will actually process what is said,
// and respond to the source
eval_phrase(var/phrase,var/source)
//First we loop through our questions
for(var/Question/P in src.questions)
//We ask each of our questions to evaluate your phrase
if(P.eval_phrase(phrase,src))
//If your phrase turned out to signal the question,
//the question will give us the proper response
var/response = P.response()

//Then we will pass this response to our NPC in case it has its own
//behavior for it
respond(response,source)

break
respond(var/response,var/toWhom)
world << "[response], [toWhom]"


and after that, if you have a Fairy or something make sure it still has the list of questions like
obj
Fairy
//blah blah
questions = list(new /Question/FairyHello())
You could actually have a multitude of two people having conversations with each other and then calculate what words/sentences are followed by something else. Store it in a list and save it in a file. This follow up of words will be called a follow-up combo. Based on how often a follow-up combo occurs, use that as a prob() to select which sentence the AI should say next.

I kind of feel like doing this. Making my own chat AI in BYOND kind of like cleverbot. It seems feasible.

Edit:

https://github.com/gabrielecirulli/cleverbot-api
That'd be neat.
Cool, thank you guys. Could I add any of you on pager just for quick tips or something?
I don't care. It's not like I use the friend system anyways. Man.. I miss the old pager... Or, at least the unique parts about it. This new pager looks good, but isn't good.
So I can add you?
He said he didn't care Day, that's a 'do as you will' kind of thing.

Xirre. I too, miss the old pager. :C
Old pager was much better
In response to Dayvon64
Dayvon64 wrote:
Tk037 I tried to fill in what you did, but its not working. should I not make the thing i want to respond an obj or what?

I strongly recommend this for you: http://www.byond.com/developer/Dantom/YourFirstWorld.
Also, English lessons, and the Shift Key.
In response to Ease
Ease wrote:
Dayvon64 wrote:
Tk037 I tried to fill in what you did, but its not working. should I not make the thing i want to respond an obj or what?

I strongly recommend this for you: http://www.byond.com/developer/Dantom/YourFirstWorld.
Also, English lessons, and the Shift Key.

What a dick. Lol.
In response to Xirre
Dude's got my vote.
In response to Zecronious
Zecronious wrote:
Dude's got my vote.

Same.
In response to Ease
Page: 1 2