The script should be pretty self-explanatory. I tried to use clear function names. Religion function now returns arrays with the text to read. I iterate through that. Removing choices was a bit tricky, but the final solution is easy to understand.
It should be trivial to apple this system on other NPCs (It really helps the user-experience). You can copy paste my stuff :) If you have questions, please ask.
The script should be pretty self-explanatory. I tried to use clear function names. Religion function now returns arrays with the text to read. I iterate through that. Removing choices was a bit tricky, but the final solution is easy to understand.
It should be trivial to apple this system on other NPCs (It really helps the user-experience). You can copy paste my stuff :) If you have questions, please ask.
P.S. Also added an entry to .gitignore