Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualK1NNY

Posted 13 October 2012 - 11:24 AM

This worked perfectly until i tried implementing a new part of the game. I need it to be able to control how many times it can access "elect_new". I tried this:

[source lang="python"]help_credits = 5while True: while game: if help_credits >= 1: help_events = True elif help_credits == 0: help_events = False[/source]

[source lang="python"] while help_events: if p < 15 and y == 1: game = False elect_new = True elif p < 15 and y == 2: game = False lower_int = True elif p < 15 and y == 3: game = False cut_taxes = True[/source]

Of course i cut out most of the code only leaving in the new parts i added. Using this, the program just hangs and becomes unresponsive. (sorry for it being in two parts again, look at it like one piece of code because the code segment insert thing isn't working for me at all)

CORRECTION: The program doesn't go to the "elect_new" loop at all now using this.

#3K1NNY

Posted 13 October 2012 - 11:23 AM

This worked perfectly until i tried implementing a new part of the game. I need it to be able to control how many times it can access "elect_new". I tried this:

[source lang="python"]help_credits = 5while True: while game: if help_credits >= 1: help_events = True elif help_credits == 0: help_events = False[/source]

[source lang="python"] while help_events: if p < 15 and y == 1: game = False elect_new = True elif p < 15 and y == 2: game = False lower_int = True elif p < 15 and y == 3: game = False cut_taxes = True[/source]

Of course i cut out most of the code only leaving in the new parts i added. Using this, the program just hangs and becomes unresponsive. (sorry for it being in two parts again, look at it like one piece of code because the code segment insert thing isn't working for me at all)

#2K1NNY

Posted 13 October 2012 - 11:03 AM

This worked perfectly until i tried implementing a new part of the game. I need it to be able to control how many times it can access "elect_new". I tried this:

[source lang="python"]help_credits = 5while True: while game: if help_credits >= 1: help_events = True elif help_credits == 0: help_events = False[/source]

[source lang="python"] while help_events: if p <= 15 and y == 1: game = False elect_new = True elif p <= 15 and y == 2: game = False lower_int = True elif p <= 15 and y == 3: game = False cut_taxes = True[/source]

Of course i cut out most of the code only leaving in the new parts i added. Using this, the program just hangs and becomes unresponsive. (sorry for it being in two parts again, look at it like one piece of code because the code segment insert thing isn't working for me at all)

#1K1NNY

Posted 13 October 2012 - 11:01 AM

This worked perfectly until i tried implementing a new part of the game. I need it to be able to control how many times it can access "elect_new". I tried this:

[source lang="python"]help_credits = 5while True: while game: if help_credits >= 1: help_events = True elif help_credits == 0: help_events = False while help_events: if p <= 15 and y == 1: game = False elect_new = True elif p <= 15 and y == 2: game = False lower_int = True elif p <= 15 and y == 3: game = False cut_taxes = True[/source]

Of course i cut out most of the code only leaving in the new parts i added. Using this, the program just hangs and becomes unresponsive

PARTNERS