Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5242
Auto-translated
Check the console more often to identify such errors. It would display "Value was nil when getting global with name 'AddHeroSpells'!", which means the variable AddHeroSpells was not defined. All script functions are variables containing functions that are defined from the Lua scripts that run with the game. If the variable is not defined, then that function does not exist. Then, refer to the manual (or in the script editor, click Ctrl+Space) and find out that there is only the function TeachHeroSpell. Use that instead.

If you follow this principle of error analysis, you won't need help. You can also use the debugging method by Jack_of_Shadows.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________