Skip to content
User Avatar
#3800
Auto-translated
Not according to the code, but just for understanding: any variable is global if it is not declared as local or is not a function argument. The approach with uppercase letters is good.

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.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________