|
| 13 Oct 2013 11:20 AM |
I've been working on this script for two days now and I finally finished it, I just cant figure out what's wrong with it though. It's written in Python.
import time global gold gold = 0
def start(): print "Hello and welcome!" name = raw_input("What's your name: ") print "welcome, "+name+"!" print "The objective of this game is to collect apples." print "After collecting the apples you sell them." choice = raw_input("Do you want to play?") if choice == "Y": begin() if choice == "N": print "Okay, bye." def begin (): global apples global print "Let's get started" if gold > 99: print "You've won the game!" play = raw_input("Do you want to paly again Y/N?") if play =="Y": begin() if play == "N": print "Well, congratz again!" pick = rav_input("Do you want to pick an apple Y/N?") if pick == "Y": time.sleep(1) print "You pick an apple." apples=apples+1 print "You currently have, ",apples," apples." beging() if pick == "N": sell = raw_input("Do you want to sell your apples Y/N?") if sell == "Y": global gold global apples print "You currently have, ",apples," apples." print "You've sold your apples." gold=apples+10 apples=0 print "Your gold is now: ",gold begin()
start()
|
|
|
| Report Abuse |
|
|
| |
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 13 Oct 2013 11:25 AM |
| This is scripting help for Roblox and not other scripting languages. |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2013 11:27 AM |
| @Spy; I know that, I was just wondering if anyone could help. |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2013 11:30 AM |
"print "You currently have, ",apples," apples." beging()"
"beging()"
|
|
|
| Report Abuse |
|
|
TECH1TRON
|
  |
| Joined: 18 Mar 2012 |
| Total Posts: 809 |
|
| |
|
Sieora
|
  |
| Joined: 12 Aug 2013 |
| Total Posts: 298 |
|
|
| 19 Oct 2013 09:51 PM |
I noticed what Tech1tron said.
◙ℐᾔᾔ◎√α⊥℮◙ |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 02:08 PM |
| Your indention is completely r@ped |
|
|
| Report Abuse |
|
|