Posts from Scripts
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 needs to reach a specific area; there's no reward, the quest is the main thing. And also, if scripts can only be written in map properties, then what's the point of having the script tab in cities and other objects?
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?
2) These scripts are called in case of a battle with (or against) a given object. (example: the last mission of the last campaign of the original game.)
__________________________________
nginx/0.8.54
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.
Elemental Balance - HERO_SKILL_ELEMENTAL_BALANCE (KNIGHT_FEAT_ELEMENTAL_BALANCE = 84)
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Added 3 minutes later
Oh, never mind, you don't need to write "artifact" there; it will just result in "ANGEL_WINGS".
Поиграем :smile13:
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")
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Поиграем :smile13:
Isn't it necessary then?
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4