There was no blood but this is still cool!
im guessing its just detecting what the player says?
if so, thats not ai.
Still its cool.
True, the only AI portion of it is that it knows between criminals, mean players and normal players, and can detect crime
But Insanity_Lunar’s map isn’t done yet, so I can’t work on the planned part of my AI yet which is that once they’re hurt, they go running to the nearest hospital/police station
Even in the real world (like in actual “ai” companies), there isn’t truly any real AI, just algorithms.
So yeah, it detects what the player says, but hey! Seems to work pretty damn well.
Yeah, its kinda like npc’s are becoming smart.
It just tells you what to say then it responds to it, and then they say its “AI”
kinda hurts my npc conversation module is being compared to that game… that game doesn’t have true dialog, it’s very phrase specific and doesn’t allow for more dialog. I doubt that game’s very modular with its NPC chatting system too, since the whole point of its dialog is to complete endings, not talk your way out of a murder or to befriend npcs so they can revive you and give other benefits
I’m guessing it looks for a word inside of a sentence?
like if you said a sentence including “you suck” like “Hey! Stupid npc, you suck!” then it would say somethin back?
If so, then its way better then NPCs are becoming smart. (No hate.)
yep, precisely
this is the entire table of prompts in the module so far
and to check if a word belongs in any of those categories, I do some string manipulation first to format the string (incase a comma, paranthesis, exclamation, or other things are used), and then i run a for loop on the phrases table to check whether if the words that have been sent belong to a category in phrases, and will return a table containing all the matching categories returned
note: there are some unused tables there (threats and tense), don’t know what i’ll do with tense for now
Imagine insulting a npc in spanish
Eres solo un NPC, nunca serás nada. ¡Ríndete tonto!
That is so cool! I like how it is aware of what is happening around it bc in that one video where you hit the one npc I noticed while you were having a conversation with it the other npc was pretty much like “What is going on? Are they ok?”
They seem very smart. Good work dude!
Just make sure you don’t include real threats in the threats part since Roblox reviews code that contains threats.
It would be interesting to see this hooked up to OpenAI davinci. You wouldn’t even need to define all these strings in this giant table, just make a web request to OpenAI and get the result. It would be incredibly easy to define different personalities for npcs, too
What do you mean by real threats? Elaborate so I can at least still SCARE npcs to give me money
Like I mean, something like mentioning a specific username or I will … IRL
Yeah these should be fine, since they aren’t directed at anyone (in the code).
Can you open source it and put it in community resources? I’d love to use this in one of my games
Yes I am currently working on some sort of adventure game and this would be an amazing feature. Obviously I would give credit where credit is due.