Auto-translated
Take a look in the file archive and the manuals. I think you'll find something there.
New here? I'm Roha — want a quick tour?
I couldn't find anything about quests, but thanks anyway.
Added after 19 hours and 13 minutes
Okay, since I couldn't find a manual, maybe someone knows how to create a quest using scripts. A specific hero must reach a specific area; there is no reward; the main thing is the quest itself. And also, if scripts can only be written in map properties, then why are there script tabs in cities and other objects?
Can anyone tell me the IDs for the perks: Cursed Land and Elemental Balance? I've been searching for ages and can't find them.
Hello! I've started working with 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 doesn't work for some reason. Why?
function kamillaF()
if HasArtefact("Arantir", 30) then
MessageBox(GetMapDataPath().."NAME.txt")
ChangeHeroStat("Arantir", STAT_EXPERIENCE, 12000)
Trigger(OBJECT_TOUCH_TRIGGER, "kamilla", nil)
else
MessageBox(GetMapDataPath().."HELLO.txt")
end
end
Trigger(OBJECT_TOUCH_TRIGGER, "kamilla", "kamillaF")
Isn't it necessary then?