Luck System (Luck)

  1. What do you want to achieve?
    I’ve no idea how to make my luck system work.

  2. What is the issue?
    The issue is really simple but hard to explain so bear with me please lol.

Basically I’ve pets and I want to change their luck drop for each player (for ex: if someone has x2 luck). The thing is, the luck drop is defined by the server (The pets are hatched on the server and displayed on the client) making the luck drop the same for everyone. If I change the luck drop of the client it’ll just work on the display and not on the server (it’ll say 50% but it’ll actually be 25% on the server). And as you know, if I change the global luck it’ll break everything because of very logical reasons.

  1. What solutions have you tried so far?
    I’ve tried thinking about other ways to make this work but I simply want your advice.

I don’t know if I need to rework the whole system or not.

Sorry if this isn’t the right category, I’ve found the most amount of help in there :slight_smile:

First of all you should be changing luck on the server and then firing some event to update the client. But to achieve a luck system you can refer to these posts:

To change the luck rate you would have to loop through the chances table and apply a multiplier to the weights.

1 Like