Jump to content

General Modding Help Thread


Perzival12
 Share

Recommended Posts

How exactly do I add bonus damage?

These are the two examples I found:

      <Bonuses>
        <BonusCavMelee>
          <Classes>Cavalry</Classes>
          <Multiplier>2.5</Multiplier>
        </BonusCavMelee>
      </Bonuses>
      <Bonuses>
        <Herocide>
          <Classes>Hero</Classes>
          <Multiplier>1.2</Multiplier>
        </Herocide>
      </Bonuses>

What do "BonusCavMelee" and "Herocide" refer to? Can I write here whatever?

My plan is to add an attack multiplier against Ships, Siege and Structures.

x

And I am seeing above, there is not "structure" class?

Link to comment
Share on other sites

50 minutes ago, DesertRose said:

What do "BonusCavMelee" and "Herocide" refer to? Can I write here whatever?

Pretty sure you can write whatever there, but may cause unexpected behavior with duplications (probably the last loaded template just wins).

50 minutes ago, DesertRose said:

there is not "structure" class?

There is, but it isn't a "VisibleClass" so i understand your confusion.

Edited by Grapjas
  • Thanks 1
Link to comment
Share on other sites

35 minutes ago, Grapjas said:

Pretty sure you can write whatever there, but may cause unexpected behavior with duplications (probably the last loaded template just wins).

Oh, you mean duplications as in using multiple bonuses for the same unit?

Will have to test if e.g. giving a units a 100x multiplier against buildings but a 0.01x multiplier against heroes breaks anything.

Link to comment
Share on other sites

42 minutes ago, DesertRose said:

Oh, you mean duplications as in using multiple bonuses for the same unit?

I meant if the name is the same i'm not sure what happens. Like if you did <BonusCavMelee> on template_unit, but then also on did <BonusCavMelee> on template_unit_infantry. Probably the template_unit_infantry will just "win"- as in those values will be used for that specific bonus- but yeah you need to test. Other than that i don't think theres a limit you need to worry about when applying different bonuses to the same unit.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...