- I want to make a perk / ability system like in dead by daylight for my adventure / RPG game
- The issue is that I don’t know how they did it and I don’t know how to do it
- I tried making my own Perk module that has triggers (onAttack, onDamage…) and is basically the framework, however it’s a bit hard to work with and I don’t think it’s the best way of doing things. I looked on the forum, reddit and basically everywhere, but I didn’t find anything helpful ;(
Here’s basically what I want if you don’t understand what I mean by “perk”:
- When the player’s character loads, the perks also load
- They only run if their trigger is activated
ex: OnDamage
- When they run, it has a client and a server side function
ex: hum.WalkSpeed += 5
- When the trigger or the duration ends, they also have a client and server side function
ex: hum.Walkspeed -= 5
- Each group (archer / warrior) has their own perks
Keep in mind the dead by daylight perk system is just an example of what I want to achieve
I just need an idea / tip on how to make it efficient & organised