Here's an example situation. Say I've set up some NPCs that, through dialogue, allow an actor to be "retrained" into a new class. So, for example, Harold can swap between being a Warrior, a Mage, and a Cleric.
Now, lets say I want to give Harold a permanent 'perk' as a side quest reward, so that he has +200HP but only while he's a Warrior. If Steve changes to a Warrior, he shouldn't have the perk, and if Harold changes to Mage, he shouldn't have the perk, but when he swaps back to Warrior, he should.
Any idea how I would do this?
Now, lets say I want to give Harold a permanent 'perk' as a side quest reward, so that he has +200HP but only while he's a Warrior. If Steve changes to a Warrior, he shouldn't have the perk, and if Harold changes to Mage, he shouldn't have the perk, but when he swaps back to Warrior, he should.
Any idea how I would do this?