3 Replies - 1215 Views - Last Post: 08 April 2013 - 10:18 AM

#1 thoudini  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 06-April 13

$10 to anyone who can implement a save/load in a text-based game.

Posted 06 April 2013 - 07:50 AM

So I'm programming a text-base ZOMBIE GAME, something I've always wanted to do, and I'm doing it using Python.

Download the .py file here you can play it, I made a cool story, alternatively click on the Pastebin link to just view the code:

http://www2.zshares.net/zn83stxoureb

http://pastebin.com/FSPpFw0D

Basically as you might see when you play it, all you have to do is press A, B or C depending on which option given to you is the best thing to do according to you.

Now, to fully finish it, I need to implement a Save/Load feature.

At points in the game where the user has picked a choice that progresses him in the story, I want to do:

>#save function goes here
>print ('Game saved') #game carries on

Then, at the beginning of the game:

>input ('''Type 'load' to load your last-played game or press enter to start a new game''')

I've installed Pygame, I've looked at using that 'shelve' idea but I'm just too much of a newbie/don't have the mental capacity to understand it.


Please help me implement a save-game feature in this code.

In fact, I'll give $10 to someone who tells me how or edits the code for me to put in this feature.

Thanks in advance, I'm here all day and night to reply GMT time.

Is This A Good Question/Topic? 0
  • +

Replies To: $10 to anyone who can implement a save/load in a text-based game.

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8946
  • View blog
  • Posts: 33,544
  • Joined: 12-June 08

Re: $10 to anyone who can implement a save/load in a text-based game.

Posted 06 April 2013 - 08:00 AM

Moving to 'post a job'.
Was This Post Helpful? 0
  • +
  • -

#3 thoudini  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 06-April 13

Re: $10 to anyone who can implement a save/load in a text-based game.

Posted 06 April 2013 - 08:42 AM

View Postmodi123_1, on 06 April 2013 - 08:00 AM, said:

Moving to 'post a job'.


Thanks :smartass:
Was This Post Helpful? 0
  • +
  • -

#4 atraub  Icon User is offline

  • Pythoneer
  • member icon

Reputation: 759
  • View blog
  • Posts: 2,010
  • Joined: 23-December 08

Re: $10 to anyone who can implement a save/load in a text-based game.

Posted 08 April 2013 - 10:18 AM

10 whole dollars? Golly gee, you're generous mister.
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1