Skip to content
User Avatar
#694
Auto-translated
It says OBJECTIVE_COMPLETED in the code! It doesn't work for me, no matter what I try! I don't know why!
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);


Added 8 minutes later
And to complete the quest after defeating a hero, choose 'DEFEAT_HERO' in the type.
I chose it, but it doesn't work. :mad: :mad:
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:

Statistics

Welcome our newest member: leyu