[Tutor] Help

2012-09-06 Thread Jack Little
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

[Tutor] Help please!

2012-12-14 Thread Jack Little
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 ___

[Tutor] Please help

2013-01-01 Thread Jack Little
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

Re: [Tutor] Please help

2013-01-01 Thread Jack Little
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

[Tutor] Here is code, no link for my previous question

2013-01-06 Thread Jack Little
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

[Tutor] Help

2013-02-01 Thread Jack Little
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

[Tutor] More Help

2013-02-03 Thread Jack Little
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

[Tutor] Second follow up

2013-02-26 Thread Jack Little
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

[Tutor] Unknown Cause of Error

2013-05-10 Thread Jack Little
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

[Tutor] Buttons

2013-05-27 Thread Jack Little
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

[Tutor] Py2Exe Problems

2013-06-05 Thread Jack Little
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

[Tutor] Compilation Error

2013-06-08 Thread Jack Little
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?__

[Tutor] PyInstaller

2013-06-09 Thread Jack Little
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

[Tutor] EXE Problem

2013-06-18 Thread Jack Little
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

[Tutor] Global Variables

2013-06-22 Thread Jack Little
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

[Tutor] random.choice() problem

2013-06-22 Thread Jack Little
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()      

[Tutor] Repeat Until Dead

2013-06-26 Thread Jack Little
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

[Tutor] While problem

2013-06-26 Thread Jack Little
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  

[Tutor] True to False and Other things!

2013-06-27 Thread Jack Little
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? ___

[Tutor] Boosts

2013-07-01 Thread Jack Little
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

[Tutor] Error in Game

2013-07-02 Thread Jack Little
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

[Tutor] Exiting a while

2013-07-05 Thread Jack Little
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

[Tutor] Combat Error

2013-07-07 Thread Jack Little
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

[Tutor] how to save variables after a user quits in python

2013-08-31 Thread Jack Little
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

[Tutor] SHA256 P2P Chat in python

2014-06-07 Thread Jack Little
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