Hacker News new | ask | show | jobs
by dhx 21 days ago
Also have a look at Inform 7[1] (domain specific language for interactive fiction), specifically the "Stone" example section[2] which explains edible food and the effects different foods may have on the adventurer.

It's similar concept to OPM with some modelling basics already built on top for player movement throughout a world, player interaction with objects (looking at, lifting, moving), and many other primitives needed to write interactive fiction. And relevant to this thread, Inform 7 of course has modelling basics for a player eating food, drinking potions, etc.

[1] https://en.wikipedia.org/wiki/Inform#Inform_7_programming_la...

[2] https://ganelson.github.io/inform-website/book/RB_9_1.html

1 comments

Thanks! I know Inform. Haven't used it but I know of it and I think I've even played a few games written with some version of it. Adventure games don't usually do what I had in mind but maybe it's possible to do just not something very relevant to the genre?