Many and many different units can have different type of attacks. However, almost of types can't attack buildings or some of other armored units. Ex : Infantries can't shoot down buildings or any armored vehicle (such as tank, apc,...) ;
Archers or sword units can't attack stone buildings (castle) but can capture buildings after a time interval ... (While no moveable units are available)
Attack specific surfaces ? Not enough. My idea is...Use tags to limit unit-attacking !
Normally, all unit types are allowed to attack any other unit (On specific surface). But my fun question : "Only an archer can collapse the castle !
) Right ?
In attack skill, add something which can tell the unit shouldn't attack the unit which can't be attacked. In bad situations (
), the unit can attack cause very-very low damage. (
Ex : If this label name "tag-exceptions".
[...]Capturing : When no moveable unit are available at enemy base, the capture buildings process will be performed in background.
<tag value="strong_building" />
<tag value="[...]" />
Higher units will higher chance to win. When any enemy come in, the process will be paused.
The units can still stand together until the enemy base to be captured and waiting for strangers... (Sorry... favorite enemies
). Or use catapults, airships ,behemoths... to quickly destroy buildings.
"Capture" information includes speed and range (optional). (My default are 100.00 and 5 (range))
And "tags" can still be used for capture-info, too.
What do you think ?