One remote for every skill?

I recently read this discussion on whether to use multiple remotes or just one that takes many arguments:
https://devforum.roblox.com/t/what-is-better-a-single-remote-or-multiple-remotes/478908

It seems that the consensus is that having a remote for each “action” is better. However, in my case, I eventually plan to have around, say, 100 different skills in my game. Would it be better then to have a single remote and call the skills by their ID? Or would it be better to just have a remote for each skill?

I’m only really concerned with the performance, as I can manage both methods. Currently, I have a single remote that takes a skill ID and then looks up the skill’s function in a table, where the key is the same as the skill ID. It’s early enough that I can change it, but I don’t want to rewrite it later on when I have many skills.

Use one remote for all skills. Having 100 is messy and you’re hardcoding each skill at that point.

1 Like

Whenever I do stuff like this I find it better to just do the method you suggested; use one remote for all and just refer to them with an ID, this also cuts the time taken to add new skills in your case.

1 Like

You could store the skills in a module as a dictionary and have the player pass in the skill they’re attempting to use, then look that skill up in the dictionary and run the function for that specific skill. :slight_smile:

1 Like

I have worked with the “one remote for everything” method and at some point if you have a lot of stuff it becomes really messy and confusing. It might be because I probably didnt organize it properly. But using 1 remote for 1 thing for lets say 100 skills is also really messy.

I’d say go with the method you are using

Second this; this is how I handle skills and things in my games. Works great.

1 Like