SFT received/given by event has 0 AP
Posted: Thu Aug 28, 2014 12:29 pm
This is from the Enhanced Officers Mod by Lancer:
(Event 153)
...
47) CHECK: TempVar7 > 0
48) ' Beans and Bullets========================================
49) ' Add trucks in proportion to power rating of regime
50) SETVAR: TempVar8 = CheckPowerPointsInArea(0, 0, TempVar800, 1)
51) SETVAR: TempVar8 / Gameslot_Truck_Conversion_factor(#55)
52) LOOPER: TempVar9 FROM 0 TO TempVar8
53) EXECUTE: ExecUnitGiveTroops(TempVar6, 29)
54) END LOOPER
...
The purpose of this (partial) event is to add trucks to the Supreme HQ in proportion to the size of the regimes forces or power rating. It does this by determining a regime's power rating, dividing this rating by a conversion factor to calculate the number of trucks that should be added. The trucks are then added to the Sup HQ by way of adding one instance of unit #29 a number of times equal to what was calculated.
Unit #29 is 1 truck and everything works OK, except that the trucks in the HQ has 0 AP when turn 1 starts.
Is there a way to set the AP of the trucks to 100 before the turn starts?
(Event 153)
...
47) CHECK: TempVar7 > 0
48) ' Beans and Bullets========================================
49) ' Add trucks in proportion to power rating of regime
50) SETVAR: TempVar8 = CheckPowerPointsInArea(0, 0, TempVar800, 1)
51) SETVAR: TempVar8 / Gameslot_Truck_Conversion_factor(#55)
52) LOOPER: TempVar9 FROM 0 TO TempVar8
53) EXECUTE: ExecUnitGiveTroops(TempVar6, 29)
54) END LOOPER
...
The purpose of this (partial) event is to add trucks to the Supreme HQ in proportion to the size of the regimes forces or power rating. It does this by determining a regime's power rating, dividing this rating by a conversion factor to calculate the number of trucks that should be added. The trucks are then added to the Sup HQ by way of adding one instance of unit #29 a number of times equal to what was calculated.
Unit #29 is 1 truck and everything works OK, except that the trucks in the HQ has 0 AP when turn 1 starts.
Is there a way to set the AP of the trucks to 100 before the turn starts?