J_AI

by Johan411
[Share] [Zip]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Johan411.J_AI##version=5

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Johan411.J_AI##version=5

883 downloads
Version 3.00
Date added: Aug 14 2011
Last updated: Sep 15 2011
18 fans
J_AI
Give your npc's more intelligence and feel with J_AI, also comes with some very unique features! [More]
Version: 3.00




Features:

  • AI

  • Combat system

  • Fully commented code





    I'm always looking for suggestions and comments also if you want to see any features just leave me a comment or message me through the BYOND pager.



    Download for V2.50 Here
Click Here to see more creations by Johan411

Advertisement

Comments

A.T.H.K: (Feb 27 2012, 10:00 pm)
Jmurph wrote:
Okay, a couple of issues off the bat:
Setting loop_checks to 0 is a very bad idea. You should be able to do an event loop without needing this.
Also, putting all the rpg guts in AI.dm is poor form for a library and not super for a demo- split it to its own file as it shouldn't be necessary for a simple AI loop.
The loop itself seems to use states to determine activity, but instead of having 1 var reflecting mob state, you have a bunch (active, fighter, etc).

I would recommend you take a look at Deadron's event loop to see a good implementation of an event loop and simple behavior schemes.

Zenglare: (Feb 27 2012, 9:28 pm)
It's the loop, sometimes NPCs keep trying to attack the player and the loop keeps running till it crashes.
DGS Keelan: (Dec 26 2011, 6:30 pm)
The demo worked fine a while back but recently somethings happened. When ever the player and an NPC make contact the demo crashes and needs to shut. Got any solutions please?

P.S.
I re-downloaded and the same thing happens
Johan411: (Sep 27 2011, 8:18 pm)
Jmurph wrote:
Okay, a couple of issues off the bat:
Setting loop_checks to 0 is a very bad idea. You should be able to do an event loop without needing this.
Also, putting all the rpg guts in AI.dm is poor form for a library and not super for a demo- split it to its own file as it shouldn't be necessary for a simple AI loop.
The loop itself seems to use states to determine activity, but instead of having 1 var reflecting mob state, you have a bunch (active, fighter, etc).

I would recommend you take a look at Deadron's event loop to see a good implementation of an event loop and simple behavior schemes.

Thanks for the comments and idea. I'm going to be releasing a new update pretty soon that uses my new JEvent library. This update may take me awhile to complete, seeing that i am a full time student.


Jmurph: (Sep 16 2011, 6:49 am)
Okay, a couple of issues off the bat:
Setting loop_checks to 0 is a very bad idea. You should be able to do an event loop without needing this.
Also, putting all the rpg guts in AI.dm is poor form for a library and not super for a demo- split it to its own file as it shouldn't be necessary for a simple AI loop.
The loop itself seems to use states to determine activity, but instead of having 1 var reflecting mob state, you have a bunch (active, fighter, etc).

I would recommend you take a look at Deadron's event loop to see a good implementation of an event loop and simple behavior schemes.