Looks like you fixed the original scripts errors, but you created new ones in the process. The old file path for the achievement bonuses and HP inheritance is this:
/mods/subscribed/95206_Janos Hunyadi EN/resources/_common/campaign/Janos_Hunyadi_EN
Which doesn’t work, because the file path for your version of the mod is this:
\mods\subscribed\410599_Janos Hunyadi EN (Fixed Script Errors)\resources_common\campaign\Janos_Hunyadi_EN
So no matter what the player does, they will never receive any bonus for completing achievements. The scripts cannot find the correct file, so they can’t save completion status or reference the flag. That is, unless they also have the original mod installed. Then it might work, which I’m guessing is what happened when you play tested your version.
EDIT: Tried fixing it in my local copy and it’s still not working, so I’m missing something as well. Might be the file path it tries to open into prior starting in local, as the file there (and most of the path) doesn’t actually exist. Might try creating it later and see if that fixes the problem, but I’m out of time for now.