Added 3 hours 55 minutes ago
And if possible, I'll ask one last question, again, about "what's wrong here?":
Trigger(OBJECT_TOUCH_TRIGGER, 'providez', 'providezF');
SetObjectEnabled('providez', false)
function providezF(Itil)
MessageBox(path.."xizina.txt");
AddHeroSpells("Itil", 40);
Trigger(OBJECT_TOUCH_TRIGGER, 'providez', nil);
end;
The idea is that when a hero approaches the seer's hut, a certain message appears, and he receives the "Phantom Power" spell. The message appears, but the spell does not.