Grugnas Posted August 31, 2017 Report Share Posted August 31, 2017 Like the title says: is it possible to modify affected units by a technology through another researched technology? What i have in mind isn't a technology required to unlock another technology but a technology reduired to unlock another affected unit by a previously researched technology: e.g: I want all the previously researched and the next new researched techs affecting defense tower technologies to affect also siege towers. Quote Link to comment Share on other sites More sharing options...
leper Posted August 31, 2017 Report Share Posted August 31, 2017 No. See the TechModifications wiki page for a list of all possible things a technology can change. Modifying technologies or entity lists (that can e.g. be built) is both confusing to users and creates a lot of possibilities for hard to detect bugs and increases the complexity of the whole code. What you could do (which is a workaround if you consider modifying technologies something important) would be to provide autoresearch technologies that require both the defense tower tech they mimic (for siege towers) and the siege tower tech. That should have the exact same effect, without having to modify technologies. It does however increase the amount of technology files you have to create and maintain (since a change in the defense tower tech also requires you to update the siege tower tech). 1 1 Quote Link to comment Share on other sites More sharing options...
niektb Posted August 31, 2017 Report Share Posted August 31, 2017 offtopic: why are all these questions asked in the tutorials & guides subforum? Quote Link to comment Share on other sites More sharing options...
Grugnas Posted August 31, 2017 Author Report Share Posted August 31, 2017 (edited) I noticed that most of the questions are gathered here thus I just joined the crowd. Edited August 31, 2017 by Grugnas Quote Link to comment Share on other sites More sharing options...
Grugnas Posted August 31, 2017 Author Report Share Posted August 31, 2017 4 hours ago, leper said: Modifying technologies or entity lists (that can e.g. be built) is both confusing to users and creates a lot of possibilities for hard to detect bugs and increases the complexity of the whole code. What you could do (which is a workaround if you consider modifying technologies something important) would be to provide autoresearch technologies that require both the defense tower tech they mimic (for siege towers) and the siege tower tech. That should have the exact same effect, without having to modify technologies. It does however increase the amount of technology files you have to create and maintain (since a change in the defense tower tech also requires you to update the siege tower tech). Thanks for you advice, I did it. I have one more question: as long as researched technologies applies to units templates ( f.e. already trained mace champions, spartan champions, mercenaries get the technologies effects ) is this "rule" valid also for structures entities? I was trying to have more Seleucid fortresses entities have different reserached technologies in order to let some fortresses train roman army units and other which train traditional army, but I fear I should abandon the idea. Quote Link to comment Share on other sites More sharing options...
leper Posted August 31, 2017 Report Share Posted August 31, 2017 (Maybe someone should move all the topics that are neither guides nor tutorials out of this forum.) Researched technologies apply to entities (or templates). That part of the code knows of no difference between units and structures (or other categories you might want to think about), as is true for most of the rest of the code. I'm not quite sure what you are asking, but if you want two (or anything that is greater than 1) entities with different available things you will need different templates for those. I guess you could either provide two different fortresses in the builder list, or provide only one that makes use of the upgrade component to change into the other (or into one of the specialized two). 1 Quote Link to comment Share on other sites More sharing options...
Grugnas Posted August 31, 2017 Author Report Share Posted August 31, 2017 37 minutes ago, leper said: I'm not quite sure what you are asking, but if you want two (or anything that is greater than 1) entities with different available things you will need different templates for those. I guess you could either provide two different fortresses in the builder list, or provide only one that makes use of the upgrade component to change into the other (or into one of the specialized two). The intent was to have the same fortress template but fortress entities able to train different units through a technologies pair researchable every time a new fortress entity is placed, but using upgrades would certainly work. 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.