Hello, I want to create a system that would inflict status effects like poison, bleeding, etc. I don’t know where to start to make a system like this nor would I know how to make it optimized either. Any help with starting this will help.
For more information, I want to create something like what Minecraft has: Example Here
I could help you by saying what I used to make status effects.
I made preexisting NumberValue instances which are the status effects. There will be attacks that increase the .Value property of the NumberValue status effect instance. Then there’s code that will run if the value property is above 0.
This works for status effects that can’t stack up their time. For example, if you’re hit by 2 attacks that inflict 5s of bleed at the same time, they won’t be 10s.