Instead of false, it is preferable to use nil, and instead of true, use 1. In addition, the reward is only awarded if a skill is present, and the flag variable is set to "false" upon any contact. That is, the approach without a skill means you will never receive the reward again, even if you approach with the skill. Obviously, changing the flag should be moved inside the conditional block.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________