This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
In my game, I don't want the player to be able to pick a name already in use by another character. But when I use this code:
python:
    playername = renpy.input("Choose your name or press enter to use the pre-selected name of 'Blake'.", exclude="Lily Joan Nikki Terra")
    playername = playername.strip()
    if not playername:
      playername = "Blake"
I can't type the starting letter of any of the names. I just want specific names off the table. So I don't want the player to be able to call their character "Lily" or "Joan" or "Nikki" or "Terra". But I do want them to be able to pick the name "Lucy" or "Jolene" or "Noah" or "Thea".
How do I go about banning very certain names while allowing others of the same starting letter? Can I do that? Or do I need more lines of code in order to be able to execute this properly?
Subreddit
Post Details
- Posted
- 1 month ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/RenPy/comme...