| Object Orientated Programming-based RPG | |
|
|
Author | Message |
---|
Guest Guest
| Subject: Object Orientated Programming-based RPG March 7th 2011, 3:56 pm | |
| http://www.roblox.com/Goatsword-A-new-high-tech-medieval-RPG-item?id=18431059I 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)
Last edited by trappingnoobs on March 7th 2011, 4:01 pm; edited 1 time in total (Reason for editing : Adding image) |
|
| |
naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Object Orientated Programming-based RPG March 7th 2011, 4:12 pm | |
| | |
|
| |
Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Object Orientated Programming-based RPG March 10th 2011, 9:00 pm | |
| lol. hackable? is that even a word? i think your flexible script is genius, but hackable? | |
|
| |
blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Object Orientated Programming-based RPG March 11th 2011, 8:03 am | |
| | |
|
| |
Guest Guest
| Subject: Re: Object Orientated Programming-based RPG March 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. |
|
| |
CloneTrooper787 Moderator
Posts : 81 Join date : 2011-01-22
| Subject: Re: Object Orientated Programming-based RPG March 11th 2011, 10:39 pm | |
| | |
|
| |
Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Object Orientated Programming-based RPG March 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 -_- | |
|
| |
blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Object Orientated Programming-based RPG March 12th 2011, 5:52 am | |
| trapping is probably an english teacher. :P lol jk | |
|
| |
Guest Guest
| Subject: Re: Object Orientated Programming-based RPG March 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. |
|
| |
Guest Guest
| Subject: Re: Object Orientated Programming-based RPG March 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? |
|
| |
blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Object Orientated Programming-based RPG March 14th 2011, 6:00 am | |
| first: TELL US WHO YOU ROBLOX USER NAME IS.
is it: crazypotato4? :D? | |
|
| |
Guest Guest
| Subject: Re: Object Orientated Programming-based RPG March 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. |
|
| |
blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Object Orientated Programming-based RPG March 19th 2011, 6:09 am | |
| so NotAPotato is freeingnoobs? | |
|
| |
Guest Guest
| Subject: Re: Object Orientated Programming-based RPG April 10th 2011, 5:27 pm | |
| |
|
| |
Guest Guest
| Subject: Re: Object Orientated Programming-based RPG May 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 |
|
| |
naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Object Orientated Programming-based RPG June 11th 2011, 11:18 pm | |
| Not everything needs to be done automatically. | |
|
| |
Guest Guest
| Subject: Re: Object Orientated Programming-based RPG June 12th 2011, 11:44 am | |
| What do you mean by that? |
|
| |
naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Object Orientated Programming-based RPG June 12th 2011, 2:45 pm | |
| I was just commenting on how manually doing some things is quicker than automating it. | |
|
| |
Guest Guest
| Subject: Re: Object Orientated Programming-based RPG June 12th 2011, 2:50 pm | |
| Iknowright?
But making it automated SEEMS shorter :-P |
|
| |
m27frogy The Garbageman
Posts : 336 Join date : 2011-06-23
| Subject: Re: Object Orientated Programming-based RPG June 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. | |
|
| |
naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Object Orientated Programming-based RPG June 30th 2011, 11:59 am | |
| He probably isn't done
yeah, automating is more fun and it does seem shorter most of the time. | |
|
| |
m27frogy The Garbageman
Posts : 336 Join date : 2011-06-23
| Subject: Re: Object Orientated Programming-based RPG June 30th 2011, 12:02 pm | |
| | |
|
| |
Guest Guest
| Subject: Re: Object Orientated Programming-based RPG July 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. |
|
| |
blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Object Orientated Programming-based RPG February 8th 2012, 4:29 am | |
| | |
|
| |
Sponsored content
| Subject: Re: Object Orientated Programming-based RPG | |
| |
|
| |
| Object Orientated Programming-based RPG | |
|