Jump to content

Farmlands implemented


Recommended Posts

With hack I have implement farmlands. (y) Before I reveal how, can anyone give idea of how it could have been done with current code and no extra programing? :)

I would suppose you added an aura with 0 radius on the texture?

Link to comment
Share on other sites

I would suppose you added an aura with 0 radius on the texture?

Basically, can use gaia objects that give grain gather bonus aura to "enemies" who are, you guess it, all the players. This works as advertise, but is a hack and is not as good as the real proposal in ticket I linked because you have to add them into each map where you want the farmland, where if the real proposal is added all the designer need to do is paint the texture.

<?xml version="1.0" encoding="utf-8"?><Entity>  <Auras>    <Farmland>      <Type>range</Type>      <Radius>60</Radius>      <Affects>Gatherer</Affects>	  <AffectedPlayers>Enemy</AffectedPlayers>      <Modifications>        <ResourceGatherer.Rates.food..grain>		  <Multiply>1.25</Multiply>		</ResourceGatherer.Rates.food..grain>      </Modifications>      <AuraName>"Farmland" Aura</AuraName>      <AuraDescription>Gatherers +25% Food Gather Rate within 60 meters. This is a hack to create "Farmlands" in the game.</AuraDescription>    </Farmland>  </Auras>  <Footprint>    <Square width="60" depth="60"/>    <Height>9.0</Height>  </Footprint>  <Ownership/>  <Position>    <Altitude>0</Altitude>    <Anchor>upright</Anchor>    <Floating>true</Floating>    <TurnRate>6.0</TurnRate>  </Position>  <Selectable>    <EditorOnly/>	<Overlay>      <AlwaysVisible/>	  <Texture>        <MainTexture>auras/test/1024x1024_aura.png</MainTexture>        <MainTextureMask>auras/test/1024x1024_aura_mask.png</MainTextureMask>      </Texture>    </Overlay>  </Selectable>  <VisualActor>    <SilhouetteDisplay>false</SilhouetteDisplay>    <SilhouetteOccluder>true</SilhouetteOccluder>    <Actor>props/special/common/marker_object_char_a.xml</Actor>    <VisibleInAtlasOnly>true</VisibleInAtlasOnly>  </VisualActor></Entity>

I do not like it as permanent solution, but it works very good for a hack and mod.

kc2AWDX.jpg

Edited by wowgetoffyourcellphone
  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...