coworotel 307 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 post Share on other sites
borg- 569 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 post Share on other sites
coworotel 307 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 post Share on other sites
wowgetoffyourcellphone 6.211 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 post Share on other sites
Lion.Kanzen 4.685 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 post Share on other sites
wowgetoffyourcellphone 6.211 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> 2 Quote Link to post Share on other sites
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.