How do I run another file in my repl?
So I have my main.py as well as my combat.py
How do I make combat.py run?
I tried using import but that only activates once and if you try to import again it doesnt run the code in said file. Any help?
If you want
combat.py to run instead of
.replit. If you want both to run,
import os then
Ok, but how do I activate the .replit in the middle of the code?
It goes something like this for me:
if (you run into an enemy):
I tried putting:
into the place where I need it to be, but nothing happens