t; elif answer == "run away" or "Run Away" or "RUN AWAY":
> print "He shot you... hee hee hee"
> print "When the input comes up again, type a differet answer"
> else:
> print "You didn't type Show or run
Hi Tutor,
I'm getting this error
Traceback (most recent call last): File "C:\Users\Jack\Desktop\python\g.py",
line 45, in path_1pt1()
NameError: name 'path_1pt1' is not defined
With the attached file
Please get back to me
Thank you
g.py
Description: Binary data
___
I do not understand my error (it says something about an out-of-function return
on line 179)
my code is at the link
http://www.mediafire.com/download.php?4ga0weu4ifc6s1u___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription optio
Maybe tomorrow I can just email you the code
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Here is the code, my error is below the code in itallics
#This is not free source
#Don't cheat by looking at this
#If you do you ruin the game
#A Towel Production
# APOC
#---
global ammo1
global ammo2
global ammo3
global health
global tech_parts
global exp
global radio_parts
ammo1=10
ammo2=0
I get this error
Traceback (most recent call last):
File "C:\Users\Jack\Desktop\python\g.py", line 56, in
path1pt1()
NameError: name 'path1pt1' is not defined
With this amount of code:
def simpstart():
global ammo1
global ammo2
global ammo3
global health
global tech_parts
glo
So I have gotten responses to my previous email sent 3 days ago, all saying
define path1pt1() before simpstart, but I do not know how. Help?___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mail
How would I go from one def statement to another? I am developing a text based
rpg.
Sent from my iPod
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
I have a slight problem. My program will not open. On top of that, I have
written similar programs all to no avail. I am creating a text adventure and
want there to be different rooms. Here is my code:
def menu():
print "Welcome to Tomb Explorer!"
print "A game of Exploration from Bull
Is there a way to make buttons a little like a raw_input in the context when
the user presses the button, the program performs a function?___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailma
I have written a setup.py file to compile a script to a standalone exe. My
error is here:
Traceback (most recent call last):
File "C:\Users\Jack\Desktop\compiler\setup.py", line 4, in
setup(console=["te.py"])
File "C:\Python27\lib\distutils\core.py", line 140, in setup
raise SystemExi
1. I compiled a script withpy2exe.I have the .exe ,but when I run
it,the window just closes itself.Inthe cmd window fromwhich I compiled the
script from,Itsays some dlls are needed.Whatdoes this this have to
dowithit,andmore importantly,isthere any solution?__
I am using PyInstaller now for building, but I still have a problem! My error
is as follows:
Traceback (most recent call last):
File C:/Users/Jack/Desktop/pyinstaller-pyinstaller-61571d6/PyInstaller/Build.py
from PyInstaller.loader import pyi_archive, pyi_carchive
ImportError: cannot import name
I compiled a program in python, but the second I open it, there is a flash of
the error, but then the cmd window closes.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Is there a way to keep a global throughout multiple def statements?
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
I am trying to use random.choice for a text based game. I am using windows 7,
64-bit python. Here is my code:
def lvl2():
print "COMMANDER: Who should you train with?"
trn=random.choice(1,2)
if trn==1:
lvl2_1()
print "Squad One!"
elif trn==2:
lvl2_2()
In a combat system, how would I have a certain raw_input repeat until the enemy
is dead?
Thanks a ton,
Jack___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
I have a small problem with the while function.It prints an odd variable that
has nothing to do with the function. It prints "Squad One!". Here is my code
for the 3 def's that have something to do with the while function.
def tcombat():
c1am=10
c2am=10
enam="Qasi"
ehealth=15
In my game, I am trying to make it so when the enemy's health equals 0, the
player advances. I used a while statement and a true or false variable. When
the enemy health is less than or equal to 0, the program exits the while
statement. It does not work. It keeps going. How could I fix this?
___
In my concept, when the player buys a boost, their karma (a global) is
multiplied by 25% when added to. How would I do this?
Thanks.___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/lis
The player has an option to upgrade or not. I know the code is correct, but it
doesn't send the player to the shop. Here is the code:
def lvl3_2():
print "You beat level 3!"
print "Congratulations!"
print "You have liberated the Bristol Channel!"
print "[Y] to go to the shop or [N
How would I exit a while statement. The while is to keep the player in combat
with an enemy until said enemy is dead. I tried using an if, but it just
doesn't work.
Jack___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription optio
When the player of my game fire his/her cannon, it is supposed to get rid of
some of the enemy's health. It does not. I have no clue what the error is, so I
need help. Here is the Python Shell output:
>>fire cannon 1
Fired!
Enemy health= 75
They fired at you!
Your health is now 55
>>fire cannon
I am coding a game and I want the player to be able to quit the game and
immediately take off right from where they started from.
--Jack___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman
Sent from my iPhone
Begin forwarded message:
> From: Jack Little
> Date: June 6, 2014 at 6:41:04 PDT
> To: "tutor-requ...@python.org"
> Subject: SHA256 P2P Chat in python
> Reply-To: Jack Little
>
> Hi Mailing List.
>
> I was wondering if it is possibl
25 matches
Mail list logo