Search found 7 matches

by nanopicobanana
Sat Dec 16, 2017 7:24 pm
Forum: Creator Discussion
Topic: SOLVED - Need Help with Name Filter Coding
Replies: 7
Views: 3089

Re: Need Help with Name Filter Coding

That's just a small syntax error. Given that you said you "fiddled" a bit with the code, I'm not sure whether it was something you changed or something in the original code I gave you. Either way, it was easy enough to take our two chunks of code and combine them. Perhaps a more Ren'Py sa...
by nanopicobanana
Fri Dec 15, 2017 6:32 pm
Forum: Creator Discussion
Topic: SOLVED - Need Help with Name Filter Coding
Replies: 7
Views: 3089

Re: Need Help with Name Filter Coding

Here's some Python code to simplify the whole process down, assuming you only want to go to a single label no matter the word: # Get list of bad words from a text file, each word on a separate line $ badWordsList = [line.rstrip('\n') for line in open("badwords.txt", "r")] # Chec...
by nanopicobanana
Thu Dec 14, 2017 6:26 pm
Forum: Creator Discussion
Topic: SOLVED - Need Help with Name Filter Coding
Replies: 7
Views: 3089

Re: Need Help with Name Filter Coding

I've written a tutorial about this. :) I've also pulled out some of the code I used for one of my games, The Heart of Tales: Thank you for your swift reply! I'm actually using something very similar to this sort of name check right now (checking for specific names) but what I'd like to do is figure...
by nanopicobanana
Wed Dec 13, 2017 6:17 pm
Forum: Creator Discussion
Topic: SOLVED - Need Help with Name Filter Coding
Replies: 7
Views: 3089

SOLVED - Need Help with Name Filter Coding

Problem Solved! Thank you to everyone who helped out! This code (provided you have a list of words you want filtered) checks a user's inputted name/word for any rude words that are in a .txt list. I hope this is able to help others as well in the future. ^_^ BTW, the .txt file of rude words (called...
by nanopicobanana
Sun Aug 21, 2016 7:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Wanting to use persistent data to remember... (Resolved!)
Replies: 4
Views: 1750

Re: Wanting to use persistent data to remember a user's name

simple example with 'persistent.true/false flags': label start: if persistent.PName is None: $ PName = renpy.input("What is your name, stranger?") or "Anonimus" $ persistent.PName = PName "Welcome, [PName]." else: $ PName = persistent.PName "Welcome back, [PName]!...
by nanopicobanana
Sat Aug 20, 2016 7:42 am
Forum: Ren'Py Questions and Announcements
Topic: Wanting to use persistent data to remember... (Resolved!)
Replies: 4
Views: 1750

Re: Wanting to use persistent data to remember a user's name

label start: if persistent.PName is None: $ PName = renpy.input("What is your name, stranger?") or "Anonimus" $ persistent.PName = PName "Welcome, [PName]." else: $ PName = persistent.PName "Welcome back, [PName]!" https://www.renpy.org/doc/html/persistent.ht...
by nanopicobanana
Fri Aug 19, 2016 1:27 am
Forum: Ren'Py Questions and Announcements
Topic: Wanting to use persistent data to remember... (Resolved!)
Replies: 4
Views: 1750

Wanting to use persistent data to remember... (Resolved!)

First off, I'm not super familiar with Python or scripting in Ren'Py, so talk to me like I'm a five year old if you decide to explain something to me. Well... maybe more like an eight year old. x) The important question: What I'd like to do is have a game that "remembers" a player's name. ...