Skip to content
User Avatar
#73
Auto-translated
okay..... and here's another one: and here's another question: I need the hero to enter the hut if he has a specific artifact; if he does, the hero gains experience, and if not, a message appears apologizing that the required artifact was not found. Here's what I wrote: ``` function buildF () if HasArtefact ("Isabell",ID_86); then MessageBox ("/Maps/SingleMissions/Let's go!/runa.txt"); ChangeHeroStat ("Isabell", STAT_EXPERIENCE, 12000); Trigger(OBJECT_TOUCH_TRIGGER, "build", nil ); else MessageBox ("/Maps/SingleMissions/Let's go!/runa1.txt"); end; end; Trigger(OBJECT_TOUCH_TRIGGER, "build", "buildF"); ``` What's wrong, because it's not working.






Statistics

Welcome our newest member: leyu