A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
naknak
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
Supernapalm
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
m27frogy
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
slayer9365
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
myrco919
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
branefreez
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
ninga95
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
CloneTrooper787
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
raboy117
Object Orientated Programming-based RPG Vote_lcapObject Orientated Programming-based RPG Voting_barObject Orientated Programming-based RPG Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
Object Orientated Programming-based RPG EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
Object Orientated Programming-based RPG EmptySeptember 14th 2020, 1:16 pm by MrNicNac

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
Object Orientated Programming-based RPG EmptyJuly 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
Object Orientated Programming-based RPG EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
Object Orientated Programming-based RPG EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
Object Orientated Programming-based RPG EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
Object Orientated Programming-based RPG EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
Object Orientated Programming-based RPG EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
Object Orientated Programming-based RPG EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
Object Orientated Programming-based RPG EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
Object Orientated Programming-based RPG EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
Object Orientated Programming-based RPG EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
Object Orientated Programming-based RPG EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
Object Orientated Programming-based RPG EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
Object Orientated Programming-based RPG EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
Object Orientated Programming-based RPG EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
Object Orientated Programming-based RPG EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
Object Orientated Programming-based RPG EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
Object Orientated Programming-based RPG EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
Object Orientated Programming-based RPG EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 Object Orientated Programming-based RPG

Go down 
5 posters
AuthorMessage
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 7th 2011, 3:56 pm

http://www.roblox.com/Goatsword-A-new-high-tech-medieval-RPG-item?id=18431059

I created a decently long script to allow me to program an RPG in OOP style- meaning it's all inheriting and whatnot.

This means it'll be super-fast - the only things that have their own scripts are tools, they have weld scripts for equipping and normal sword-like scripts.

Everything is value based, so an enemy, inside looks like this:

Goblin
-Id (1)
-Drops
--XP (Bool)
---Amount (Int)
----Minimum (Bool)
-----Minimum (Int)
--Money (Bool)
---Amount (Int)
----Minimum (Bool)
-----Minimum (Int)
--Items (Bool)
---1 (Int itemID)
----Amount (Int)
-----Minimum (Bool)
------Minimum (Int)

You get the idea- there's a LOT.

Same with weapons.

Some may ask why I have weld and weapon scripts one for each weapon (Rather than once controling all weapons)- simple- it'd be EXTREMELY fiddly to make it control all, and it'd bug up under many undebuggable occasions. Plus they're event controlled so cause no lag.

Stats are not hackable- all local scripts are FORCED to verify any stat changed with the server- and any localscripts attempting to edit stats are classed as hacked and the player owning them is removed from the game. Same scenario if a player's stats changes from the global server database- it'll ban them immediatly. All scripts MUST use a set function (GiveXP(Player, Amount), GiveMoney(Player, Amount), GiveItem(Player, Amount, Id) etc.)

Screenshot of enemy structure: (May be blurred, but you should be able to see how many values there are! :P)
Object Orientated Programming-based RPG Screenshotofenemystruct


Last edited by trappingnoobs on March 7th 2011, 4:01 pm; edited 1 time in total (Reason for editing : Adding image)
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 7th 2011, 4:12 pm

Genius.
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 10th 2011, 9:00 pm

lol. hackable? is that even a word? i think your flexible script is genius, but hackable?
Back to top Go down
http://hackthissite.org
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 11th 2011, 8:03 am

very cool!
Back to top Go down
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 11th 2011, 12:20 pm

@Super

If you're going to correct an incorrect use of a word, at least use basic grammar while doing so.
Back to top Go down
CloneTrooper787
Moderator
Moderator
CloneTrooper787


Posts : 81
Join date : 2011-01-22

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 11th 2011, 10:39 pm

Very interesting.
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 11th 2011, 10:48 pm

why would you need to use correct grammar? we're just posting. i mean, i would use correct grammar in a tutorial, or in highly classified information, but i believe that there is no need to apply language arts in temporary posts. all im saying that your style is flexible. sheesh -_-
Back to top Go down
http://hackthissite.org
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 12th 2011, 5:52 am

trapping is probably an english teacher. :P lol jk
Back to top Go down
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 12th 2011, 7:00 am

Yes but you insulted my use of the word "Hackable". If you can't take criticism, don't deal it out.

Edit;

Your post does seem a lot less provocational upon reading it again. Apologies. Thanks too.
Back to top Go down
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 13th 2011, 2:22 am

The game seems to think that all weapons are Bronze Two-Handed Swords. Do you think that could be fixed?

OT: Should I use MY character instead of Telamon for my avatar-thingy?
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 14th 2011, 6:00 am

first: TELL US WHO YOU ROBLOX USER NAME IS.

is it: crazypotato4? :D?
Back to top Go down
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 17th 2011, 4:06 pm

No, Crazy is freeingnoobs.
I'm trappingnoobs on roblox too.


@NotAPotato

Not all of them have been done since I'm too lazy to change so many StringValues. The iron and bronze swords have all been done though.
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMarch 19th 2011, 6:09 am

so NotAPotato is freeingnoobs?
Back to top Go down
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyApril 10th 2011, 5:27 pm

Yeah
Back to top Go down
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyMay 31st 2011, 2:35 pm

Spent about an hour making a script that, using a table of toughnesses (Eg dagger), a tonne of position math, and a table of sword types, did the naming for me.

Once I'd finally made it work, I realised it would've been faster to do it manualy.

T.t
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyJune 11th 2011, 11:18 pm

Not everything needs to be done automatically.
Back to top Go down
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyJune 12th 2011, 11:44 am

What do you mean by that?
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyJune 12th 2011, 2:45 pm

I was just commenting on how manually doing some things is quicker than automating it.
Back to top Go down
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyJune 12th 2011, 2:50 pm

Iknowright?

But making it automated SEEMS shorter :-P
Back to top Go down
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyJune 30th 2011, 10:58 am

You're game didn't work for me. The swords didn't kill the goblins, I knocked one of the map, but it didn't regen.
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyJune 30th 2011, 11:59 am

He probably isn't done

yeah, automating is more fun and it does seem shorter most of the time.
Back to top Go down
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyJune 30th 2011, 12:02 pm

True true.
Back to top Go down
Guest
Guest
avatar



Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyJuly 1st 2011, 2:21 pm

M27, the goblins are realy glithchy. I've stopped development on that project right now, but I'll continue soon.
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG EmptyFebruary 8th 2012, 4:29 am

LOL!
Back to top Go down
Sponsored content





Object Orientated Programming-based RPG Empty
PostSubject: Re: Object Orientated Programming-based RPG   Object Orientated Programming-based RPG Empty

Back to top Go down
 
Object Orientated Programming-based RPG
Back to top 
Page 1 of 1
 Similar topics
-
» How many years have you studied programming?
» LAdmin GUI Based Admin System
» Complete implementation of an OOP-based winform library in roblox.
» HOW TO: Multipul lines in a GUI object

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Roblox General :: Advertise-
Jump to: