takluyver / weatbag

Written by Everyone Altogether, The Big Adventure Game
MIT License
21 stars 11 forks source link

Allow for custom 'non-existant tile' messages #7

Closed ghost closed 11 years ago

ghost commented 11 years ago

Like Ben said about the cave in his pull request, the impassable undergrowth message won't always make sense. There should be a mechanism for changing it, but it should fall back on a default message.

EDIT: Sorry! The leave() function didn't stick in my memory after my first read through the wiki. This issue has already been taken care of.

takluyver commented 11 years ago

Well, it hasn't entirely been taken care of. I don't want every tile to have to record which directions have neighbouring tiles. So a general 'no way out in that direction' message would be useful.

ghost commented 11 years ago

So maybe it would be best if there were a way to set a default message from each tile module, that fit the context of the tile. The message would be printed if someone tried to go to a non-existent tile, but as soon as a new tile is added the message would no longer appear.

takluyver commented 11 years ago

Yep, that's what I'm thinking. It could be called something like no_path_message.

takluyver commented 11 years ago

And it's done.