Skip to content
Sign upLog in
← Back to Community

End

Profile icon
ia13ru

This is my first repl. It is an RPG, and has no tkinter graphics. It has 24 levels, a boss and an easter egg. Thanks for playing! :-)
Check out my second repl:
https://repl.it/talk/share/Process-of-elimination/91596
And my first c++ game:
https://repl.it/talk/share/My-first-c-Repl/111328
(They're not as good)

Voters
Profile icon
ia13ru
Profile icon
LuckyOreos
Profile icon
sagarthedark
Profile icon
YunjeongKoo
Profile icon
M07
Profile icon
codingninja31
Profile icon
Noahloader12
Profile icon
Yeti8872
Profile icon
GulliverM
Profile icon
MahdiKouroughli
Comments
hotnewtop
Profile icon
GulliverM

also, you can make your own print function, one that types, just copy/paste this onto the top of your code:

def print(*data, sep = None, end = None, file = __import__("sys").stdout, slow = True): for i in data: for x in i: file.write(x) if slow: __import__("time").sleep(__import__("numpy").random.randint(1000000, 3000000) / 10000000) file.flush() if sep != None : print(sep) if end != None : print(end)

also, a colored function:

colored = lambda r, g, b, text : f"\033[38;2;{r};{g};{b}m{text}\033[m"
Profile icon
ia13ru

@Stan085
Thanks for all your help :-)
You deserve more of the arrow thingy(Don't know it's name)

Profile icon
GulliverM

@ia13ru

  • it's an upvote, and no prob
  • next year, do you want to do a collab?
Profile icon
ia13ru

@Stan085

  1. Thanks for telling me what an upvote is :-)
  2. Sure! :-)
  3. :-) For everything you have done
    You're the best
Profile icon
GulliverM

@ia13ru

if you're wondering why I said next year, it's because I have a class at the coder school, and right now we have a contest, also:

I am not the best

Profile icon
ia13ru

@Stan085
k
:-)

Profile icon
figglediggle

Try adding empty prints to break up the one large block of text

Profile icon
ia13ru

@DanielGreynold1
I am not sure what you are talking about. Can you please explain what that is?

Profile icon
bobjeffco

@ia13ru
So, what I think
@DanielGreynold1
means is that instead of this:

# big text block print("Hello") print("World!") # no breathing room!

Do this:

# space in between print("Hello") print("") print("World!") # plenty of space!
Profile icon
ia13ru

@bobjeffco
Thanks! :-)
I also want to thank
@DanielGreynold1
for the original sugestion!

Profile icon
figglediggle

@ia13ru
Thanks!

Profile icon
GulliverM

@bobjeffco
or:

print("Hello\n\nworld!") # '\n' is a newline character
Profile icon
GulliverM

you could clean up the dict object that is printed at the start, like so:

# line 242: print(str(roles).replace(":", " is").replace("'", "").replace(", ", "\n").replace("{", "").replace("}", "))

also, for the roles, you can make it simpler:

while True: for c, i in enumerate([*roles]): if role.upper() == i.upper(): story = c break print("not an option, pick one i have shown you")
Profile icon
ia13ru

@Stan085
Thanks, I'll try to modify it :-)

Profile icon
ia13ru

@Stan085
I tried the second one, and there seems to be a problem with it

Profile icon
GulliverM

@ia13ru
if it was an IndentationError, select it, press tab, and press SHIFT-tab, otherwise, could you give me the error type?

Profile icon
ia13ru

@Stan085
It's not really a bug, but here is the problem:
I modified the code to this:

while True: role = str(input("What role do you want to play in the story\n")) for c, i in enumerate([*roles]): if role.upper() == i.upper(): story = c break print("Not an option, pick one I have shown you")

And it doesn't accept the right answers.
How can I modify it?

Profile icon
GulliverM

@ia13ru
2 things:

  1. you don't need str(input()), just input()
  2. yeah, I forgot the input() part
  3. I didn't test it, so there could be any logic error
Profile icon
ia13ru

@Stan085
It might be best to test it (I modified the code and it still doesn't work)

Profile icon
GulliverM

@ia13ru
yeah, I considered that, but I understand Python pretty well (not trying to brag) and I have done other things like it before ;)

Profile icon
ia13ru

@Stan085
K
Thanks anyway :-)

Profile icon
Zakiroboy

it breaks if you just press enter over and over again

Profile icon
ia13ru

@Zakiroboy
Yeah, some questions you have to respond with an integer
sorry

Profile icon
ia13ru

Thanks for all the attention! I appreciate all of you :-)

Profile icon
BillNyeScience

it says line 336 is invalid syntax

Profile icon
ia13ru

@BiIINye
I was modifying the code. Sorry.

Profile icon
JBloves27

Pretty cool bro! Nice first repl! I love the ASCII as well!
Suggestion: add the os module to be able to clear console. Do os.system('clear') to clear it. You can use this any amount of time.
I hope this helps!

Profile icon
ia13ru

@JBYT27
Thanks a lot! :-)

Profile icon
JBloves27

np!

@ia13ru

Profile icon
ia13ru

@JBYT27
I used python in idle first and html in notepad

Profile icon
JBloves27

Ah, cool!

@ia13ru

Profile icon
ia13ru

Thanks

@JBYT27
:-)

Profile icon
JBloves27

np! ;)

@ia13ru

Profile icon
GulliverM

death roll should use all magic power, afer gettimg 100 MP, you pretty much can win anything

Profile icon
ia13ru

@Stan085
Maybe
but still, 100MP isn't enough to kill all enemies in a 3-enemy battle and there is only a 1/2 chance of it being successful so It might not be enough

Profile icon
GulliverM

@ia13ru
yeah but you get more until you're at 350 MP and you have over 300 HP so you can get it down to 1 enemy and then spam Meele

Profile icon
ia13ru

@Stan085
I'll make the chance 1/4
:-)
and take 50 * exp of the person's HP

Profile icon
GulliverM

@ia13ru
ok :)

Profile icon
GulliverM

also, in case you need it, a simple module i made, might be able to help??

Profile icon
GulliverM

this IS really good for a first repl~~, more than I could do for my first one~~

Profile icon
ia13ru

@Stan085
I used IDLE first
You're way better than me XD

Profile icon
GulliverM

@ia13ru
NOW I am

Profile icon
ia13ru

@Stan085
XD

Profile icon
GulliverM

@ia13ru
but I wasn't before I practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced and practiced etc.

Profile icon
ia13ru

@Stan085
You should code that comment in python XD

Profile icon
GulliverM

@ia13ru
ok:

print("@ia13ru but I wasn't before I", end=" ") while True: print("practiced and", end=" ")
Profile icon
ia13ru

Thanks for twenty upvotes
:-)

Profile icon
ia13ru

check out my latest repl!
https://repl.it/talk/share/Process-of-elimination/91596
Thanks :-)

Profile icon
cdl7

You spelled "unnamed" incorrectly in line 244 so if you try to select unnamed it forces you to be a magicians assistant

Profile icon
ia13ru

Sorry

@cdl7
and thanks :-)

Profile icon
techpixel

Cool! I suggest using curses, but nicely done!

Profile icon
ia13ru

Thanks

@HarperframeInc
:-)
Though you should explain what you mean

Profile icon
techpixel

@ia13ru
Curses is a TUI library (terminal ui, like gui but for terminals). It would be cool if it was interactive, and curses is the best way to do so.

Profile icon
TheMaster7661

found an error

Screenshot 2020-12-18 at 3.29.29 PM

Profile icon
ia13ru

@NoahJospeh
it is because you are ment to enter either 1,2 or 3

Profile icon
ia13ru

@ia13ru
sorry

Profile icon
GulliverM

@ia13ru
you can also do:

while True: try: int(input("Moves:\n1) Melee\n2) Special\n3) Exercise")) break except: ...
Profile icon
ia13ru

@Stan085
I find it confusing. Can you explain it? Thanks

Profile icon
GulliverM