SetObjectEnabled("gloria", nil);
function gloriaF(heroname)
if HasArtefact("RedHeavenHero04", 58) = true then
MessageBox(GetMapDataPath().."gloriaF.txt");
ChangeHeroStat("RedHeavenHero04", STAT_EXPERIENCE, 8000);
Trigger(OBJECT_TOUCH_TRIGGER, "gloria", nil);
else MessageBox(GetMapDataPath().."gloria1F.txt");
end;
end;
Trigger(OBJECT_TOUCH_TRIGGER, "gloria", "gloriaF");
Although, it probably won't work. Could you provide a complete description of the quest with the scripts? I also have constant problems with if statements. I don't know how to deal with them.
Весьма хороший попутчик... До первого перекрестка.