Skip to content

Current questions and answers regarding the map editor.

User Avatar
#3645
Auto-translated
RedHeavenHero
1) I didn't understand. The script name applies to the hut itself, while the quest name applies to the quest.
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 IsInitialyActive and IsInitialyVisible parameters should be false.

And the animations are:
normal state, death, close-range attack, joy, taking a hit, shooting, spellcasting, special ability, panic (what creatures do in battle when you hover the cursor over them).
1) I meant the quest name (or something like that). Anyway, I circled what I meant in the screenshot.
2) I didn't understand the part about "CreateMonster("monster_name", monster_type, number_of_creatures, x, y, floor, mood, courage, rotation_angle, height)".
3) Thank you.
Attachments 1
1 file attached • Total size: 253.7 KB

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."