Jump to content


Photo

farms with low incomes and another question


  • Please log in to reply
3 replies to this topic

#1 vegetassj2345

vegetassj2345
  • Members
  • 201 posts

Posted 05 January 2013 - 09:47 AM

I reduced the radius of the farms so now i can build a lot of farms, but even at level 3 i gain just 3 of resources! why? is there a way to increase the production of resources of the farms?

I asked before how to teach the ai to attack two player ut i think that this is not a good idea, but i'm thinking another things, if me and my friend are playing with two different enemies..it would be great if one enemy attacks me and the other attacks him! is there a way to do that? Normally even if we fight against 6 brutals all the brutals attack or me or him.

#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 05 January 2013 - 11:22 AM

Well if you reduced the radius correctly and made sure that when placing the farms you get 100% of the resources you should get more than just 3 resources.
What code did you change?

For the AI questions, scripting in a map would do this, im currently not aware of any other method..
Ridder Geel

#3 vegetassj2345

vegetassj2345
  • Members
  • 201 posts

Posted 05 January 2013 - 11:47 AM

Posted ImageGourbish, on 15 November 2012 - 11:57 PM, said:


As to changing the radius of the resource builder, you have to go into the resource-builder code and find this:


Behavior = TerrainResourceBehavior ModuleTag_NewMoney
Radius = SH_GENERIC_RESOURCE_GATHERER_RADIUS
MaxIncome = SH_GENERIC_RESOURCE_GATHERER_MONEY_AMOUNT
IncomeInterval = SH_GENERIC_RESOURCE_GATHERER_MONEY_TIME

Upgrade = Upgrade_MarketplaceUpgradeGrandHarvest
UpgradeBonusPercent = SH_GONDOR_GRANDHARVEST_PRODUCTION_INCREASE %
UpgradeMustBePresent = ANY +GondorMarketPlace
End

Here, I've replaced the gathering radius (the amount of space on the map that each resource-builder takes up) with my own value; I've done the same with the money amount and how much time the money takes to spawn. Every single resource builder in my mod (on good and evil sides) uses these values. To change the radius to make it smaller (the default value is 300, I think), just knock the number down to 150 or even 100. Both you and the AI will be able to put down more.







So i knocked the number to 50 i think, i did just this.

Can you tell me also which scripts should i modify to teach to the (for example) two brutal ai to attack me and my freind separately (one ai attack me and the other my friend)


In the worldbuilder i see a script named attack priority but idont know how to use it, also...is this the script i need?

Edited by vegetassj2345, 05 January 2013 - 12:17 PM.


#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 05 January 2013 - 12:39 PM

No.. the thing is with these ai changes you want, you would have to create a whole lot of new scripts, so i advise trying to script the ai to make units move to a waypoint first, if that works, then try to make the ai send units to an area if there are units from the enemy team in that area, then build up from there... There is no "one way" to approach this. It could be done in various ways with scripts, but it's a whole lot of work to do, and i sadly don't have the time to "hold your hand" through the entire process, so you will need to figure out how to script most of this yourself.
Start by opening a map and giving an AI player a script that makes him walk to an waypoint or something. Let me know if you run into problems there, look in the worldbuilder forum for information on scripting.
Good luck :)
----------
As for the farms, which is the thing that this topic you made is about...
Try making the radius a bit bigger and see if that solves this odd really low amount of cash income. The AI only builds on the farminterface structures placed in each map with worldbuilder, so changing the radius DOES NOT make them build more farms, if you want the easy way out over here you would have to increase the amount of money each farm gives and keep the radius as it was. The other way would be to change each map accordingly...
Ridder Geel




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users