Skip to content

Posts from The task was completed immediately. Auto-translated

No ratings yet — be the first to rate!
#1
Auto-translated
I created a task using the Map Properties Tree. The idea is to enter the mage's hut, and that's it; the quest should be completed. In the Kind tab, I selected the ...CAPTURE_OBJECT option. This is probably not what I need, as this object cannot be captured, but I couldn't find anything more suitable. What are some possible solutions? P.S. MageEye is the script name for the Mage's Hut.
Attachments 1
1 file attached • Total size: 4.3 KB
#2
Auto-translated
I solved the problem as follows: I chose the MANUAL task type and added the following to the scripts:

function questME()
SetObjectiveState("mag", OBJECTIVE_COMPLETED);
end;

Trigger(OBJECT_TOUCH_TRIGGER, "MageEye", "questME");
User Avatar
#3
Auto-translated
Narhiz, according to best practices, it's better to also disable the trigger when it's no longer needed. That is, after SetObjectiveState, add:
Trigger(OBJECT_TOUCH_TRIGGER, "MageEye", nil);

And I would advise you to ask questions in one of the pinned topics:
Current questions and answers about the map editor
Scripts
And it's better to create separate topics for global and discussion-based questions.
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо
In reply to Jack_of_shadows
#4
Auto-translated
Jack_of_shadows
Narhiz, it's best to also disable the trigger when it's no longer needed. That is, after SetObjectiveState, add
Trigger(OBJECT_TOUCH_TRIGGER, "MageEye", nil);

And I would advise you to ask questions in one of the pinned topics:
Current questions and answers about the map editor
Scripts
And it's better to create separate topics for global and discussion-based questions.

I'll keep that in mind, thank you. I've only been here for a couple of days.