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:
  • 4 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC AI
Author Message
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #11
RE: NPC AI
I am sorry to revive this thread but I have a big interest in this script, as I remember Lord British once said, on his UO world every animal had their own behavior and so depending on the players actions, you would end up seen more rabbits in the map if the players were hunting down more wolfs, and less rabbits if the wolfs were left alone.
I was wondering if such behavior its possible to be achieve on sphere or this would end up eating to much memory...
Anyway I think that it would be great if roaming around the world you end up seeing a wolf attacking a rabbit... don't you think??
There is also the matter of sectors sleep... hmm am confuse, anyone with more knowledge could wondering about please?

Thanks!

BTW Amazing script Skul, thanks allot!
P.S is it possible to update this script to the last sphere version? thanks!
(This post was last modified: 01-06-2014 11:33 AM by amonvangrell.)
01-06-2014 11:06 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
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 


Forum Jump:


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