I hope this doesn’t sound pedantic but it’s “affected”, not “effected”. It’s an error I see a lot and it’s easy to fix if you just remember that “affect” means “to impact”.
So if what you’re trying to say someone or something was impacted by something else, you say “affected”.
Also as a general rule of thumb “effected” while grammatically correct is rarely ever used in colloquial talk in the context of what it means which is executed or produced. So people almost always mean “affected” when they make this mistake.
Effect is the result of the influence or impact on something.
The simplest way to think about it is that 'affect' is a verb and 'effect' is a noun, but they refer to essentially the same thing (you could define 'affect' as 'to have an effect on' something). But even that is confused by things like the verb phrase 'effect change'.
Which word you use might actually just come down to which way you're talking about something, but broadly affect is the action and effect is the result.
So if what you’re trying to say someone or something was impacted by something else, you say “affected”.
Also as a general rule of thumb “effected” while grammatically correct is rarely ever used in colloquial talk in the context of what it means which is executed or produced. So people almost always mean “affected” when they make this mistake.