coworotel Posted June 3, 2019 Report Share Posted June 3, 2019 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? Quote Link to comment Share on other sites More sharing options...
borg- Posted June 3, 2019 Report Share Posted June 3, 2019 (edited) 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 June 3, 2019 by borg- 1 Quote Link to comment Share on other sites More sharing options...
coworotel Posted June 3, 2019 Author Report Share Posted June 3, 2019 (edited) Thanks borg! That works! Valeu! Edited June 3, 2019 by coworotel 2 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 4, 2019 Report Share Posted June 4, 2019 8 hours ago, coworotel said: Thanks borg! That works! Valeu! You should also put both upgrades wrapped within the same component. So no need to double up on <Upgrade> just use it once. 2 1 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted June 4, 2019 Report Share Posted June 4, 2019 30 minutes ago, wowgetoffyourcellphone said: You should also put both upgrades wrapped within the same component. So no need to double up on <Upgrade> just use it once. how you does that ? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 4, 2019 Report Share Posted June 4, 2019 <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> 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.