Posts from Scripts
That's not what I meant.
Example: Lich Week. The spawn rate of liches, archliches, and greater liches is doubled.
At the same time, the aforementioned creatures spawn on the map. How can I prevent them from spawning?
Then it's better to disable monster weeks in the map tree (set the value to true for MoonCalendarModifications\BlockMonstersWeeks).
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"
Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
Certainly (see "The Tale of Igor's Campaign").
SetObjectOwner('Town',0);
It's strange, my editor gave an error for PLAYER_0...
However, I couldn't find anything for a hero. I noticed the function IsHeroAlive. How can I make it so that if IsHeroAlive('Eruina') is true, the heroine will die?
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"
Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
1. So that when entering peasant huts, a message appears (like in the first mission for Gothia).
2. So that the player can clear debris blocking resources, preferably only for the human player, and the AI cannot do this (like in mission 4 for Aranthir).
How do you create such scripts:
1. So that when entering peasant dwellings, a message appears (like in the first mission for Gothia).
2. So that the player can clear debris for resources, preferably only for the human player, and the AI cannot do this (like in mission 4 for Arantir).
2. What do you mean by "debris"?
function dopF()
prog = 1
MessageBox(GetMapDataPath().."text10.txt");
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "wayF", nil);
sleep(5)
SetObjectiveState('obj_dop', OBJECTIVE_ACTIVE);
SetObjectiveVisible('obj_dop', true, PLAYER_1);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "wayF", "dopF");
end;
function dop1()
if prog == 1 then
MessageBox(GetMapDataPath().."text11.txt");
elseif prog == 2 then
SetObjectiveState("obj_dop", OBJECTIVE_COMPLETED);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "way1", nil);
AddHeroCreatures("hero", 64, 30);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "way1", "dop1");
function fenixF()
prog = prog + 1
Trigger(OBJECT_TOUCH_TRIGGER, "fenix", nil);
Trigger(OBJECT_TOUCH_TRIGGER, "fenix", "fenixF");
end;
end;
prog = 1
sleep (5)
prog = prog +1
Also, something seems strange with the "end" statements. After the dop1 function, there isn't one, but after fenixF, there are two.
Added 1 minute ago
I experimented with the placement of the functions... but it didn't help.
Trigger(OBJECT_TOUCH_TRIGGER, "fenix", nil );
Trigger(OBJECT_TOUCH_TRIGGER, "fenix", "fenixF" );