mknepprath / lilt

A Twitter text adventure.
https://botsin.space/@lilt
2 stars 1 forks source link

Retain an item reference #5

Open mknepprath opened 4 years ago

mknepprath commented 4 years ago

If a player says "Inspect the rock," and then for their next move "pick it up," it'd be cool to retain the fact that they were talking about the rock previously and replace "it" with "rock". Possible solution:

  1. Perhaps a new player state property - last_item_referenced. This should probably only be retained for 1 move unless they do reference it with "it"?
  2. Lilt currently accounts for "pick up rock" but not "pick rock up," which is what would be generated by replacing "it" with "rock" in "pick it up." :\ This may be a rare case, though, since most other conversions would be fine: "take it" => "take rock", "drop it" => "drop rock"...