- Home /
Topic too broad/Discussion topic
A few questions here regarding AI
Hello, I'm a university student current on their summer break.
I just got back from holiday and noticed that the people in the East were rather interested in Ghost stories and horror etc. Which got me thinking about what to make during the summer break once I got back to the UK.
So what I've got in mind is creating a small app/minigame using something like a Ouiji board that people use to summon ghost.
Creating the board and making it interactive should be within my current level of skill but after a dicussion with a classmate. I was beginning to wonder if it possible to use unity to create an AI on the level of Siri or Samsung voice, which can select and play a range pre-recorded answers giving off the illusion that a ghost is speaking?
Would like some ideas and feedback though I believe creating an advanced AI is aquite out of my league.
Broad question. All I can say is that it is fully possible to do in Unity.
Unity Answers is not well suited to discussions like this one. Normally I'd sent you to Unity Forums with it more discussion-centric format, but beyond saying you can probably do it, this is not really a Unity Question.
Yeah I'm still new to unity community, wasn't sure where to go.
Sorry about that.
Answer by markedagain · Jul 18, 2013 at 09:03 PM
no reason u cant pull off anything in unity that u can do in other engines.
the question is if there is something already laid out like assets in the store, and i dont think there is. its no small task and would be a project all on its own. ( to get it to anything remotely close to Siri)
Yeah, cause what I had in $$anonymous$$d required the AI to be pretty smart, to be able to provide a variety of response rather than the standard Yes or No response.
Although that is what I plan to start with of course the standard written Yes or No then advance it into something that can give a automated response depending on what is asked.
Answer by RyanZimmerman87 · Jul 18, 2013 at 11:36 PM
Sounds like it should be fairly simple you just need a workflow to determine the results. Quick example:
int playerActionInt;
int enemyResponseInt;
int randomNumberInt;
bool conditionForGhostResponse;
void Update()
{
//trigger ghostResponseFunction
if (conditionForGhostReponse == true)
{
ghostResponseFunction();
conditionForGhostResponse = false;
}
}
void ghostResponseFunction()
{
if (playerActionInt ==1)
{
randomNumberInt = Random.Range (1,4);
if (randomNumberInt == 1)
{
//ghost action 1
}
else if (randomNumberInt == 2)
{
//ghost action 2
}
//etc.
}
else if (playerActionInt == 2)
{
if (randomNumberInt ==1)
{
//ghost action 3
}
else if (randomNumberInt == 2)
{
//ghost action 4
}
//etc.
}
}
That is a basic logic outline how you could do something like this. I'm not sure if the ghost or all the details are anything like your project just rushed for basic answer. I hope that helps.
Ah ok so it pretty much the If and Else statements to deter$$anonymous$$e what is given for it to reply.
In which case what if it a verbal command? Will it work in the same way?
Follow this Question
Related Questions
Spline Work-Around. Joints? 0 Answers
How to add MoPub Interstitial ads between levels? 0 Answers
Method to divide a a map into 3d spaces 0 Answers
How can I add time to a timer on an object collision? 1 Answer