A good starting point for that would be http://www-cs-students.stanford.edu/~amitp/gameprog.html#adv - or maybe, if you're interested in the prose more than the scaffolding, https://www.ifarchive.org/if-archive/books/IFTheoryBook.pdf
There's also the recently published "50 Years of Text Games" (https://if50.textories.com/)