Python Text-Based Rpg Tutorial Part 4 - Finishing the Combat System

preview_player
Показать описание
Thanks for watching don't forget to rate, comment, and subscribe! Also if you have any questions post them in the comments below and I'll try to get back to you as quick as I can.

Рекомендации по теме
Комментарии
Автор

bro your simplicity in the video and your programming let me understand python so much more tysm. No glaze W series

HenryJang-rg
Автор

Just wanted to say:Thank you so much! I never could get into coding even after trying thousands of tutorials, but I stumbled across this one, and it finally clicked with me! I was able to do stuff that I wanted to do that was not featured in the videos so far! Please keep up the good work!

anthonyundead
Автор

Pretty nice for beginners to start. Some things could be better, but one thing that I really need to add. When using the randint(enemy.attack / 2, enemy.attack), people might put goblin/zombie or whatever enemy, an attack of 5. randint wont take floating so they will need to put some self negate attack like enemy.attack - enemy.attack or something like that, or they need to use random.uniform. Again, nice videos on the subject, keep it rolling.

valentinrafael
Автор

This is such a good tutorial! Thank you so much. This has been helping me a lot. For some reason tho my win() function just stopped working. No errors, just literally refuses acknowledge win() is even there lol which is weird cus it was working for me then all of a sudden it stopped

michaelhaddad
Автор

After winning or losing, does anyone get stuck on the start1() where only the number 1 continue the programme?

gilbimak
Автор

for some reason all the stuff that I put in else (else start1) doesn't work and it says syntax error.
please help

mcsalty
Автор

Hey dude! I really like your vids, so pls upload!

derulan
Автор

is there any way we could possibly add an exp. and level addition to this? that would be amazing, and after watching these videos i think we might just be able to do it.

sparticusthespartan
Автор

if Pattack = playerIG.attack / 2:
^
SyntaxError: invalid syntax

okaysoph
Автор

I get an error msg saying that zombie(or goblin) does not have an attack attribute

ShaunFra
Автор

File "Main.py", line 68
if option == "1":
^
IndentationError: unindent does not match any outer indentation level

i keep getting this, idk how to fix it

okaysoph
Автор

pls os.system('clear') isnt working.... it just doesnt clear the screen i need help plez

joelgiovinazzo
Автор

Hey, I wrote the code exactly as described in the video, but for some reason, when I run it and choose "attack", the enemy doesn't fight back. What can be the problem?

EleroyGreen
Автор

Hi Cryptero,

Thx for that video, it clarifies some stuff.
I'm working on a txt based game, but it's mainly based on rooms (kind of D&D), I'm currently stuck with "if" statements.

This is the link where I have the instructions on how to build it, but I just can't figure out the if statements (step 13 onwards):

Any suggestions?

rodolfoyoshii
Автор

For some reason I get this error:

Traceback (most recent call last):
File "./Text_rpg_python.py", line 178, in <module>
main()
File "./Text_rpg_python.py", line 40, in main
start()
File "./Text_rpg_python.py", line 54, in start
start1()
File "./Text_rpg_python.py", line 69, in start1
prefight()
File "./Text_rpg_python.py", line 86, in prefight
fight()
File "./Text_rpg_python.py", line 98, in fight
attack()
File "./Text_rpg_python.py", line 109, in attack
EAttack = random.randrange(enemy.attack/2, enemy.attack)
File "C:\Users\Danila\AppData\Local\Programs\Python\Python36\lib\random.py", line 184, in randrange
raise ValueError("non-integer arg 1 for randrange()")

What does it mean and how do I solve it?

DanilaBublik
visit shbcf.ru