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-nmm7 (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-nmm7 (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-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 4 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC AI
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #12
RE: NPC AI
This is not the kind of script that eat so much memory, just a var per animal group (rabbits, wolfs,etc) holding the total amount of each one killed in the past hours (just as a idea of how to handle the behaviour, there could be better ones for sure), or a defname per each group with all the npcs inside it (def.wolfs=c_wolf_gray,c_wolf_white,etc) and another holding race enemies (def.rabbit_enemy=wolfs), in any case, a @Timer in t_spawn_char reading more1 and checking for this would be more than enough, not a big deal for Sphere.
01-06-2014 06:38 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPC AI - Skul - 09-20-2012, 05:08 PM
RE: NPC AI - Extreme - 09-20-2012, 11:51 PM
RE: NPC AI - Skul - 09-21-2012, 01:42 AM
RE: NPC AI - Extreme - 09-21-2012, 01:44 AM
RE: NPC AI - Skul - 09-21-2012, 01:50 AM
RE: NPC AI - Extreme - 09-21-2012, 02:15 AM
RE: NPC AI - Skul - 09-21-2012, 04:44 AM
RE: NPC AI - Skul - 09-24-2012, 02:58 AM
RE: NPC AI - Skul - 09-24-2012, 05:41 AM
RE: NPC AI - Skul - 10-01-2012, 02:53 PM
RE: NPC AI - amonvangrell - 01-06-2014, 11:06 AM
RE: NPC AI - XuN - 01-06-2014 06:38 PM

Forum Jump:


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