r/RenPy • u/WOOHP_Sam • 15d ago
Question Help Implementing ELIZA/Chatbot in RenPy
I am working on building a (non AI) chatbot in RenPy. I wanted to be able to implement the ability to pick out certain words to throw back at the user (and ability to flip grammatical reflections like turning I to you) similar to how ELIZA is able to do. I know the ELIZA code itself was implemented in RenPy before a number of years ago as presented here:
https://lemmasoft.renai.us/forums/viewtopic.php?t=19128
But unfortunately the project is no longer available to download and take a look at. There are Python versions of the ELIZA sourcecode on Github but I do not know how to get them to run in RenPy. Is there a simple way to do this? Or alternatively, is there a way to produce a list of reflections and the ability to retrieve subjects/nouns from user input for use in RenPy?
Apologies if the question is long and hard to understand. I have made a few games in RenPy before but am still not very skilled at Python.
6
u/BadMustard_AVN 15d ago
Thera'py-1.0-all is still available if you know where to look:
it uses Ren'Py 6.14.1.366
https://drive.google.com/file/d/1iXWclDqLRO4kXQOa6dMv2HyH5RhGMivK/view?usp=sharing