Skip to content
User Avatar
#1592
Auto-translated
Hello! I've started learning about scripts. I want the hero to enter the prophet's hut and receive experience, but only under certain conditions. The condition is that the hero must have a specific artifact. The artifact is the Angel Wings. I'm writing the script: function kamillaF() if HasArtefact("ARANTIR", ARTIFACT_ANGEL_WINGS); then MessageBox("/Maps/SingleMissions/1/NAME.txt"); ChangeHeroStat("ARANTIR", STAT_EXPERIENCE, 12000); Trigger(OBJECT_TOUCH_TRIGGER, "kamilla", nil); else MessageBox("/Maps/SingleMissions/1/HELLO.txt"); end; end; Trigger(OBJECT_TOUCH_TRIGGER, "kamilla", "kamillaF"); The script isn't working for some reason. Why?