Skip to content

Posts from Scripts for beginners.

4.5 (2 ratings)
In reply to Азгалор
User Avatar
Auto-translated
Azgalor

What is the console complaining about?

Everything is working now! I placed NowNecromancer = 0 not at the very beginning, but after another script.

Мои карты:
Падший рыцарь
Сердце Хаоса

Мои моды:
Визуальные:
Изменение внешнего вида героев-некромантов
Существа-жители и кое-что по мелочи в городах Ордена Порядка, Некрополиса и Инферно

NCF-существа:
Странствующие рыцари
Наемники

User Avatar
Auto-translated
Please help, what's the problem? The console says it can't find a task with that name. function MiniZadanie()     MessageBox("/Maps/SingleMissions/123/TXT4.txt");     SetObjectiveState('Francheska', OBJECTIVE_ACTIVE, 2);     Trigger(OBJECT_TOUCH_TRIGGER, "zdanie", nil);     end          Trigger(OBJECT_TOUCH_TRIGGER, "zdanie", "MiniZadanie");
In reply to Dongua
User Avatar
Auto-translated
Dongua
Please help, what's the problem?
The console complains that it cannot find a task with that name.

function MiniZadanie()
    MessageBox("/Maps/SingleMissions/123/TXT4.txt");
    SetObjectiveState('Francheska', OBJECTIVE_ACTIVE, 2);
    Trigger(OBJECT_TOUCH_TRIGGER, "zdanie", nil);
    end
    
    Trigger(OBJECT_TOUCH_TRIGGER, "zdanie", "MiniZadanie");
Is the task name exactly as written?
User Avatar
Auto-translated
This line, **SetObjectiveState('Francheska', OBJECTIVE_ACTIVE, 2)**, means that you are trying to activate a quest for the second player. Either there is an error here, and if you want to activate it for the first player, you should either write 1 instead of 2, or not write anything at all, because by default, quests are activated for the first player. If the goal is to activate the quest specifically for the second player, it should be indicated either as Common, so that it can be activated by any player, or entered as PlayerSpecific and for the second player. But judging by the path to the message, you have a single-player map, so just activate it for the first player.
Нет войне.
In reply to Gerter
User Avatar
Auto-translated
Please help, what script do I need? I want to set a condition: if the quest is completed.
In reply to Dongua
User Avatar
Auto-translated
Dongua
Please help, what script do I need? I want to set a condition: if the quest is completed.
if GetObjectiveState("quest") == OBJECTIVE_COMPLETED then
In reply to Азгалор
User Avatar
Auto-translated
Azgalor
if GetObjectiveState("quest") == OBJECTIVE_COMPLETED then
What does this error mean? "Objective is not manually controlled."
In reply to Dongua
User Avatar
Auto-translated
Dongua
What does this error mean? "Target is not manually controlled."
Can you provide a screenshot? Or, write the error as it appears in the original, i.e., in English.
In reply to Dongua
User Avatar
Auto-translated
Dongua
Attachment 68942
Send me the map; I'll take a look at what quests you have there
In reply to }{0TT@6bI4
User Avatar
Auto-translated
Is it possible to set a condition that triggers when a neutral creature is defeated?
User Avatar
Auto-translated
If you control it with a script, then no. If without a script, then it's possible. Read the guide on quests (it's in the group's files in my signature).
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
User Avatar
Auto-translated
Please help me with the script. After the hero enters the region, a script with a battle should trigger, and 3 creatures should disappear, but it doesn't work; I couldn't figure out why in an hour. I think it's related to the battle script; maybe I wrote something wrong. Thank you in advance for your help. ``` function draka3() StartCombat("Arantir",nil,1,103,10,nil,nil,nil); sleep(1); RemoveObject('q14'); RemoveObject('q15'); RemoveObject('q16'); sleep(1); Trigger(6,"bitva3",nil) end Trigger(6,"bitva3","draka3")

Statistics

Welcome our newest member: Emil