Author Topic: a "dont attack" option  (Read 1019 times)

Zoythrus

  • Guest
a "dont attack" option
« on: 18 December 2010, 22:56:33 »
i had this idea, a way to tell a unit not to attack another kind of unit. eg. a sniper has no effect on buildings and tanks, he will not be able to attack them.

how do we do this? i think it should be in the main mod's XML in the multipliers. if the multiplier is 0, then that attack type will not even try to hurt that armor type.

it would look like this:
    <damage-multiplier attack="snipe" armor="metal" value="0"/>

any attack that is a "snipe" will not attack anything with "metal" armor.

Gabbe

  • Guest
Re: a "dont attack" option
« Reply #1 on: 18 December 2010, 23:35:01 »
"hold stand" command?

or wait, that would be attack everything but DO NOT MOVE UNDER ANY CIRCUMSTANCES!

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: a "dont attack" option
« Reply #2 on: 19 December 2010, 08:24:31 »
Agreed. It puzzled me in the past, in Military's development, why it doesn't do this already.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Zoythrus

  • Guest
Re: a "dont attack" option
« Reply #3 on: 19 December 2010, 17:39:05 »
i was talking to silnarm, and he says that when he fully implements tags, this will be one of the first features on his list that uses them.

he also says that a multiplier of 0 will prevent any damage to that armor type (as of right now, all attacks do at least 1 damage)

 

anything