Commit graph

25 commits

Author SHA1 Message Date
Erik Ogenvik
44ed7096f3 Modify forester and lumberjack.
Make them behave a little better.
2013-07-25 17:14:59 +02:00
Erik Hjortsberg
c90b62d52d Handle punctuation and upper case intial letter.
The interlinguish code couldn't handle sentences starting with upper
case letters, and ending in punctuations.
2011-10-23 16:04:52 -07:00
Amey Parulekar
015c03f4d2 Re-added school and amble goals to interlinguish 2009-07-17 15:24:06 +05:30
Al Riddoch
d4968ffcc2 2007-11-28 Al Riddoch <alriddoch@zepler.org>
* rulesets/basic/editor.py: Don't pre-pend the name on sentences
	  sent to program the AIs.

	* rulesets/basic/mind/NPCMind.py: Replace all the places where
	  the name of an entity is taken with a function which checks
	  for the name, but then uses the type if it is not present.

	* rulesets/basic/mind/panlingua/interlinguish.py: Fix the code
	  that strips the name from the beginning of sentences so that
	  it checks first.
2007-11-28 20:51:43 +00:00
Al Riddoch
ba57f6e668 2007-09-06 Al Riddoch <alriddoch@zepler.org>
* rulesets/basic/mind/panlingua/interlinguish.py: Add the list verb.

	* rulesets/basic/mind/Goal.py: Add a __repr__() method to make it
	  more intuitive to get a text representation of a goal.

	* rulesets/basic/mind/NPCMind.py: Add a handler for the list verb
	  that causes all the matching knowledge to be listed.
2007-09-06 22:17:57 +00:00
Al Riddoch
bb9d601cfd 2007-02-18 Al Riddoch <alriddoch@zepler.org>
* rulesets/basic/mind/panlingua/interlinguish.py: Add nouns for a
	  number of tools, by Max Randor.

	* rulesets/mason/define_world.py: Make many more tools available for
	  sale, by Max Randor.
2007-02-18 21:59:00 +00:00
Al Riddoch
3bc905142b 2007-01-29 Al Riddoch <alriddoch@zepler.org>
* rulesets/basic/mind/panlingua/interlinguish.py: Add some clothing
	  types to the vocabulary.

	* rulesets/mason/define_world.py: Add a tailor stall to the village.
2007-01-29 01:08:04 +00:00
Kai Blin
90cb6f0ca3 2005-06-24 Kai Blin <blin@gmx.net>
* rulesets/mason/define_world.py: Add peck as a goal for the chicken,
  and a test_chicken function.

* rulesets/basic/mind/panlingua/interlinguish.py: Add peck verb.

* rulesets/basic/mind/goals/common/misc_goal.py: Add peck goal.
  Chicken will now run around. The actual peck will be added later.
2005-06-24 16:48:46 +00:00
James Turner
846f90be15 2005-06-20 James Turner <james@worldforge.org>
* rulesets/basic/mind/panlingua/interlinguish.py: add nouns for
	  various tools that can be sold.
2005-06-20 13:13:04 +00:00
Al Riddoch
4155ad1240 Remove some obsolete .cvsignore files 2005-01-25 23:56:42 +00:00
Al Riddoch
8e5c27bf80 2004-01-09 Al Riddoch <alriddoch@zepler.org>
* rulesets/mason/define_world.py: Use know() for prices rather
	  than the special case code.

	* rulesets/basic/editor.py, rulesets/basic/mind/NPCMind.py:
	  Remove obsolete special case code for handling knowledge of
	  prices. Improve code to express distance to a location so
	  it neglects the vertical distance, and better handles the
	  very close case.

	* rulesets/basic/mind/goals/humanoid/mason.py: Track the character
	  being helped in the help goal, and turn to face them when speaking.

	* rulesets/basic/mind/panlingua/interlinguish.py: Add more support
	  for pronouns, conjugations and whitespace in regex used to match
	  certain sentence structures.
2005-01-09 21:24:57 +00:00
Al Riddoch
1d368609cd 2004-01-09 Al Riddoch <alriddoch@zepler.org>
* rulesets/basic/mind/panlingua/interlinguish.py:
	  Slight tweak to regular expressions for simple sentences.
2005-01-09 02:01:09 +00:00
Al Riddoch
003dcfbcc3 2004-01-09 Al Riddoch <alriddoch@zepler.org>
* rulesets/Py_Vector3D.cpp: Add print handler for Vector3D, which
	  doesn't seem to work yet.

	* rulesets/basic/mind/panlingua/interlinguish.py: Add tell verb.
	  Modify regexs for simple sentences so they tolerate more
	  variation in the structure.

	* rulesets/basic/mind/compass.py: New function to convert direction
	  vector into a compass direction string.

	* rulesets/basic/mind/NPCMind.py: Add handler for tell verb, to
	  query knowledge from NPCs.
2005-01-09 01:16:16 +00:00
Al Riddoch
76dbac23b1 2004-12-18 Al Riddoch <alriddoch@zepler.org>
* rulesets/basic/mind/panlingua/interlinguish.py: Added new noun for
	  deed.

	* data/mason.xml, rulesets/mason/define_world.py: Added new marshall
	  character who handles asigning land to settlers for housing.
2004-12-18 23:04:03 +00:00
Kai Blin
d727a89d62 2004-07-05 Kai Blin
Made the fir edible for deer and the deer browse on the firs.
2004-07-05 21:50:49 +00:00
Al Riddoch
e2de50c8ef 2004-06-20 Al Riddoch <alriddoch@zepler.org>
* rulesets/World.cpp, rulesets/World.h: Add accessor to get height
	  at a particular point.

	* server/Account.cpp: Remove redundant check on new character
	  location.

	* common/BaseWorld.h, server/WorldRouter.cpp, server/WorldRouter.h,
	  rulesets/Thing.cpp: Add new function for correcting height
	  of entities to ground level, and use it whenever new entities
	  are created, or whenever an entity moves.
2004-06-20 22:58:18 +00:00
Al Riddoch
9f9b0c12a3 2004-06-20 Al Riddoch <alriddoch@zepler.org>
* rulesets/Python_API.cpp: Clean up use of standard error to go
	  via the log subsystem.

	* rulesets/basic/editor.py, rulesets/basic/mind/NPCMind.py,
	  rulesets/basic/mind/panlingua/interlinguish.py,
	  rulesets/mason/define_world.py:
	  Expand handling of the verb "know" so that knowledge
	  is a triple, including predicate, so that know can be used
	  to inform a character of any knowledge. Generalise the client
	  code, and tweak the client data to include the right information.

	* mason.xml: Add new rule for mercenaries.

	* rulesets/basic/mind/goals/humanoid/transaction.py: Add new
	  dynamic goal for NPCs offering their services for hire.

	* rulesets/basic/mind/panlingua/interlinguish.py:
	  Add new words related to hirable NPCs

	* rulesets/mason/define_world.py: Start programming up warriors
	  to be hirable.
2004-06-20 19:24:36 +00:00
Al Riddoch
43893cbf07 2004-04-22 Al Riddoch <alriddoch@zepler.org>
* Add some chickens.

	* rulesets/Py_Map.cpp: Handle null entities cleanly.

	* rulesets/Plant.cpp: Don't drop generic seeds.

	* common/const.cpp: Cut down sight range.
2004-04-22 12:50:23 +00:00
Al Riddoch
51a14ef8cf 2002-09-11 Al Riddoch <alriddoch@zepler.org>
* Added IG help.
2002-09-11 11:02:40 +00:00
Al Riddoch
7b4f91b8c8 2002-09-04 Al Riddoch <alriddoch@zepler.org>
* Added various nifty bits of mason behavoir.

	* rulesets/Py_Operation.cpp: Always return an error, if the script
	  does something invalid with the python API.

	* rulesets/BaseMind.cpp: Implement operation triggers in
	  the mind scripts.

	* Document some bugs, bring TODO up to date, and bump up version
	  to 0.1.92.
2002-09-03 23:23:43 +00:00
Al Riddoch
716cb0f8de 2002-04-25 Al Riddoch <alriddoch@zepler.org>
* rulesets/Entity.cpp, rulesets/Entity.h, rulesets/Character.cpp,
	  rulesets/Character.h, rulesets/Thing.cpp, rulesets/Food.cpp:
	  Renamed weight member as mass, and use this name in Atlas,
	  as this is a better convention, and has already been adopted in
	  stage.

	* Switched python code to using mass instead of weight, as it is
	  a more accurate term.

	* common/globals.cpp, common/globals.h, tools/cyloadrules.cpp:
	  Put admin modifiable config in etc instead of share directory.

	* Don't build cycmd if readline is not available. Untested, and
	  probably nasty.
2002-04-26 08:08:48 +00:00
Al Riddoch
dee412c0a0 * client/CharacterClient.cpp: Removed commented out code.
* client/CreatorClient.cpp: Fixed processing the response
	  to a create operation, and cleaned up debugging output.

	* client/ObjserverClient.cpp, client/ObserverClient.h,
	  client/client.cpp: Added setup method, which which handles
	  connecting, negotiation, logging in and creating character.

	* client/Py_CreatorClient.cpp: Added check if make() failed.

	* rulesets/Python_API.cpp: Fixed setting the import hooks
	  list properlly to include the ruleset list in use, instead
	  of hardcoding it.

	* rulesets/acorn/define_world.py: Copied define_world.py script
	  from client directory for Acorn.

	* rulesets/basic/editor.py: Modified to be used from C++ core.

	* rulesets/basic/mind/goals/__init__.py,
	  rulesets/basic/mind/goals/humanoid/werewolf.py:
	  Added in goals file to contain goals related to werewolf.

	* rulesets/basic/mind/panlingua/interlinguish.py:
	  Added in vote and execute verbs for werewolf.

	* rulesets/werewolf: Added in new ruleset for werewolf.

Al Riddoch  <alriddoch@zepler.org>
2001-08-19 18:37:38 +00:00
Al Riddoch
14c9de736f * server/Lobby.h, server/Lobby.cpp, server/Account.cpp: Added code
for querying lobby, then disabled it as it seems to hang uclient.

	* rulesets/basic/mind/panlingua/interlinguish.py,
	  rulesets/basic/mind/goals/common/misc_goal.py,
	  client/mind/panlingua/interlinguish.py: Added goal to
	  maintain opening and closing market stalls, and goal for having
	  a meal.

	* rulesets/basic/mind/goals/common/move.py: Fixed assemble goal
	  meaning lych now works again.

	* rulesets/basic/mind/Memory.py: Adapted query for location of
	  entity so that it accepts lists of possible types.

	* rulesets/Character.cpp: Enabled creating items by NPCs.

	* client/define_world.py: Updated NPC behavoir.

Al Riddoch  <alriddoch@zepler.org>
2001-06-24 18:46:33 +00:00
Al Riddoch
3925000cd3 * Cleaned up auto-* stuff, and created spec file for RPMs.
Al
2000-12-17 22:21:43 +00:00
Al Riddoch
e635657e3f * Added in Python interface code to deal with manipulation of operation
time.

	* Made basic_tick a float, because it should be.

	* Imported all the rulesets python code from python cyphesis.

Al
2000-11-27 18:28:20 +00:00