Hello guys,
i am creating a multiplayer map (2x2)and when i have tried to make a scripts with "script area" those ones kills every scripts before after in the lua files and there is no script in the game. I dont know if trouble is just in the lua scripts or i have had done some shit in Mapeditor bzm file.
There are two variants: first for the players 0,1,2,3 and the second for unit id................... both variants do the same thing.
function BonusG1()
or ( GetNUnitsInArea(0, "flag1") > 1)
or ( GetNUnitsInArea(0, "flag2") > 1)
or ( GetNUnitsInArea(0, "flag3") > 1) then
num = RandomInt(22) + 5000;
LandReinforcement(num);
Suicide();
end;
end;
or
function BonusG1()
or ( GetNScriptUnitsInArea(3000, "flag1") > 1)
or ( GetNScriptUnitsInArea(3000, "flag2") > 1)
or ( GetNScriptUnitsInArea(3000, "flag3") > 1) then
num = RandomInt(22) + 5000;
LandReinforcement(num);
Suicide();
end;
end;
Here is a whole archive
http://www.filefactory.com/file/b3f57fa/n/002.zip
Many thanks
Martin
Отредактировано SoundeluxCZ (2010-10-15 12:48:12)