Share your repls and programming experiences

← Back to all posts
The Endless RPG!!
xolyon (346)

Limitless fun! , every scenario NEW!

¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬

#Intro#
Yeah this took a long while to make, so give me the upvote for the effort.
¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬

here life is everything, it affects your every decision and in the end even your own survival
¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬

skip this part if you don't care how it was made or don't wanna help
#Help#
I made this by using libraries which each decision is based of, currently, they are small so some suggestions to the type of characters, verbs and places you would like to see would be nice.

Also, I was really lazy making this, instead of some functions to make the decisions I just copy and paste the same code and changed a bit of number round, this is really inefficient and if you wanna help make this RPG a better/proper experience just comment below.

Thanks!

Comments
hotnewtop
Highwayman (1483)

IS THAT A ONE LINE POST I SEE?!??!!!!11

SINFUL

Here have an upvote.

xolyon (346)

@Highwayman 700 lines of code , most of which is crap system for printing out the outcomes (I was very lazy ) it could be shortened to 300 , pretty good for this kind of RPG

Highwayman (1483)

@xolyon it was a joke lol. I actually think I might have seen a little of your outcome code and I thought it was pretty cool :3

xolyon (346)

@Highwayman IK lol , how did u see my code ? was there an error?
(i get those randomly and i don't know why when i was making it worked fine

Highwayman (1483)

@xolyon I looked at your code lol

xolyon (346)

@Highwayman Oh, you saw my horrible mess of ctrl c + v of repeated code, could've made a function but I was lazy

xolyon (346)

@Highwayman Also, do you think its too hard? what was your score?

NecroHacks (5)

@xolyon not bad actually, I kinda do the same except no other files. I have only one file in my programs. I'll make more later

[deleted]

@NecroHacks
I dunnoif you were talking about why he put his py file(they did that so their code would look clean lol) in another file but if you were talking about the external file save function thingy they made this https://repl.it/talk/learn/managing-external-files-in-python/33422

Highwayman (1483)

@xolyon tbh I was only able to play for like 2 secs and then I had hw. It was cool though :3

Bookie0 (6294)

You asked for an upvote, be satisfied my child, as I am your savior and an upvote thy shall get.
Edit: thanks for the 7 upvotes! XD
Lol ya welcome
Have a great day

Warhawk947 (524)

@Bookie0 You asked for an upvote, be satisfied my child, as I am your savior and an upvote thy shall get.

totally not reposting this meme

xolyon (346)

@Warhawk947 lol I swear I know you from somewhere, either you used to be really active on replit or I know you from some other platform hmmmmm

Bookie0 (6294)

@Warhawk947
Don’t worry no copyright you can have it, my child. Be satisfied and rest in piece with the knowledge thou can use this meme again

Bookie0 (6294)

@Warhawk947 lol
I am your FaThEr......

CodingCactus (4366)

how you make it print letter by letter?

xolyon (346)

@CodingCactus I made a function :

import time
import sys

def Speaking(text,ti):
	for char in text:
		sys.stdout.write(char)
		sys.stdout.flush()
		time.sleep(ti) 
CodingCactus (4366)

@xolyon do you mind if I copy this and use in one of my repls (i'll credit you)

xolyon (346)

@CodingCactus sure I dont mind , credit or not ti is time FYI - and that's the time it takes for it to print each character

CodingCactus (4366)

@xolyon it's alright I'm not going to use it anyway, it won't work with colours

xolyon (346)

@CodingCactus ??? it does -[example] https://repl.it/@xolyon/RPG-clean-draft ( unfinished RPG where I first used this code), I can't remember what is where but run it and look through the code, there's not a lot and it's not hard to find

CodingCactus (4366)

@xolyon hmm, when I'm not using colorama, it just prints the colour code thing then the text, not the text in that colour

xolyon (346)

@CodingCactus are you sure your doing it right? regardless it should be like this:

txtVarible = [color code] + text
Speaking(txtVarible,time)

if your still having issues invite me to some test project and ill figure it out

xolyon (346)

@CodingCactus To prove my point I just changed this project's code to print blue text at the start (run it) and I am using (ANSI colours (basically pure colour, what term colour uses and doesn't need to be imported , check utils.py in my project thingy)

xolyon (346)

@CodingCactus to prove my point

sorry for all the messages it's just such a useful piece of code

CodingCactus (4366)

@xolyon It add the word "None" to the end of the text on my multiplayer repl?

Roar123 (443)

@CodingCactus I've made a couple slowprint functions and I found out that you have to return '' to avoid the None

xolyon (346)

@CodingCactus @Roar123 oh you can? I thought you could only return once, still, that's only for inputs and prints the stuff its meant to replace

LOLInteresting (12)

I thought all ur code were spaghetti ones lulz. Turns out I am wrong.

xxxx (3)

Um I got an error that says:

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    import RPG
  File "/home/runner/qmdm1zc3jzi/RPG.py", line 677, in <module>
    mainMenu()
  File "/home/runner/qmdm1zc3jzi/RPG.py", line 124, in mainMenu
    Game()
  File "/home/runner/qmdm1zc3jzi/RPG.py", line 159, in Game
    RPG()
  File "/home/runner/qmdm1zc3jzi/RPG.py", line 437, in RPG
    print(f"{bruh_moment} , {outcome_got}")
UnboundLocalError: local variable 'bruh_moment' referenced before assignment
xolyon (346)

@xxxx I never got this error and it's really confusing because sometimes it's not an error and other times it is...

NecroHacks (5)

I WANTED TO DO THIS
i'm doing something like this right now
nice work btw

xolyon (346)

@NecroHacks we can collab if u want

AphixDev (213)

Eyyyyyy it's like BitLife xD

XanthusPettitt (10)

hi, @xolyon would you mind if I used your scroller text function?

DynamicSquid (4924)

"life is currency". I swear that was the theme for a game jam...

BrightBlackHole (1)

While the intro is printing you can type and simulate r/ihadastroke.

veicol (0)

##Bruh it errored out and there were lots of spelling errors

xolyon (346)

@veicol I didnt really expect this to become so big as twas a side project and it took me like 4 hours to make and

Bruh

xolyon (346)

@CodingCactus
A) thats still a while
B) still effort

203366314 (3)

Nice one. Great effort!!!

AphixDev (213)

Here's an upvote for the time :)

[deleted]

lol game

[deleted]

Hi, @xolyon I am @Zuhdi28 !
Do you remember me?
When we start to make our adventure game?
And i made one!
This

xolyon (346)

@Zuhdi28 yeah I do , I started this there but you didn't like it and got rid of it so I continued it here

tomkinguk (0)

Pretty cool. It gave me some ideas about how I could make my own game.

xxpertHacker (930)

Why do I die immediate after every choice I make!? This isn't fair.
Examples:

  • I encouraged "mum" while she sucked an elephant
  • I tried to rule the world

And I died with everything I did.

xolyon (346)

@StudentFires ...ummmm gues your just really really unlucky, the chance of death is around 5/100 each round so...

Is it to hard because i think it is.

xxpertHacker (930)

Err, change

save 100

to

save hundreds


end 1000

to

end thousands

Also, typing out play wasn't my first guess to start the game, maybe it should just be pressing "Enter" to start.

We should be able to type a name and skip the slowly typing startup paragraph too.

xolyon (346)

@StudentFires, thanks for the feedback it was a really rushed project, sorry