ey
I want to help change the units. I must have done so when I take a man to hew stones then attack the stone back, so working man loses any energy or any other kind of lose something on the ... so it becomes a little difficult to game ... : D
want to make it in xml.filen I must do it on if it is feasible
I think this is what he means:
"I want help modifying a unit. I want to change it so when a worker gathers stone and then takes the stone back, he loses energy or something, so it makes it harder."
In the XML file of the unit, near the top you will see something like this:
<max-ep value="0"/>
You want to change that to something like this (change the numbers to whatever you like):
<max-ep value="1000" regeneration="10"/>
This will give him some energy points that you can deplete when he moves or harvests stone or does other things.
If I understand you, you only want him to lose energy when walking with a load. Is this correct? If so, you want to look for this block of code:
<skill>
<type value="move"/>
<name value="move_loaded_skill"/>
<ep-cost value="0"/>
<speed value="190"/>
<anim-speed value="100"/>
<animation path="models/worker_walking_loaded.g3d"/>
<sound enabled="false"/>
</skill>
Where it says ep-cost value="0", change that 0 to a positive number. The greater the number, the faster he will tire out when walking with a heavy load. You can also do this for the "move_loaded_wood_skill" if you want him to tire out when carrying wood. You can even use a different number, so he tires out really fast when carrying gold and stone, but he can keep carrying wood for a longer time. It all depends on what numbers you use for the max-ep value (how much energy he has), max-ep regeneration (how fast his energy comes back), and ep-cost value (how much energy he will lose over time when doing a certain action). You can do this for other skills as well, such as harvesting, moving, building, repairing, and attacking.