|
|
|
|
|
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 |
|