def new_game(self): print "starting new game" #Do all the stuff involved with starting a cult here. print '"In a cult, there is someone at the top who knows the whole thing is a scam.' print 'In a religion, that person is dead. - Anonymous"' print print "You have had a revelation." print "Maybe it was contact with the Space Brothers." print "Maybe it was a message from Jesus." print "Perhaps it was a spontaneous upwelling from the Collective Subconscious." print "Maybe it was that there's a lot of gullible people out there with money." print "Whatever it was, you have decided to start your own cult!" print "So, tell us a bit about yourself." leader = Person() leader.name = '' while len(leader.name) == 0: print "What is your name?" leader.name = raw_input() b_year = self.interface.numberPrompt("What year were you born in?", 1900, date.today().year - 15) b_month = self.interface.numberPrompt("What month were you born in?", 1, 12) leader.birthday = date(b_year, b_month, 1) leader.rank = Person.RANK_LEADER leader.skills['recruit'] = 25 #You're better at it than average. leader.skills['doctrine'] = 25 #You wrote it. cult = Cult() cult.membership = [leader] cult.fame = 0 cult.popularity = 0 cult.wealth = 1000 cult.doctrine = 10 cult.weirdness = 0 cult.leader = leader doctrine_choices = [] for d in doctrine_list: doctrine_choices.append((d, d.name)) doctrine_choices.append((False, "Nothing but my own delusions")) d_choice = self.interface.numbermenu( "What sort of cult are you starting, %s?" % leader.name, doctrine_choices, 0) if (d_choice): cult.doctrines.append(d_choice) print "What is the name of your cult?" cult.name = '' while len(cult.name) == 0: cult.name = raw_input() f_choice = self.interface.numbermenu( "Do you actually believe this stuff?", ((10, "No. It's just a scam."), (40, "I... think so?"), (70, "Yes. This is THE TRUTH!"))) leader.fanaticism = f_choice if f_choice == 10: print "How cynical of you." elif f_choice == 40: print "How openminded of you." else: print "How certain of you." leader.joined_date = date.today().replace(day=1) cult.founding_date = date.today().replace(day=1) #get things started. cult.current_date = date.today().replace(day=1) self.cult = cult self.main_loop() pass
cult.popularity = -20 cult.term = 'Church' elif reply == '7': cult.base = 'Self-Help' cult.term = 'Society' elif reply == '8': cult.base = 'UFO' cult.term = 'Society' elif reply == '9': cult.base = 'Original' cult.term = 'Cult' cult.weirdness = 20 cult.doctrine = 0 #starting from scratch, here print "What is the name of your %s %s?" % (cult.base, cult.term) cult.name = '' while len(cult.name) == 0: cult.name = raw_input() reply = 0 while not reply in ('1','2','3'): print "Do you actually believe this stuff?" print "1: No. It's just a scam." print "2: I... think so?" print "3: Yes. This is THE TRUTH!" reply = raw_input() else: if reply == '1': print "How cynical of you." leader.fanaticism = 10 elif reply == '2':
cult.popularity = -20 cult.term = 'Church' elif reply == '7': cult.base = 'Self-Help' cult.term = 'Society' elif reply == '8': cult.base = 'UFO' cult.term = 'Society' elif reply == '9': cult.base = 'Original' cult.term = 'Cult' cult.weirdness = 20 cult.doctrine = 0 #starting from scratch, here print "What is the name of your %s %s?" % (cult.base, cult.term) cult.name = '' while len(cult.name) == 0: cult.name = raw_input() reply = 0 while not reply in ('1', '2', '3'): print "Do you actually believe this stuff?" print "1: No. It's just a scam." print "2: I... think so?" print "3: Yes. This is THE TRUTH!" reply = raw_input() else: if reply == '1': print "How cynical of you." leader.fanaticism = 10 elif reply == '2':
def new_game(self): print "starting new game" # Do all the stuff involved with starting a cult here. print '"In a cult, there is someone at the top who knows the whole thing is a scam.' print 'In a religion, that person is dead. - Anonymous"' print print "You have had a revelation." print "Maybe it was contact with the Space Brothers." print "Maybe it was a message from Jesus." print "Perhaps it was a spontaneous upwelling from the Collective Subconscious." print "Maybe it was that there's a lot of gullible people out there with money." print "Whatever it was, you have decided to start your own cult!" print "So, tell us a bit about yourself." leader = Person() leader.name = "" while len(leader.name) == 0: print "What is your name?" leader.name = raw_input() b_year = self.interface.numberPrompt("What year were you born in?", 1900, date.today().year - 15) b_month = self.interface.numberPrompt("What month were you born in?", 1, 12) leader.birthday = date(b_year, b_month, 1) leader.rank = Person.RANK_LEADER leader.skills["recruit"] = 25 # You're better at it than average. leader.skills["doctrine"] = 25 # You wrote it. cult = Cult() cult.membership = [leader] cult.fame = 0 cult.popularity = 0 cult.wealth = 1000 cult.doctrine = 10 cult.weirdness = 0 cult.leader = leader doctrine_choices = [] for d in doctrine_list: doctrine_choices.append((d, d.name)) doctrine_choices.append((False, "Nothing but my own delusions")) d_choice = self.interface.numbermenu( "What sort of cult are you starting, %s?" % leader.name, doctrine_choices, 0 ) if d_choice: cult.doctrines.append(d_choice) print "What is the name of your cult?" cult.name = "" while len(cult.name) == 0: cult.name = raw_input() f_choice = self.interface.numbermenu( "Do you actually believe this stuff?", ((10, "No. It's just a scam."), (40, "I... think so?"), (70, "Yes. This is THE TRUTH!")), ) leader.fanaticism = f_choice if f_choice == 10: print "How cynical of you." elif f_choice == 40: print "How openminded of you." else: print "How certain of you." leader.joined_date = date.today().replace(day=1) cult.founding_date = date.today().replace(day=1) # get things started. cult.current_date = date.today().replace(day=1) self.cult = cult self.main_loop() pass