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 » Scripters
Home Search
 

Re: Is there even a solution to this?

Previous Thread :: Next Thread 
Ultraw is not online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
26 Jul 2016 02:15 AM
In an RPG. There is 10 different worlds (places).

Would I need to store every sword in every place??

What if I wanted to change the damage of one of the swords?? Would I need to change the scripts in every single place??

That seems silly
Report Abuse
African_Black is not online. African_Black
Joined: 04 Mar 2013
Total Posts: 680
26 Jul 2016 02:16 AM
Yes.
Report Abuse
Ultraw is not online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
26 Jul 2016 02:30 AM
Which question were you answering
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
26 Jul 2016 02:35 AM
Use a model you own with all weapons then just have it load it into the game when a new server starts.

(So you can update the swords with the model and it'll update every place so you don't even have to touch them.)
Report Abuse
Dawntine is not online. Dawntine
Joined: 24 Jul 2016
Total Posts: 210
26 Jul 2016 02:35 AM
One potential solution is to upload a private module and to use that.

The better solution, I believe, is to either use InsertService on the model and just update that one model or use GetProductInfo and parse the item's description which contains the data on the damage and such it deals.


Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
26 Jul 2016 02:37 AM
But that's not how I would do it, but it'll work.

I'd go about doing it like so:
Make all swords for FE, then make the info sent to a server module and have a list of damage in there for each weapon then I'll just need a Pmodule to update an array of damage and other stats for weapons.
Report Abuse
Dawntine is not online. Dawntine
Joined: 24 Jul 2016
Total Posts: 210
26 Jul 2016 02:38 AM
Or just have one module which contains all data on all swords and require that.


Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
26 Jul 2016 02:40 AM
Yea that would work too.

Maybe just use a PModule and keep damages in it them make the sword script require it and get damage for that sword, i'd just make it require it once and then track the info sent to server and make sure player is in range allowed to deal damage and if not hi exploiter give them a warning not to exploit or be banned.

Many ways to go about it. You might find it easier to just upload all swords into a model then have the server load the model in and put it where it's needed, then you could even fix bugs with weapons and update them with things without having to even touch the main game less bandwidth used, but whatever do it whatever is easiest for you.
Report Abuse
Ultraw is not online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
26 Jul 2016 02:56 AM
Thanks guys
Report Abuse
TheIceZombieSlayer is not online. TheIceZombieSlayer
Joined: 26 Mar 2013
Total Posts: 267
26 Jul 2016 05:19 AM
Make it a model and use InsertService:LoadAsset().


Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
26 Jul 2016 06:18 AM
Yes. Learning how to script
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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