generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Python Help..

Previous Thread :: Next Thread 
KrakenAttack is not online. KrakenAttack
Joined: 16 Oct 2010
Total Posts: 1465
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
KrakenAttack is not online. KrakenAttack
Joined: 16 Oct 2010
Total Posts: 1465
13 Oct 2013 11:23 AM
Bump.
Report Abuse
spynaz is online. 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
KrakenAttack is not online. KrakenAttack
Joined: 16 Oct 2010
Total Posts: 1465
13 Oct 2013 11:27 AM
@Spy; I know that, I was just wondering if anyone could help.
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
13 Oct 2013 11:30 AM
"print "You currently have, ",apples," apples."
beging()"


"beging()"


Report Abuse
TECH1TRON is not online. TECH1TRON
Joined: 18 Mar 2012
Total Posts: 809
19 Oct 2013 09:44 PM
"rav_input"

...
Report Abuse
Sieora is not online. Sieora
Joined: 12 Aug 2013
Total Posts: 298
19 Oct 2013 09:51 PM
I noticed what Tech1tron said.

◙ℐᾔᾔ◎√α⊥℮◙
Report Abuse
georgey123semjonov is not online. georgey123semjonov
Joined: 24 Oct 2012
Total Posts: 13
17 Feb 2014 02:08 PM
Your indention is completely r@ped
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image