scrom / Experiments

a NodeJS text adventure - deliberately coded badly to re-experience the pain of legacy code
http://mvta.herokuapp.com/
2 stars 0 forks source link

Player entering "go to X" where x is an object should be handled better #483

Closed scrom closed 8 years ago

scrom commented 8 years ago

If it's in the current location, it should tell them they're already there. Otherwise it should default to "find" or similar.

scrom commented 8 years ago

in addition if player has line of sight to an object the game should suggest which direction to go. Line of sight = less than 3 locations away in a straight direction with no doors. (means working out path to item) - might be costly.

scrom commented 8 years ago

I didn't trap distance in the end, just single direction with no hidden exits.

scrom commented 8 years ago

but it works!

scrom commented 8 years ago

line of sight may occasionally also work for locations if displayname matches what the user entered. (locations don't have syns otherwise this would be more reliable)

scrom commented 8 years ago

done