Jump to content

I forget- can you add exp to cost of upgrading units?


Emacz
 Share

Recommended Posts

Want to try something new with Merc in Classical Warfare AEA.  I havent tried yet, cause I figuted I would ask before nubbing and creating errors.  Can I write it so the Promotion is includeded in the upgrade?  

 <Upgrade>

    <veteran>

      <Entity>units/athen/merc_inf_archer_market_a</Entity>

      <Tooltip>Rank up to veteran status.</Tooltip>

      <Cost>

        <metal>10</metal>

      </Cost>

      <Variant>upgrading</Variant>

      <Time>10</Time>

    </veteran>

  </Upgrade>

  <Promotion>

    <Entity>units/athen/merc_inf_archer_market_a</Entity>

  </Promotion>

  • Like 1
Link to comment
Share on other sites

1 hour ago, real_tabasco_sauce said:

You want it to promote upon upgrading? Or do you want the user to have the choice of upgrading by spending some metal vs promoting by letting the unit gain xp. If it is the latter, yes this should work.

Once they reach the experienced needed to promote to Advanced, I then want to have them "upgrade" to finish the process. Basically Merc dont recieved techs from forrge/wtf etc... they also dont rank up like regular "CS"  they are gready MFs!  They want more "gold" to fight harder :)

Link to comment
Share on other sites

Oh, for that, I am not sure. One kinda cheesy way u could do it would be to have the unit promote into new template, u could call it  merc_inf_archer_a_pre.xml, which then features the upgrade capability to turn into merc_inf_archer_a.xml

The downside is that the user wouldn't have a greyed out icon before they are able to pay the 10 metal.

  • Like 1
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...