Closed saildeep closed 7 years ago
i work on a "buy zone" action at the tent.
i forced to use this formula :
_price = (UnitsInZone x 100 x ZoneSize) /(time past since on_zone_enter is triggerd)
if a zone is bought the remaining Units will be deleted.
The time value will guarantee that the action get functional and will not be abused.
in the case that i am to stupid for advance math i decided to take the advice from Fezward.
the Zone is only purchasable if 20 percent of the Units + vehicles left.
so the formula then is something like that:
if (20percent) then{ _price = (leftUnits1000 + leftVehicles10000)/(time past since on_zone_enter is triggerd) }
which give out a nice low but accurate price. (between 1000 and 500 for a small zone if 10 percent left)
Please open a new ticket for this. I think it should not depend on the time passes as this may force the player to wait for no reason. I think counting the units for the zone price may be sufficient.
the price could be exponentially to the number of living units
new issue for buy zone function
A Common Problem is, that the AI leaves the zone range and is not locatable by the player. To prevent this, all AI units leaving a Zone should be displayed on the Map with a marker. The biggest problem here is, keeping the impact on performance low.