Hi, I'm trying to implement text through outside files such as .txt or .xml. However I can't find any helpful documentation except how to open and close the file.
For example, I'd like to dampen the usage of hard coded lines in Ren'py and instead use a .txt file. So I'd like to open the file tell it to present the line (mom "How was your day?") which could be the 5th line or something like that.
I might be dumb and just can't find the right documentation but that's why I'm here I guess, hehe.
I appreciate any help I can get!
XML/txt implementation and usage in Ren'py
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Re: XML/txt implementation and usage in Ren'py
Google python and xml for the xml module. How to open files is in renpy docs.
Re: XML/txt implementation and usage in Ren'py
Thanks, I got it working now!
Who is online
Users browsing this forum: Bing [Bot], Hojoo
