From: Anders R. <ma...@us...> - 2006-10-19 22:07:48
|
Update of /cvsroot/planeshift/planeshift/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8086/data Modified Files: npcbehave.xml Log Message: - Added support to memorize when items are picked up. - Created a new InventoryPerception. - Added parameter radius to memory find function. This will find memories within radius from the given position. This to prevent a number of memories about the same thing with just small diffrences in position. Index: npcbehave.xml =================================================================== RCS file: /cvsroot/planeshift/planeshift/data/npcbehave.xml,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** npcbehave.xml 13 Oct 2006 06:41:45 -0000 1.44 --- npcbehave.xml 19 Oct 2006 22:07:44 -0000 1.45 *************** *** 355,366 **** <!-- debug state="no" /--> </behavior> ! <react event="tribe:explore" behavior="Explore" delta="100" /> ! <react event="location sensed" behavior="ExploreLoc" delta="0" type="mine" only_interrupt="Explore" /> ! <react event="tribe:dig" behavior="Dig" delta="100" /> ! <react event="tribe:path1" behavior="Path1" delta="100" /> ! <react event="tribe:path2" behavior="Path2" delta="100" /> ! <react event="tribe:reproduce" behavior="Reproduce" delta="0" inactive_only="yes" /> ! <react event="tribe:resurrect" behavior="Resurrect" delta="0" inactive_only="yes" when_dead="yes" /> </npctype> --- 355,372 ---- <!-- debug state="no" /--> </behavior> + <behavior name="RememberLoc" completion_decay="0" growth="0" initial="0" > + <debug state="yes" /> + <memorize obj="perception" /> + <debug state="no" /> + </behavior> ! <react event="tribe:explore" behavior="Explore" delta="100" /> ! <react event="location sensed" behavior="ExploreLoc" delta="0" type="mine" only_interrupt="Explore" /> ! <react event="tribe:dig" behavior="Dig" delta="100" /> ! <react event="tribe:path1" behavior="Path1" delta="100" /> ! <react event="tribe:path2" behavior="Path2" delta="100" /> ! <react event="tribe:reproduce" behavior="Reproduce" delta="0" inactive_only="yes" /> ! <react event="tribe:resurrect" behavior="Resurrect" delta="0" inactive_only="yes" when_dead="yes" /> ! <react event="inventory:added" behavior="RememberLoc" delta="0" type="Gold Ore"/> </npctype> |