SFT received/given by event has 0 AP

Post bug reports and ask for tech support here. Post any Community Site Requests here as well.

Moderator: Vic

Post Reply
User avatar
gingerbread
Posts: 3079
Joined: Thu Jan 04, 2007 1:25 am
Location: Sweden

SFT received/given by event has 0 AP

Post by gingerbread »

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?
Post Reply

Return to “Advanced Tactics Support”