Skip to content
#689
Auto-translated
Duncan
And a seemingly simple task in standard maps: "defeat everyone"??? Do you know how to create it with scripts so that it also works?
And please provide a script for the prophet's hut.
I'm saying thank you in advance!:o :o :o
"Defeat everyone" - just rename it to "Killem all." It doesn't require scripts; it works as is. But when this task is completed, it triggers an autowin.

As for the script for the hut... Let's try now.

Name the hut "hut" (script name), and the quest "sobj" (script name). The quest is "visit the hut." Then the following code will work:

SetObjectEnabled('hut', false);

function sobjend(hero);
if hero== --script name of your hero-- then
SetObjectiveState('sobj', OBJECTIVE_COMPLETED);
end;
Trigger(OBJECT_TOUCH_TRIGGER, 'hut', nil);
end;
Trigger(OBJECT_TOUCH_TRIGGER, 'hut', 'sobjend', nil);

Statistics

Welcome our newest member: Фёдор Фёдорович