Skip to content
User Avatar
#4029
Auto-translated
Dogenator

Hello everyone. I have a question about the script (in the screenshot). I don't know what else to do to make it work; the trigger doesn't activate it.

Attachment 73917

And is it possible to create a script that would automatically skip Player 2's turn on the first day? I couldn't find anything similar in the manuals, so I tried changing Player 2's MP value.

Please advise.

Okay, so what error does it display? Or are there no errors? Add debug printing to the new day function and see what GetTownRace(...) outputs. Also, please attach the code as text within a code block instead of a screenshot:
function MyFunc(var)
-- Some Lua code
print("Hello, ", var);
end

You can enable cheats from the script and skip the turn:

consoleCmd("enable_cheats")
consoleCmd("eot")

A simpler way is to take away movement points from the hero:

ChangeHeroStat("Hero", HERO_STAT_MOVE_POINTS, -GetHeroStat("hero", HERO_STAT_MOVE_POINTS)
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________

Statistics

Welcome our newest member: dylanyamaha