Skip to content

Commit 3a9d315

Browse files
Merge branch 'ufosc:main' into main
2 parents c44fa80 + 37efa53 commit 3a9d315

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

BytesOfLove/game/script.rpy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,15 @@ label start:
239239
default check = True
240240
while check:
241241
$ mc = renpy.input("Your name: ", length=12).strip()
242-
if mc.isalpha() and " " not in mc:
242+
$ characterList = ["Python", "C++", "Java", "JavaScript", "HTML", "CSS", "Rust", "Perl", "Fish", "Ruby", "Matlab"]
243+
244+
if mc.isalpha() and " " not in mc and mc not in characterList:
243245
$ mc = mc.capitalize()
244246
$ check = False
245247
elif not mc:
246248
"Please enter a name"
249+
elif mc in characterList:
250+
"Please enter a different name."
247251
else:
248252
"Please enter a single word name using only alphabetic characters."
249253

0 commit comments

Comments
 (0)