Philip the Swaggerless Posted March 28, 2022 Report Share Posted March 28, 2022 I would like to have PerAlly added to Limit Changers, so that the number of restricted units/structures you can make is limited by the number of allies. I don't have any programming experience other than working on a team bonus mod for some weeks. I've done a little reading about JavaScript. It doesn't seem like it should be hard to get a count of Allies. But I don't really know how to even start when it comes to the component files. <EntityLimits> <Limits> <ArmorerCart>1</ArmorerCart> <CivicCenter>1</CivicCenter> <Pillar>0</Pillar> </Limits> <LimitChangers> <ArmorerCart> <PerAlly>1<PerAlly> //Meaning that the player can make 1 Armorer Cart per ally. </ArmorerCart> </LimitChangers> <LimitRemovers> <CivilCentre> <RequiredTechs datatype="tokens">phase_town</RequiredTechs> </CivilCentre> </LimitRemovers> </EntityLimits> Quote Link to comment Share on other sites More sharing options...
Stan` Posted March 28, 2022 Report Share Posted March 28, 2022 @Freagarach 1 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted March 28, 2022 Report Share Posted March 28, 2022 So you should start at the EntityLimits.js file. First you'll need to adapt the schema (and all the templates that use the schema), next you'll need to modify the function that checks the limits, to look for the mentioned diplomatic relationship between players (Allied, Enemy, Global, perhaps?). To answer your topic title: 13. (And feel free to ask for more specific questions while you dive in. ) 2 Quote Link to comment Share on other sites More sharing options...
Philip the Swaggerless Posted March 28, 2022 Author Report Share Posted March 28, 2022 Okay, I will read about schemas and then look at EntityLimits. 10 hours ago, Freagarach said: To answer your topic title: 13. I suppose all the programmers laughing? I don't get it. 10 hours ago, Freagarach said: And feel free to ask for more specific questions while you dive in. Thanks! Quote Link to comment Share on other sites More sharing options...
Freagarach Posted March 29, 2022 Report Share Posted March 29, 2022 13 hours ago, Philip the Swaggerless said: I suppose all the programmers laughing? I don't get it. Nah, just me. Sorry. I find it hard to answer such questions. 1 Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted March 30, 2022 Report Share Posted March 30, 2022 You can copy the limitation lines from the hero templates to your unit's template. In my opinion, adding a number limit to fire cavalry or mercenary cavalry can resolve some discontent with these units, as the lack of numbers will counteract with their OP stats. Consider heroes for example. Each hero itself is incredibly OP compared to any other unit, but because you only have 1 hero among 200 or 300 other units, the strength of the hero is negligible. 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.