Skip to content
#437
Auto-translated
Free Wanderer
How do you create main and secondary quests in the editor? I tried using the prophet's hut as well. It seems like everything is set up correctly, but I can't assign it to the monster that needs to be killed!:smile04:
Alright, so as I understand it, the quest itself is displayed, but it's not working? When setting up the quest, you need to set the 'kind' property to OBJECTIVE_KIND_DEFEAT_NEUTRALS, and in the 'parameters' property, add the script name of the monster (right-click, Add) (which can be edited in the 'Name' field of the monster).
Free Wanderer
I have another question. In my case, the letter opens after the monster is killed. How do I make it so that the letter appears first, and then the battle or the option to recruit the monster?
This is done through a script. Here's how:
SetObjectEnabled('mon',nil);
function Bat(hero)
MessageBox(GetMapDataPath()..'mes.txt');
MakeHeroIntractWithObject(hero,'mon');
end;
Trigger(OBJECT_TOUCH_TRIGGER,'mon','Bat');
mes.txt -- the text of the message, mon -- the script name of the monster.

Statistics

Welcome our newest member: dodoD0D0

Users Online 0 users 1369 guests

The tavern is quiet... be the first to arrive!