Posts from Scripts
0 - crystal
1 - gem
2 - gold
3 - mercury
4 - ore
5 - sulfur
6 - wood
7 - UNKNOWN
8 - campfire
9 - treasure chest
10 - sea chest
11 - floatsome
12 - UNKNOWN
13 - shipwrecked peasant
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!
Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
Therefore, in case of any crash, instead of immediately opening a map and checking what has been saved, you should separately copy all the files from /Editor/H5Mods/MapName/.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
That is, the textures themselves are probably not there, but their names are.
Is there a way to remove them from there – for example, by deleting the character and creating it from scratch, or something simpler? If I can't remove them, my list will eventually become incredibly long, and most of those textures will be non-functional.
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
MainHero = "TestHero";
FirstQuestion = 0;
function TestQuestion( MainHero )
if MainHero == "TestHero" then
if ( GetHeroStat("TestHero", STAT_MOVE_POINTS) <= 99 ) then
if FirstQuestion == 0 then
FirstQuestion = 1;
MessageBox(GetMapDataPath().."TestQuestionInfo.txt");
end;
QuestionBox({GetMapDataPath().."TestWork.txt"; TestWork_mp=100*GetHeroLevel("TestHero")}, "RunRun");
end;
end;
end;
function RunRun()
if GetHeroStat("TestHero", STAT_MANA_POINTS) >= 8 then
ChangeHeroStat("TestHero", STAT_MOVE_POINTS, 100*GetHeroLevel("TestHero"));
ChangeHeroStat("TestHero", STAT_MANA_POINTS, -8);
elseif GetHeroStat("TestHero", STAT_MANA_POINTS) < 8 then
MessageBox(GetMapDataPath().."TestWorkNoMana.txt");
end;
end;
Trigger( NEW_DAY_TRIGGER, "TestQuestion" );If I agree in the QuestionBox, everything works and there are no errors, but for some reason, if I refuse (i.e., choose the Cancel answer), the console gives me the following error:
"(Script) Error: '=' expected;
last token read: '/ at line 1 in string "DoStringScript"
Script failed, unknown error"
Why is this happening? This isn't the complete script because only one function is automatically launched (another one, I'm launching this one manually), but could the problem be here?
Line 1 in this script looks like this, and it definitely shouldn't be causing an error:
---------------;;;;;;;;;;;;;;;===============
Hello.
Why is this happening? This isn't a complete script because only one function is automatically launched (the other one I launch manually), but could the problem be specifically here?
Line 1 in this script looks like this, and it definitely shouldn't be causing any issues:
---------------;;;;;;;;;;;;;;;===============
If you're getting an error when the action is declined, then the error is in the function that's called when the action is declined. You don't have one. Try adding 'nil' as the last argument in QBox.
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!
Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.
It might not be immediately obvious, but let's think about it:
If you're getting an error when the condition fails, it means the error is in the function that's being called when the condition fails. You don't have that. Try adding `nil` as the last argument in `QBox`.
The error is gone! Thank you very much
It's strange; I based it on a `QB` from a developer map with Frida, where she's asked whether to pass through the dwarf garrison. I also looked through the ToE maps, and in the very first map of the campaign, there's also a `QB` without an argument for the failure condition. Or maybe the game is complaining about the third argument because I'm using a variable-transmitter in the text file ``?
The error is gone) Thank you very much
It's strange, I used the QB from the developer's map with Frida as a basis, where she is asked whether to pass through the dwarf garrison. I also looked through the ToE maps, and in the very first map of the campaign, there is also a QB without an argument for refusal. Or maybe the game is complaining about the third argument because I'm using a variable-transmitter in the text file ""?
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!
Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.