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 » Roblox » Suggestions & Ideas
Home Search
 

Re: No.

Previous Thread :: Next Thread 
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
13 Feb 2013 04:27 AM
Ok, so this will take FOREVER to happen if it does, but I think that it would greatly improve the possible abilities of roblox games. I think that roblox should implement the programming language Python. Python is very easy to learn and use. It has a simpler syntax, and is much more understandable. I'm not thinking of replacing lua, but adding another language. For example there could be two different types of script objects: a LuaScript, or a PythonScript. Or instead of that at the beggining of each script, you could use a decorator to specify a language. For example, to tell roblox that the script is in Python, you could write @python in the beginning of the script. This would take a long time for roblox to do this because they would have to program roblox's API into python. If you think this should happen please support.
Report Abuse
forza3 is not online. forza3
Joined: 23 Jan 2009
Total Posts: 49
13 Feb 2013 05:26 AM
support
Report Abuse
bobrules11 is not online. bobrules11
Joined: 24 Jan 2012
Total Posts: 10650
13 Feb 2013 05:47 AM
[ Content Deleted ]
Report Abuse
bovine123 is not online. bovine123
Joined: 22 Jun 2010
Total Posts: 2690
13 Feb 2013 05:52 AM
Would be too inefficient and a waste of time.
Report Abuse
CyberEspionage is not online. CyberEspionage
Joined: 04 Feb 2013
Total Posts: 19
13 Feb 2013 07:13 AM
Support. I would really like to be able to use Python.
Report Abuse
CrazyKilla15 is not online. CrazyKilla15
Joined: 20 Nov 2009
Total Posts: 1379
13 Feb 2013 08:03 AM
no support
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
13 Feb 2013 12:29 PM
Ok, great guys, keep it up!
Report Abuse
harleyb09 is not online. harleyb09
Joined: 23 Oct 2010
Total Posts: 526
13 Feb 2013 12:32 PM
No support. ROBLOX would have to spend a lot of money to make this happen. Plus, it would get complicated having 2 scripting languages. 1 is enough.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Feb 2013 12:44 PM
If you think Lua is difficult to learn you shouldn't be programming - scripting at all.
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
13 Feb 2013 12:53 PM
Hey, I probs know more than you. I could learn lua, but I don't like it. I already know Java, Python, and some web languages, so I wouldn't talk if I were you.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Feb 2013 12:54 PM
Don't be silly. If you learned those languages you can easily learn Lua. And I am sure I know more than you do.
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
13 Feb 2013 12:59 PM
Python consle game I wrote 100% myself:

#Explorer
#items - sword, sheild, crossbow, protective orb
#imports
from cusmodule import *
import pickle
#memory file
def memory():
try:
#open memory file
f = open(user, "rb")
#variables
health = pickle.load(f)
gold = pickle.load(f)
gold += 0
level = pickle.load(f)
level += 0
trolls = pickle.load(f)
invin = pickle.load(f)
used = pickle.load(f)
swdam = pickle.load(f)
shdam = pickle.load(f)
crdam = pickle.load(f)
prdam = pickle.load(f)
trdam = pickle.load(f)
l = pickle.load(f)
gain = pickle.load(f)
#close memory file
f.close()
except IOError:
#open memory file
f = open(user, "wb")
#set variables
health = 100
gold = 0
level = 1
trolls = level
invin = []
used = []
swdam = 2
shdam = 2
crdam = 3
prdam = 1
trdam = 5
l = False
gain = 1
pickle.dump(health, f)
pickle.dump(gold, f)
pickle.dump(level, f)
pickle.dump(trolls, f)
pickle.dump(invin, f)
pickle.dump(used, f)
pickle.dump(swdam, f)
pickle.dump(shdam, f)
pickle.dump(crdam, f)
pickle.dump(prdam, f)
pickle.dump(trdam, f)
pickle.dump(l, f)
pickle.dump(gain, f)
#close memory file
f.close()
#returns vars to log()
return health, gold, level, trolls, invin, used, swdam, shdam, crdam, prdam, trdam, l, gain

#other variables
user = None
health = None
gold = None
level = None
trolls = None
invin = None
used = None
swdam = 2
shdam = 2
crdam = 3
prdam = 1
trdam = 5
l = None
gain = None
#posible items to obtain
items = ["sword", "sheild", "crossbow", "protective orb", "Troll Blaster"]
#codes to redeem items
codes = {"aw2tex": "Troll Blaster",
"elx254": "Mass Elixer",
"glon39": "2000 Gold",
"imu573": "Imune Health"}


#win function
def win():
print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
input("\n\n\n\n\n\n\n\n\n\nYou win the game! Press enter to exit.")
#closes game game
quit()
#check for win
def check_win():
global invin
global items
global have
if level == 15:
win()
#fight function
def fight():
global health
global gold
global trolls
global level
global invin
global gain
#main loop in fight function
while health != 0 and trolls != 0:
#checks for wepons and sets how many trolls player kills
if "Troll Blaster" in invin:
trolls -= trdam
kill = trdam
elif "crossbow" in invin:
trolls -= crdam
kill = crdam
elif "sword" in invin:
trolls -= swdam
kill = swdam
else:
trolls -= 1
kill = 1
#checks for defense and sets how much health you lose
#l = if your health is immune to damage
if l:
health -= 0
lose = 0
elif "protective orb" in invin:
health -= prdam
lose = prdam
elif "shield" in invin:
health -= shdam
lose = shdam
else:
health -= 5
lose = 5
#tells user how many trolls they kill
print("You kill", kill,"trolls\n\n")
#sets trolls to 0 if trolls less than 0
if trolls < 0:
trolls = 0
#tell user how many trolls remain
print(trolls,"trolls remain.\n\n")
#tells user how much heath they lose
print("You lose", lose,"health.\n\n")
#if health less than zero sets it to 0
if health < 0:
health = 0
print(health,"health remains.\n\n")
#invokes die() function
if health == 0:
die()
#breaks up loop so user has time to think
if trolls:
input("Press enter to kill more trolls.\n\n")
#calculates how much gold user gets
add = 10 * level
gold += add
#tells user level is over
print("Level", level," is over! You earn", add," gold!")
print("You now have", gold,"gold.\n")
#increaces level by 1
level += 1
#sets # of trolls for next level
if level > 20:
div = kill // 2
trolls = level + level * gain * gain + div
gain += 1
elif level != 1:
trolls = level * 2
else:
trolls = level
#invokes menu
menu()
#die function
def die():
input("You lose! Press enter to exit!")
f = open(user, "wb")
health = 100
gold = 0
level = 1
trolls = level
invin = []
used = []
swdam = 2
shdam = 2
crdam = 3
prdam = 1
trdam = 5
l = False
gain = 1
pickle.dump(health, f)
pickle.dump(gold, f)
pickle.dump(level, f)
pickle.dump(trolls, f)
pickle.dump(invin, f)
pickle.dump(used, f)
pickle.dump(swdam, f)
pickle.dump(shdam, f)
pickle.dump(crdam, f)
pickle.dump(prdam, f)
pickle.dump(trdam, f)
pickle.dump(l, f)
pickle.dump(gain, f)
f.close()
quit()
#prints not enough gold, used in shop() function
def no_gold():
print("\n\nNot enough gold!\n\n")
#prints not valid option
def not_valid():
print("\n\nThat is not a valid option.\n\n")
#shop function
def shop():
global gold
global invin
global health
global swdam
global shdam
global crdam
global prdam
global trdam
print("\n\nWelcome to the Store!\n")
choice = None
while choice != 0:
print("\n\nYou have", gold,"gold pieces.\n",
"""

0 - Return to the menu.

1 - Sword

2 - Shield

3 - Crossbow

4 - Protective Orb

5 - Heal for 50 gold.

""")
if "Troll Blaster" in invin:
print("6 - Upgrade Troll Blaster for 100")
try:
choice = int(input())

except ValueError:
not_valid()

if choice == 0:
menu()

elif choice == 1:
choice = None
print("""
1 - Buy sword for 80 gold

2 - Upgrade sword 80 gold

0 - Return to shop
""")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()
while choice != 0:
if choice == 0:
shop()
elif choice == 1:
if gold < 80:
no_gold()
shop()
if "sword" in invin:
print("Sorry, you already have a sword.\n\n")
shop()
invin.append("sword")
gold -= 80
swdam = 2
print("Your invintory is now", invin,".\n\n")
shop()
elif choice == 2:
if gold < 80:
no_gold()
shop()
if "sword" not in invin:
print("You don't have a sword.\n")
shop()
idam = swdam
swdam += idam
gold -= 80
print("\nUpgraded sword.\n\n")

shop()
else:
print("That isn't a valid option.")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()
shop()
elif choice == 2:
choice = None
print("""
1 - Buy shield for 150 gold

0 - Return to shop
""")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()
while choice != 0:
if choice == 0:
shop()
elif choice == 1:
if gold < 150:
no_gold()
shop()
if "shield" in invin:
print("Sorry, you already have a shield.\n\n")
shop()
invin.append("shield")
gold -= 150
shdam = 2
print("Your invintory is now", invin,".\n\n")
shop()

else:
print("That isn't a valid option.")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()
shop()
elif choice == 3:
choice = None
print("""
1 - Buy crossbow for 230 gold

2 - Upgrade crossbow 230 gold

0 - Return to shop
""")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()
while choice != 0:
if choice == 0:
shop()
elif choice == 1:
if gold < 230:
no_gold()
shop()
if "crossbow" in invin:
print("Sorry, you already have a crossbow.\n\n")
shop()
invin.append("crossbow")
gold -= 230
crdam = 3
print("Your invintory is now", invin,".\n\n")
shop()
elif choice == 2:
if gold < 230:
no_gold()
shop()
if "crossbow" not in invin:
print("You don't have a crossbow.\n")
shop()
idam = crdam
crdam += idam
gold -= 230
print("\nUpgraded crossbow.\n\n")

shop()
else:
print("That isn't a valid option.")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()
shop()
elif choice == 4:
choice = None
print("""
1 - Buy protective orb for 320 gold

0 - Return to shop
""")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()
while choice != 0:
if choice == 0:
shop()
elif choice == 1:
if gold < 320:
no_gold()
shop()
if "protective orb" in invin:
print("Sorry, you already have a protective orb.\n\n")
shop()
invin.append("protective orb")
gold -= 320
prdam = 1
print("Your invintory is now", invin,".\n\n")
shop()

else:
print("That isn't a valid option.")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()
shop()
elif choice == 5:
if gold < 50:
no_gold()
shop()
health += 100
gold -= 50
print("\nYour health is now", health,".\n")

shop()
elif choice == 6:
if gold >= 100 and "Troll Blaster" in invin:
idam = trdam
trdam += idam
print("\nUpgraded Troll Blaster.\n\n")
gold -= 100
shop()
else:
print("That isn't a valid option.")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()
else:
print("That isn't a valid option.")
try:
choice = int(input())
print("\n")
except ValueError:
not_valid()




#Main menu function
def menu():
global health
global gold
global level
global trolls
global invin
global codes
global used
global swdam
global shdam
global crdam
global prdam
global trdam
global l
global gain
choice = None
while choice != 0:
print("You have", health,"health.\nYou are on level", level,".\n")
print("Your invintory is", invin,".\nYou have", gold,"gold.\n")
print("There are", trolls,"trolls.\n")
try:
choice = int(input("""
1 - Fight

2 - Shop



3 - New Game

4 - Enter code

5 - Quit

0 - Save and Quit
"""))
except ValueError as e:
not_valid()

try:
if choice == 0:
input("\n\nGoodbye!")
f = open(user, "wb")
pickle.dump(health, f)
pickle.dump(gold, f)
pickle.dump(level, f)
pickle.dump(trolls, f)
pickle.dump(invin, f)
pickle.dump(used, f)
pickle.dump(swdam, f)
pickle.dump(shdam, f)
pickle.dump(crdam, f)
pickle.dump(prdam, f)
pickle.dump(trdam, f)
pickle.dump(l, f)
pickle.dump(gain, f)
f.close()
quit()
if choice == 1:
print()
fight()
if choice == 2:
print()
shop()
if choice == 3:
print()
f = open(user, "wb")
health = 100
gold = 0
level = 1
trolls = level
invin = []
used = []
swdam = 2
shdam = 2
crdam = 3
prdam = 1
trdam = 5
l = False
gain = 1
pickle.dump(health, f)
pickle.dump(gold, f)
pickle.dump(level, f)
pickle.dump(trolls, f)
pickle.dump(invin, f)
pickle.dump(used, f)
pickle.dump(swdam, f)
pickle.dump(shdam, f)
pickle.dump(crdam, f)
pickle.dump(prdam, f)
pickle.dump(trdam, f)
pickle.dump(l, f)
pickle.dump(gain, f)
f.close()
print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
log()
if choice == 4:
in_code = input("Code: ")
print("\n")
if in_code in codes:
if in_code in used:
input("You already used that code!")
print("\n")
menu()
else:
if in_code == "elx254":
health += 500
if in_code == "aw2tex":
invin.append(codes[in_code])
if in_code == "glon39":
gold += 2000
if in_code == "imu573":
l = True
val = True
red = codes[in_code]
else:
val = False
print("Invalid Code!")
print("\n")
menu()
if val == True:
print("Valid code.\n")
print("Redeemed", red,"!\n\n")
used.append(in_code)
menu()
else:
print("Invalid code!")
print("\n")
menu()
if choice == 5:
input("\n\nGoodbye!")
quit()

except ValueError:
not_valid()
#login
def log():
global user
global health
global gold
global level
global trolls
global invin
global used
global swdam
global shdam
global crdam
global prdam
global trdam
global l
global gain
#ft = if the user got username and pwword right or wrong
#user = whether you want the username returned
ft, username = login(skip = False, add = True, user = True)
user = username + ".dat"
while ft != True:
print("\n\nWrong username or pwword!\n\n")
ft, username = login(user = True)
user = username + ".dat"
print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
health, gold, level, trolls, invin, used, swdam, shdam, crdam, prdam, trdam, l, gain = memory()
menu()
print("""
Welcome to Explorer v 1.9!
-by Michael Porter

""")

log()
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Feb 2013 12:59 PM
Title fix.
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
13 Feb 2013 01:00 PM
I wrote a seperate module for the login function, as you can see in the import statements.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Feb 2013 01:01 PM
That code is... so... gross...
Please rewrite that so I am not blind.
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
13 Feb 2013 01:03 PM
I don't believe it is possible for code to be "gross", unless it executes "gross" things, in this case it doesn't so it isn't "gross". Good luck in 1rst grade!
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Feb 2013 01:04 PM
When code is gross it doesn't have any spaces, no indentation (the forums don't allow it.) and have random variable names.

So it is very possible for code to be gross.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Feb 2013 01:05 PM
@frogs
I'd be a prodigy if I knew Lua and HTML5 if I was in first grade. Is that what you're sugggesting?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Feb 2013 01:07 PM
This is silly. I will not argue with a child who is trying to prove his skill me. And if you care to say, 'ogm ragequit from argument' let me remind you that I know more than you and am taking the higher route, avoiding petty argument.
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
13 Feb 2013 01:08 PM
It had correct indentations(as Python requires it), and doesn't have random variable names. Just shortened variable names. For example, swdam is the variables name for the swords damage. This isn't useless because in the game you can upgrade your sword so it does more damage. Also, if you see all of the pickleing, the pickle module lets you save data to a .dat file. So anyone that plays the game can save their lvl, their damage, their health, redeemed codes, gold, etc. It does have spaces as well, the forum just removes them.
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
13 Feb 2013 01:09 PM
prove it. atleast i'm not calling your post "gross"
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Feb 2013 01:10 PM
My post isn't gross because I didn't post any disgusting code.
Good day.
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
13 Feb 2013 01:10 PM
'Would be too inefficient and a waste of time.'

No, it's good, people want to learn more than Lua only... I think it just will be too hard to implement, but support
Report Abuse
frogs7798 is not online. frogs7798
Joined: 01 Apr 2011
Total Posts: 1629
13 Feb 2013 01:11 PM
lol, a reply counts as a post.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Feb 2013 01:13 PM
Do you know the definition of a post in a forum?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • 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