Skip to content
#296
Auto-translated
Maybe create a hero in reserve, and assign this art to him? Then, when issuing a task, give the command to make this hero appear on the map. _____ And I have this problem. My script persistently refuses to execute the StartThread function.
Console
[Script warning!] Value was NIL when getting global with name 'StartThread'
(Script)ERROR: attempt to call a nil value
Function
function Call_of_Urgash()
if HasHeroSkill('Oddrema', 98) then
MessageBox(GetMapDataPath().. 'Call.txt')
ChangeHeroStat('Oddrema', STAT_EXPERIENCE,43119)
AddObjectCreatures('Oddrema', 27, 18)
SetObjectiveState('SA', PLAYER_1, 3)
flag = 1
end;
end;
StartThread('Call_of_Urgash');
What's the problem? Sincerely.

Statistics

Welcome our newest member: Фёдор Фёдорович