I'm attempting to construct a system in which I can attach a "passive skill" object to another object to modify formulas. For example, let's say I want one skill that makes the user deal more damage if its enemy is at full health, and another skill that makes the user take less damage from certain types of weapons. I've been looking into potential ways to parse a string into a lambda or similar function, but I'm not sure if that's the right approach. The only alternative that's coming to mind is a complicated mess of if statements or child classes, and I'm looking for something that can be easily stored via file IO. Does anyone have any good tips? submitted by /u/Do_Ya_Like_Jazz [link] [comments]