17
« on: February 08, 2021, 02:20:46 pm »
why doesnt this work?ive tried many variations,none do anything
im trying to remove the engine added stats and use my own
this is available commands i read(is this wrong?)
#statPrevious - original stats before mission (read only)
#statChange - stats change from exp (read only)
#soldier.Stats - current stats of geoscape soldier, if you change it it will permanently change stats of soldier
#unit.Stats - stats of battle soldier, changed by armor. Only affect current battle.
#unit.Exp - exp grain during battle (read only)
and this is what i have so far
#arbitrary value
#unit.Exp.getTimeUnits changeTimeUnits;
#statChange.getTimeUnits changeTimeUnits;
statPrevious.getTimeUnits prevTimeUnits;
soldier.Stats.getTimeUnits origTimeUnits;
sub origTimeUnits prevTimeUnits;
soldier.Stats.getTimeUnits currTimeUnits;
#battle_game.randomRange value valueMin valueMax;
sub currTimeUnits origTimeUnits; #remove engine added
#add origTimeUnits value; #add 1-3 to old stat
soldier.Stats.setTimeUnits currTimeUnits; #overwrite stat +1-3