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
 

advice for a turn based battle system?

Previous Thread :: Next Thread 
BrendonTheWizard is online. BrendonTheWizard
Joined: 28 Jul 2010
Total Posts: 25709
27 May 2017 07:10 PM
i know there's very literally an infinite amount of ways one could approach making something like this
here's my ideas so far

- if easiest, most everything would take place on the client side
however
- event gets triggered from the server

also thinking

- there will be a gui but things like animations would take place in the physical world

i've always wanted to make something like this and i know how to script
the issue is that i'm not sure what kind of methods i should write to make it happen

any advice?
Report Abuse
BrendonTheWizard is online. BrendonTheWizard
Joined: 28 Jul 2010
Total Posts: 25709
27 May 2017 07:13 PM
for clarification

"- event gets triggered from the server"

event in this context refers to the start of the battle

examples would include things like

- user comes in contact with an enemy, touch event triggers battle
or
- after a random amount of time that the player spends moving, battle is triggered
or
- cinematic cutscene or animation occurs followed by battle triggered


as for the battle system itself i'm thinking that it may be most efficient to do everything on the client

it may end up being necessary to create it first and fix vulnerabilities later
Report Abuse
BrendonTheWizard is online. BrendonTheWizard
Joined: 28 Jul 2010
Total Posts: 25709
27 May 2017 07:21 PM
one idea i have in mind is a data structure of "attacks"

each attack will be the parent of values like "maxDamage" or "minDamage" or "Name"

and maybe a boolean "learned" to check if the user and/or enemy is able to use them
but to use a random generator i'd have to iterate through the structure
so maybe not
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