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 apparently gone, but their names are still there.
Is there a way to remove them from there — for example, delete the character and create it from scratch, or something simpler? If not removed, my list will end up being a mile 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.
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!
Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.
Hard to say off the top of your head, but let's think:
If you get an error on refusal, it means there's an error in the function called upon refusal. You don't have one. Try appending nil as the last argument in QBox.
The error is gone) Many thanks
Strange — I based my QB on the devs' map with Freyda, where she's asked whether to pass through the dwarf garrison. I also dug into ToE maps; in the very first campaign map there, there's also a QB without a refusal argument. Or maybe the game complains about the third argument because I'm using a variable-transmitter to the text file "<TestWork_mp>"?
The error is gone) Many thanks
Strange, I took the QB from a developer's map with Freyda as a basis, where she is asked whether to pass through the gnome garrison. I also dug into ToE maps — in the very first campaign map there, there's also a QB without a refusal argument. Or maybe the game complains about the third argument because I'm using a transmitter variable to the text file "<TestWork_mp>"?
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!
Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.