Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monsters: Hunter AI #3

Open
Shoes01 opened this issue Aug 29, 2018 · 0 comments
Open

Monsters: Hunter AI #3

Shoes01 opened this issue Aug 29, 2018 · 0 comments

Comments

@Shoes01
Copy link
Owner

Shoes01 commented Aug 29, 2018

A very simple AI that roams the maps and kills prey.

Life cycle

A hunter AI will attempt to detect the scent of nearby prey (via dijkstra map).
If the detection fails (the dijkstra number is great than the detection skill), then the hunter AI will choose a direction at random and move towards it. It will continue to attempt to detect scent (it will not know if it is moving away or towards, despite the dijkstra map being able to inform the AI). After 15(?) paces, it will choose a new direction and restart the process.
If the detection is successful, it will just the dijkstra map to move towards the prey.
Once the hunter reaches the prey, it will attack it to death. It will incur injuries.
After killing the prey, it will consume the remains. After doing so, the hunter will regain some hp, and birth a new hunter. The new hunter will have stats influenced by the killed prey. These actions will require time spent.
The cycle restarts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant