@
Mondor I don't know what a "station stock" is. Is it one of these?
Do you want to add separate trees or increase the current number by 20%? If you want to increase the number, all you need to do is play around with a few lines until you get what you want. They are these lines:
rmSetAreaSize
rmSetAreaForestDensity
rmSetAreaForestClumpiness
For example, to increase the size of the forests in the central area, you could do the following:
Code: Select all
rmSetAreaSize(forest, rmAreaTilesToFraction(100), rmAreaTilesToFraction(100));
//replace the above line with: rmSetAreaSize(forest, rmAreaTilesToFraction(200), rmAreaTilesToFraction(200));
to place moose you will do this and play around with the numbers until it is what you want: (I'd suggest placing this directly after the bison)
Code: Select all
int mooseGroup1=rmCreateObjectDef("the moose stuff");
rmAddObjectDefItem(mooseGroup1, "moose", rmRandInt(3,4), 8.0); // creates between 3 and 4 moose in each group, spaced with a value of 8 (small)
rmSetObjectDefMinDistance(mooseGroup1, 0.0);
rmSetObjectDefMaxDistance(mooseGroup1, rmXFractionToMeters(0.5));
rmAddObjectDefConstraint(mooseGroup1, avoidBison); //tells them to stay away from bison. if you want to make this distance smaller copy the constraint called avoidBison, rename it, and make the value smaller and replace this line with the new constraint. Keep the other constraints the same until you understand them better.
rmAddObjectDefConstraint(mooseGroup1, avoidAll);
rmAddObjectDefConstraint(mooseGroup1, avoidImpassableLand);
rmAddObjectDefConstraint(mooseGroup1, avoidTradeRoute);
rmAddObjectDefConstraint(mooseGroup1, avoidSocket);
rmAddObjectDefConstraint(mooseGroup1, avoidStartingUnits);
rmAddObjectDefConstraint(mooseGroup1, avoidNuggetSmall);
rmSetObjectDefCreateHerd(mooseGroup1, true);
rmPlaceObjectDefAtLoc(mooseGroup1, 0, 0.5, 0.5, cNumberNonGaiaPlayers*3);//tries to place 3 herds per player, but will stop placing them if there is nowhere for them to fit in because of the constraints.
an easy way (but not guaranteed to be balanced) to change the mines on this map would be to add a small chance to place two mines instead of one when doing so:
Code: Select all
rmAddObjectDefItem(silverID, "mine", 1, 0.0);
//replace the above line with the following
if(silverType <= 3){ //can change this number to be lower to make it happen less frequently, make it larger for more often. silverType is a number generated earlier in this same loop.
rmAddObjectDefItem(silverID, "mine", 2, 12.0);
}else{
rmAddObjectDefItem(silverID, "mine", 1, 0.0);
}