Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

5
Custom Player Names
Post Flair (click to view more posts with a particular flair)
Post Body

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?

Author
Account Strength
70%
Account Age
2 years
Verified Email
Yes
Verified Flair
No
Total Karma
704
Link Karma
202
Comment Karma
502
Profile updated: 6 days ago
Posts updated: 2 weeks ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 month ago