farms with low incomes and another question
Posted 05 January 2013 - 09:47 AM
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.
Posted 05 January 2013 - 11:22 AM
What code did you change?
For the AI questions, scripting in a map would do this, im currently not aware of any other method..
Posted 05 January 2013 - 11:47 AM
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
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.
Posted 05 January 2013 - 12:39 PM
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.
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...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users