_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
New here? I'm Roha — want a quick tour?
while 1 do
pfonix = GetHeroCreatures( "Main_Hero", CREATURE_PHOENIX);
if pfonix >= 5 then
SetObjectiveState("dzad3", OBJECTIVE_COMPLETED);
SetObjectiveState("dzad2", OBJECTIVE_FAILED);
break;
end;
sleep(1)
endThe last loop is missing a sleep command, so if the condition pfonix >= 5 (correctly spelled phoenix, not pfonix in English) is not met, the game will crash after the first iteration. Something like that.
By the way, how does the sleep script actually work? I just can't seem to understand it.
What script is needed to issue several quests after a dialogue?
The task is assigned using this command: SetObjectiveState('task_name', state, playerID = PLAYER_1); You can write this command several times to assign different tasks.
Help, kind people.
Does anyone happen to know how to write a separate script for the gates of a garrison?
I haven't come across anything like that before, and yet, in this model, there is a Script tab.
Surely, it's not a function; you just need to write it directly, without any introductions, right?
I want only the owner of a specific castle and another specific castle to be able to pass through the gates, that is, two conditions.
How is this written?