Jump to content
  • Advertisement
Sign in to follow this  
wabuilderman

Animal-like AI

This topic is 854 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Basically, I want to create an AI that emulates emotion, even if doesn't REALLY have any emotions. The idea is to give an AI semi-random 'tasks' based on it's experiences, and have it create 'relations' with other entities. Rather than length written text, I think a graph, and a mach up of the structs should be sufficient to explain my current path. What I came here for is for ideas on what all I had forgotten.

public struct Relation
{
   int trust;
   int obedience;
   int admiration;
   int timeKnown;
   int timeAway;
   Entity target;
}

public struct Task;
{
   bool complete;
   int id;
   Entity cause;
   Entity target;
   int timeDelayed;
   int importance;
}

public struct Entity
{
   gameObject root;
   Relation[] relations;
   int happiness;
   Task currentGoal;
   Task[] previousGoals;
   int pain;
}

muRkwKE.png

 

This isn't by any means supposed to be a truly intelligent, or even emotional AI. I just want it to, from an outside appearance, have around the same level of emotions as a dog, or a cat. What all things do I need to add to status' fields? Are there additional structs that should be made? Is my entire model wrong? I will gladly consider any and all feedback.

Share this post


Link to post
Share on other sites
Advertisement
This is the wrong way to go about building a model of a simulation.

You need to start with concrete requirements - i.e. specific things that you want the AI to do. What does it even mean to have the emotions of a dog or cat? How does that influence their behavior? How will the player observe these simulated emotional states?


Those are the kinds of questions to begin with. Once you know what the observable effects of your AI should be, it becomes much easier to build a model that actually produces those effects.

What you have now is... ambiguous, I guess. Maybe it does what you want, maybe it doesn't. But cramming features into a code sketch is not going to get you a good result either way.

Share this post


Link to post
Share on other sites

Maybe have light and minerals that they seek. The most you can do is a multi-cellular sponge intelligence.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!