---City---
function Great_Lord (heroname)
if GetObjectOwner(heroname) == 1 then
QuestionBox("City", "City_combat", "City_no_combat");
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "City", nil);
end;
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "City", "Great_Lord");
-----
function City_combat (heroname)
StartCombat(NECROMANT, GREAT_LORD, 4, 42, 4, 40, 8, 38, 16, 36, 30, nil, nil, nil);
end;
---
function City_no_combat (heroname)
sleep(5);
end;
I have a quest on my map: to capture a city. When you approach the city, a message should appear: do you want to fight the city's owner (in this case, the QuestionBox script should work, where "City" is the text asking "Do you want to fight the city's owner," and the rest, "City_combat," "City_no_combat," are functions that should be executed). NECROMANT = "Giovanni," GREAT_LORD = "Aberrar." "City" is a region; when entering it, QuestionBox should be triggered. I don't understand what the problem is. Maybe I wrote something wrong in the last two QuestionBox functions.
Весьма хороший попутчик... До первого перекрестка.