This is where the problem lies. The trigger for increasing the level only works if the level increases during the game itself; if it was defined in the editor, it won't happen. Therefore, only this line is triggered:, which is why the combat script always thinks the hero is at level 1.SetGameVar("LevR", 1)
@for i=1, N do LevelUpHero("HeroName") end, where N is the number of additional levels. Then, there is no need to remember a specific amount of experience for each level.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________