Jump to content

Two upgrades for the same template


coworotel
 Share

Recommended Posts

Hi people. Is it possible to add two upgrades for a building (tower in this case)? I tried the following:

  <Upgrade>
    <Tower>
      <Entity>structures/{civ}_stone_tower</Entity>
      <Tooltip></Tooltip>
      <Cost>
        <wood>50</wood>
        <stone>50</stone>
      </Cost>
      <Time>10</Time>
    </Tower>
  </Upgrade>
  <Upgrade>
    <Tower>
      <Entity>structures/{civ}_wooden_tower</Entity>
      <Tooltip></Tooltip>
      <Cost>
        <wood>50</wood>
        <stone>50</stone>
      </Cost>
      <Time>10</Time>
    </Tower>
</Upgrade>

I didn't work, only one appears. Am I doing something wrong? :huh:

Link to comment
Share on other sites

Try change names to tower1 and tower2. 

<Upgrade>
    <Tower1>
      <Entity>structures/{civ}_stone_tower</Entity>
      <Tooltip></Tooltip>
      <Cost>
        <wood>50</wood>
        <stone>50</stone>
      </Cost>
      <Time>10</Time>
    </Tower1>
  </Upgrade>
  <Upgrade>
    <Tower2>
      <Entity>structures/{civ}_wooden_tower</Entity>
      <Tooltip></Tooltip>
      <Cost>
        <wood>50</wood>
        <stone>50</stone>
      </Cost>
      <Time>10</Time>
    </Tower2>
</Upgrade>
Edited by borg-
  • Thanks 1
Link to comment
Share on other sites

<Upgrade>
    <Tower1>
      <Entity>structures/{civ}_stone_tower</Entity>
      <Tooltip></Tooltip>
      <Cost>
        <wood>50</wood>
        <stone>50</stone>
      </Cost>
      <Time>10</Time>
    </Tower1>
    <Tower2>
      <Entity>structures/{civ}_wooden_tower</Entity>
      <Tooltip></Tooltip>
      <Cost>
        <wood>50</wood>
        <stone>50</stone>
      </Cost>
      <Time>10</Time>
    </Tower2>
</Upgrade>

 

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