Is there a way to check if a variable has dropped by an amount rather than checking a specific value?
In example, there’s a specific scene I’m looking for in this involving a faction’s supplies dropping too rapidly. Rather than “it went below X” it would be more akin to looking at a graph than looking at a static number.
One such example:
Supplies are at 90 then drop to 80; triggering the scene.
Supplies are at 30 then drop to 20; still triggering the same scene.
I’m not necessarily looking for it to trigger on a specific amount of supplies but rather the drop itself. I hope I’m being transparent here as I’m not sure what to say to explain this other than what I’ve already said.
I also have no idea what to look for on the C-Script wiki for this concept. I would assume variables but that didn’t seem to give a solid answer to this one.