AI System |
|
Somewhat smart monsters? Definitely! [More] |
To download this demo for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://DivineTraveller.AISystem##version=7 Emulator users, in the BYOND pager go to File | Open Location and enter this URL:byond://DivineTraveller.AISystem##version=7 |
This is my attempt at smart monster brains. It is lightly commented, but they're more like notes...
Thanks to Theodis for the awesome pathfinding library, and Lummox JR for his get_general_dir() proc! The intention of making this artificial intelligence was to further my own learning of bit flags, and make something useful in the process. What I've put into the AI was what I thought was common RPG-esque AI styles. It can: chase you down chase npcs down get close, and not quite next to you engage you in combat call for help help if it's friend is being attacked flee and*, walk back to its spawning location *not necessarily in that order, eliminating steps as necessary v1 - first release v2 - fixed runtime error; renamed all bit flags - added friendly monsters - made a demo v3 - made monsters able to call for help - fixed some minor bugs - made "step_limit" v4 - fixed an error with wandering monsters not wandering - fixed an error with the files that were being downloaded, the correct files should now download. v5 - small adjustments with the AI; fixed a small error which made monsters not trigger. v6 - made the monsters smarter in terms of chasing monsters (they will go much faster if they are chasing someone down, than if they're wandering, for example. |
Ultimate-Super-Gohan-11: (Feb 24 2014, 12:21 pm)
okey thanks
DivineTraveller: (Jan 28 2014, 7:08 pm)
You may want to look into "Bitwise Math" -- that should help you understand the flags.
Ultimate-Super-Gohan-11: (Jan 18 2014, 12:49 pm)
really coll, just what i was looking for, but hard to undertstand the flag thing
Cyberlord34: (Apr 19 2009, 11:55 am)
The Download doesnt even work =/
|
Copyright © 2024 BYOND Software.
All rights reserved.