Skip to content
#71
Auto-translated
this script doesn't work((:
function reg1()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg1","reg1F");
MessageBox("/Maps/dialog.txt");
end;
function reg2()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg2","reg2F");
MessageBox("/Maps/griffin.txt");
end;
function reg3()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg3","reg3F");
MessageBox("/Maps/ghost.txt");
end;

please tell me what I wrote wrong... I already came up with a plot and I need a message to appear in these regions

Added 3 minutes ago
when I press "chek" (check for errors), it tells me:
function reg1 not defined, line 1
function reg2 not defined, line 5
function reg3 not defined, line 9

if anything, reg1, reg2, reg3 are regions

Added 56 minutes ago
and also this script:
function build()
if HasArtefact("Isabell", ID_runa);
then MessageBox("/Maps/runa.txt");
ChangeHeroStat("Isabell", STAT_EXPERIENCE, 12000);
Trigger(OBJECT_TOUCH_TRIGGER, "build", nil);
else MessageBox("/Maps/runa1.txt");
end;
end;

here:
build - function name
runa - ID of the artifact
Isabell - script name of the hero
something is wrong:confused: but what:confused:

Statistics

Welcome our newest member: Фёдор Фёдорович