Skip to content
User Avatar
#3646
Auto-translated
^-^Furry^-^
Sorry for asking so many questions; it's just that when I'm making a map, there are times when I can't figure things out on my own.
---------------------------------------------
So:
1) Regarding the scripted name in the prophet's hut. What is the scripted name of?
2) I know this is done with a script, but still...I want to make it so that after a certain amount of time (e.g., 2 years in my case), a demon appears in a specific location (see attachment below), and then you get a quest to kill it. How do I do that?
+ How are animations translated (so I don't get confused): 'idle00', 'death', 'attack00', 'happy', 'hit', 'rangeattack', 'cast', 'specability', 'stir00'?
1) I didn't understand. The prophet's hut has its own scripted name, and there's also the name of the quest itself.
2) You can do it like this:
function NewDay()
if GetDate(MONTH) == 25 and GetDate(WEEK) == 1 and GetDate(DAY_OF_WEEK) == 1 then
CreateMonster("monster_name", monster_type, number_of_creatures, x, y, floor, mood, courage, rotation_angle, height)
SetObjectiveState('quest_name', OBJECTIVE_ACTIVE)
startThread(killDemon)
end
end

function killDemon()
while 1 do
if not IsObjectExists("monster_name") then
SetObjectiveState("quest_name", OBJECTIVE_COMPLETED)
break
end
sleep(10)
end
end

Trigger(NEW_DAY_TRIGGER, "NewDay")
The quest should be OBJECTIVE_KIND_MANUAL, and the parameters IsInitialyActive and IsInitialyVisible should be false.

And the animations are:
idle state, death, melee attack, happiness, taking damage, ranged attack, spellcasting, special ability, agitation (what creatures do in battle when you hover your cursor over them).

Added after 8 minutes
Erythrocytosis
I have a question: is it possible to add new duel characters so that they appear not only in their price category but among all other characters? I tried replacing one with another - it works. But adding a new one doesn't work for some reason. In the PresetMap folder, in the Map file, there are only three heroes per faction.

I tried writing an additional line and creating a corresponding file - it didn't help. There are still only three. There must be another file somewhere with information about the number of possible characters. Please help!:smile45:
Try changing this file: \UI\MPDMLobby\presets.(DuelPresets).xdb.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4

Statistics

Welcome our newest member: leyu