Skip to content
User Avatar
#3703
Auto-translated
Martha
Jewily, thank you, I'll try it now.


Added 27 minutes ago
If the goal is to write this:

function Quest_Zubec_Handler(player)
  if(player == 1 and GetObjectiveProgress("Quest_Zubec",1) == 3) then
MessageBox ("/Maps/SingleMissions/L1/Parol_Zubec1.txt");
sleep(2);
 end
end
Trigger(OBJECTIVE_STATE_CHANGE_TRIGGER ,"Quest_Zubec_Handler","Quest_Zubec")

And nothing else anywhere, then I only managed to load the map (the quest hasn't been taken yet), and the game already writes:

(Script) Error: Objective with name "Quest_Zubec_Handler" is not exists

Apparently, it doesn't make sense to go and check? There's a battle that lasts at least half an hour, even with cheats.
I'll try the first option, with the thread.

Added 12 minutes ago
Regarding the first option - the starting video didn't even load because I put that option at the very top.

Here's the script:

function checkState()
  while(1) do
   if(GetObjectiveProgress("Quest_Zubec",player) == 3) then
    MessageBox ("/Maps/SingleMissions/L1/Parol_Zubec1.txt");
    break
   end
   sleep(8) 
  end
  end
  startThread("checkState")

The game writes:
(Script) Error: StartTread first parameter must be a function

It seems I'm cursed now). Either the map glitched, and I spent the whole night figuring out how to restore it (I didn't know that the editor could somehow delete files for Map Properties and not allow restoring them, even in earlier versions of the map), or now this.


Added 9 minutes ago
Stop-stop. In the option without a thread, it seems that the function and quest names are mixed up.
But if you write

Trigger(OBJECTIVE_STATE_CHANGE_TRIGGER ,"Quest_Zubec","Quest_Zubec_Handler")

take the quest, and immediately use it on SetObjectiveProgress("Quest_Zubec", 3, 1);
then the game doesn't react at all, and doesn't write anything.

I made a slight mistake with the thread; there are probably extra quotes there.
You just need to specify the function name.
I can't help with the rest for now because, as you can see, without a computer, typos and blunders happen.


Не уходи безропотно во тьму,
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!

Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.


                                                                                       

Statistics

Welcome our newest member: wayal