I am a little confused. I know a little bit about coding, like changing values and such, but I had trouble understanding how to edit this one. I just want it so that my soldiers are only wounded for a maximum of 5 days and fatigued for a maximum of 24 hours. Can you tell me how to edit this so i don't end up breaking the code and crashing the game. Thank you
Sure thing, let's tackle the fatigue first. You have a couple of options to achieve that depending on what you want to do: For regular soldiers you want to look at the following: ALIAS= bSoldierFatigue: <%b 48> <- This 48 is the value you want to change, this is currently set at 48 hours. ALIAS= bRandomSoldierFatigue: <%b 48> <- Same here and so on
The first one is the minimum time that a solider will be fatigued the second is a randomly chosen extra amount of time that they would be fatigued for. So for example you could set the first to 24 for 24 hours and the second to 0. That way a regular solider will always be fatigued for 24 hours. Or you could swap them, set the first to 0 and the second to 24 so a solider will be fatigued anywhere from not at all to 24 hours. This is the same with the next ones for mec soliders: ALIAS= bMecFatigue: <%b 52> ALIAS= bRandomMecFatigue: <%b 48>
Captains have their own addition per rank they have gone up. If you want them not to be effected by it you can set this one to 0: ALIAS= bOfficerFatigue: <%b 12>
And lastly for each crit wound a solider gets that also adds to their fatigue time here: ALIAS= bCritFatigue: <%b 24>
(You can search for these in the text and it will take you straight to them)
For wounding it's a bit more difficult because there is no way (like with fatigue) to set a firm value, the value that your soliders are injured are depending on the amount of research Xcom has done and the health they have lost. The best way for you is to decrease these two values until you find something you like: ALIAS = bScalerInjuryTime: <%u 1320> ALIAS = bRandInjuryTime: <%u 2745>
that helps a lot, thank you. As i said, im pretty good at changing values in code, but sometimes if you change the wrong thing or cause a conflict, it can crash or corrupt the game.
4 comments
For regular soldiers you want to look at the following:
ALIAS= bSoldierFatigue: <%b 48> <- This 48 is the value you want to change, this is currently set at 48 hours.
ALIAS= bRandomSoldierFatigue: <%b 48> <- Same here and so on
The first one is the minimum time that a solider will be fatigued the second is a randomly chosen extra amount of time that they would be fatigued for. So for example you could set the first to 24 for 24 hours and the second to 0. That way a regular solider will always be fatigued for 24 hours. Or you could swap them, set the first to 0 and the second to 24 so a solider will be fatigued anywhere from not at all to 24 hours. This is the same with the next ones for mec soliders:
ALIAS= bMecFatigue: <%b 52>
ALIAS= bRandomMecFatigue: <%b 48>
Captains have their own addition per rank they have gone up. If you want them not to be effected by it you can set this one to 0:
ALIAS= bOfficerFatigue: <%b 12>
And lastly for each crit wound a solider gets that also adds to their fatigue time here:
ALIAS= bCritFatigue: <%b 24>
(You can search for these in the text and it will take you straight to them)
For wounding it's a bit more difficult because there is no way (like with fatigue) to set a firm value, the value that your soliders are injured are depending on the amount of research Xcom has done and the health they have lost. The best way for you is to decrease these two values until you find something you like:
ALIAS = bScalerInjuryTime: <%u 1320>
ALIAS = bRandInjuryTime: <%u 2745>
Hope that helps.