Skip to content

v3.3

Compare
Choose a tag to compare
@fredrikr fredrikr released this 18 Dec 10:09
· 586 commits to master since this release

Important to note when upgrading:

  • The library now provides a 'score' verb even for non-score games, just to say there is no score in this game. If you have a non-score game which implements the "score" verb, you now have to remove your implementation or replace ScoreSub with your routine, or change the library message MSG_SCORE_DEFAULT.

Changes in functionality:

  • Implemented ChooseObjects entry point routine.
  • Added a 'score' verb for games with no score, which just prints a message saying there is no score in this game.
  • Added an example of how to add random comments to a game (howto/comments.inf).
  • Changed so that NPCs can't use wildcards, such as "take all" (This was deemed a both buggy and undesirable behaviour)
  • Set lower priority in parser for objects that aren't held when issuing an action that expects a held object.
  • Set lower priority in parser for held objects when issuing a Take command, even for NPCs.

Optimizations:

  • Exclude code to call LibraryMessages unless it's defined.

Bugfixes:

  • Stopped the parser from trying to pick up object for Held grammar token when actor isn't player.
  • Fix so noun is the first recognized word in topic, and second is the actor, when action == ##NotUnderstood
  • Fixed bug which made parser not recognize NPC name if player first did "go (direction)" or asked an NPC to do it, e.g. "John, go east" and then "John, take the sweater".
  • Improved parsing of complex disambiguation messages such as 'get blue book and books' and 'get blue book and all books except blue'
  • Fixed bad call to each_turn when aborting a disambiguation question