Thread: Adaptive mobs
View Single Post
Old 04-29-2003, 03:54 PM   #7
Blobule
New Member
 
Join Date: Jul 2002
Location: Canada
Posts: 17
Blobule is on a distinguished road
It strikes me that it's all the same really. Your creature adapts during its
current lifespan, but no other mobs share that learning. This is merely a
variable scoping issue. On our MUD we support 5 types of variable scope,
3 of which are relevant here. Global Perisistent vnum scope -- variable is
shared by all instances of the the vnum (type specific, objects and mobs
of same vnum don't share data) and data persists through server reboots.
Global non-persistent -- same as above but reset during each reboot.
Instance specific -- variable has the same duration as the life of the entity.
Thus depending on which scope I use I can achieve any of the above
styles of adaptation.
Blobule is offline   Reply With Quote