How do I create a random buff and debuff system?

Okay, so I am doing an assignment for school and I want to figure out how to make a random buff and debuff system. The problem is, no matter how hard I search, I can’t find exactly what I need. The type of system I need is for a small little game project where every time the player dies, they spawn with a random buff and debuff.

i think the simplest solution is Actor Components, add the component when a buff/debuff is applied and the component handles the logic.

you may also want some sort of manager component to handle the creation/tracking and handle duplicates/ stacking etc

2 Likes

Thank you, that helps a lot