Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5241
Auto-translated
Thank you very much, everything worked out :) Before this, I tried to create a script based on the example from HOMM5_Editor_Practical_Guide_rus, but it seems that the information there is not accurate.

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.