The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom AI Events
Author Message
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #8
RE: Custom AI Events
I like this and intend to use some of these aspects in my AI pack. One thing I'd change would be using fewer firm coded checks and more refrencing the creature's data. That way fewer events can handle more creatures. Some examples:

Use the NPCs AVERSIONS to determine what types to run from. You can also check for the carnivore type events themselves rather than bodies.

Likewise for the wolf pack hunt you could store a list of wolves in their DESIRES and check against that. Then using the event for Raptors or somesuch is as easy as adding it and editing their DESIRES.

Using this logic the bird event becomes a generic event for a monster that attacks a few specific things listed in its AVERSIONS and runs from anything else.

The egg laying event can be one script that uses a LAYER (er, bad choice of name, maybe UIDMOTHER?) tag. Then the eaters can check if they are the layer, the layer is of their species, etc. So the snake would have 3 events, the laying event, the egg eating event and a combat control event. The laying event would be shared with chickens.

Not quite in the same vein but considering NPCSpecialAction, it can be enabled with a tag and scripted to do the eggs, poop and so on. Less fine control but also less need for timers. I know this is how spider webs and fire elemental flames work and I think herd animal poop is on the same system.

"-- All AI's will come back to their HOME if they DISTANCE > HOMEDIST" This shouldn't need to be scripted, I rely on the fact they do this automatically to move NPCs along paths and to follow other NPCs.

Finally the big one. I'd like to see the bear fishing really use skill and be comparable to PC gathering. Make it work for other skills so we can have a mining Iron Beetle. Trouble is that these skills need tools so you can't just start the action and let Sphere handle it. We'd need a comparable gathering script for NPCs that don't use tools but still runs through normal checks and uses the actual resource pool of the region.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
(This post was last modified: 08-21-2012 08:17 AM by Anarch Cassius.)
08-21-2012 08:16 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Custom AI Events - Extreme - 08-20-2012, 01:36 PM
RE: Custom AI Events - htid4life - 08-20-2012, 08:23 PM
RE: Custom AI Events - Extreme - 08-21-2012, 12:34 AM
RE: Custom AI Events - Skul - 08-21-2012, 01:58 AM
RE: Custom AI Events - Extreme - 08-21-2012, 02:14 AM
RE: Custom AI Events - htid4life - 08-21-2012, 02:27 AM
RE: Custom AI Events - Extreme - 08-21-2012, 07:21 AM
RE: Custom AI Events - Anarch Cassius - 08-21-2012 08:16 AM
RE: Custom AI Events - admin phoenix - 08-21-2012, 03:30 PM
RE: Custom AI Events - Skul - 08-22-2012, 06:30 AM
RE: Custom AI Events - Extreme - 08-22-2012, 06:49 AM
RE: Custom AI Events - Skul - 08-22-2012, 09:06 AM
RE: Custom AI Events - Extreme - 08-22-2012, 10:43 AM
RE: Custom AI Events - htid4life - 08-23-2012, 08:50 AM
RE: Custom AI Events - RanXerox - 08-23-2012, 10:25 AM
RE: Custom AI Events - Pollo - 11-05-2012, 11:33 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)