Question about defense tags.

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
ChaosRider
Posts: 846
Joined: April 15th, 2012, 1:15 pm

Question about defense tags.

Post by ChaosRider »

Is there any way to create ability which is changing value of adjected units defense? I've moved part of code of resistance tags to code with defense tags but it doesnt work.

I called it heavy stance (+25% res, -10% defense for own and adjected units) - Im just curious :P I know that I can put defense terrain value in to object/effect and change unit terrain defense value.
Creator of WOTG (+2880 units), MWC (+615 units), SurvivorsArea, RandomColosseum, RC WOTG, RC MWC, ColosseumRandomClonesBattle, BetweenDarknessAndLight, StealingWeapons, MoreUnitsForms, MoreDamageTypes, CanBeOnlyOne, ColosseumOneWinner, BonusSpam, CriticalStrike - available at 1.12 Wesnoth server.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Question about defense tags.

Post by zookeeper »

No, currently the only way to do that is to do it through [chance_to_hit] weapon specials (which isn't possible in every situation, or at least is very awkward).
Post Reply