hmmm. well first, i dont think you can affect a stack of creatures on the map. the only way you can increase the numbers of creatures is be using the AddObjectCreatures command, which means the Pit Lords have to be in an object, such as a garrison.grindcardoso wrote:Gurizada ("hey guys" in portuguese),
Another question for the experts in mapmaking:
On the map I have three bridges, and a stack of Pit Lords hidden somewhere, I want to fortify the bridges also with Pit Lords, but trick are two:
1) The bridge keepers must have the same amount of creatures of the hidden Pit Lord;
2) By the day 2 and 4 of each week I want to increase the number of the hidden Pit Lord (plus 1 each two days);
Can anyone help me?
Many thanks!
so you would have to put garrisons between the bridges.
you will need to give each garrison an ID name in the properties, such as garrison1
then you would set up a variable.
var1 = 0;
then using the NewDayTrigger have var1 = var1 +1 so that var1 increases in value each day that passes.
then you would have a check,
if var1 = 2 then, if var1 == 4, if var1 == 9 then, ect.
AddObjectCreatures(garrison1, 26, 1);
end;
this would add one pitlord to garrison1 on day 2, 4, ect.
so it would look like
var1 = 0;
function newday();
var1 = var1 + 1;
if var1 == 2 then
AddObjectCreatures(garrison1, 26, 1);
end;
if var1 == 4 then
AddObjectCreatures(garrison1, 26, 1);
end;
if var1 == 9 then --- this is the second day of the second week
ect. you would add a line for each second and fourth day of however many weeks you want the event to happen.
Trigger (NEW_DAY_TRIGGER, "newday" );
this should work...maybe someone has a better idea....im not sure what you mean by secret pitlords, but im guessing the only reason you want them is to increase the number of pitlords gaurding the bridges, which the above script does.