Skip to content
User Avatar
#1047
Auto-translated
Can you tell me if the script is written correctly? ``` function Fight(heroname) if heroname == 'Ish' then if HasArtefact(Fight, ARTIFACT_HELM_OF_ENLIGHTENMENT) then SetObjectPosition('rav', 105, 74, floor = -1); Trigger(REGION_ENTER_AND_STOP_TRIGGER, 'art', nil); end; end; end; Trigger(REGION_ENTER_AND_STOP_TRIGGER, 'art', 'Fight'); ``` I need it so that when a hero enters a specific area and has the Helm of Enlightenment in their inventory, the enemy is moved.