Problem with event
Posted: Sun Jan 16, 2011 5:11 pm
Hi
I am having some problems with an event that i cannot understand by reading the code.
The event depicts the Baltic peoples uprising at the start of Barbarossa. During the first four rounds there is a lot of Baltic partisans (friendly to the Axis showing up)-
The thing that i cannot understand is that this event works fine when it comes to human vs human play. But when the AI plays AG Nord the event doesnt produce any partisans anymore.
Any Clues? Feel free to help. Its a check round event.
0) CHECK: CheckRound < 5
1) CHECK: Gameslot_Axis/SU one Regime(#0) == 1
2) LOOPER: TempVar0 FROM 0 TO CheckMapWidth
3) LOOPER: TempVar1 FROM 0 TO CheckMapHeight
4) CHECK: CheckSlot(TempVar0, TempVar1, 4) == 3
5) CHECK: CheckHexOwner(TempVar0, TempVar1) == 1
6) CHECK: CheckRandomPercent < 25
7) CHECK: CheckRandomPercent < 2
8) EXECUTE: ExecAddUnit(113, TempVar0, TempVar1, 0)
9) EXECUTE: ExecMessage(0, 1, -1, 10)
10) END CHECK
11) END CHECK
12) END CHECK
13) END CHECK
14) END LOOPER
15) END LOOPER
16) END CHECK
17) CHECK: Gameslot_Axis/SU one Regime(#0) < 1
18) LOOPER: TempVar0 FROM 0 TO CheckMapWidth
19) LOOPER: TempVar1 FROM 0 TO CheckMapHeight
20) CHECK: CheckSlot(TempVar0, TempVar1, 4) == 3
21) CHECK: CheckHexOwner(TempVar0, TempVar1) > 7
22) CHECK: CheckHexOwner(TempVar0, TempVar1) < 11
23) CHECK: CheckRandomPercent < 25
24) CHECK: CheckRandomPercent < 2
25) EXECUTE: ExecAddUnit(113, TempVar0, TempVar1, 5)
26) EXECUTE: ExecMessage(5, 8, -1, 10)
27) END CHECK
28) END CHECK
29) END CHECK
30) END CHECK
31) END CHECK
32) END LOOPER
33) END LOOPER
34) END CHECK
35) END CHECK
I am having some problems with an event that i cannot understand by reading the code.
The event depicts the Baltic peoples uprising at the start of Barbarossa. During the first four rounds there is a lot of Baltic partisans (friendly to the Axis showing up)-
The thing that i cannot understand is that this event works fine when it comes to human vs human play. But when the AI plays AG Nord the event doesnt produce any partisans anymore.
Any Clues? Feel free to help. Its a check round event.
0) CHECK: CheckRound < 5
1) CHECK: Gameslot_Axis/SU one Regime(#0) == 1
2) LOOPER: TempVar0 FROM 0 TO CheckMapWidth
3) LOOPER: TempVar1 FROM 0 TO CheckMapHeight
4) CHECK: CheckSlot(TempVar0, TempVar1, 4) == 3
5) CHECK: CheckHexOwner(TempVar0, TempVar1) == 1
6) CHECK: CheckRandomPercent < 25
7) CHECK: CheckRandomPercent < 2
8) EXECUTE: ExecAddUnit(113, TempVar0, TempVar1, 0)
9) EXECUTE: ExecMessage(0, 1, -1, 10)
10) END CHECK
11) END CHECK
12) END CHECK
13) END CHECK
14) END LOOPER
15) END LOOPER
16) END CHECK
17) CHECK: Gameslot_Axis/SU one Regime(#0) < 1
18) LOOPER: TempVar0 FROM 0 TO CheckMapWidth
19) LOOPER: TempVar1 FROM 0 TO CheckMapHeight
20) CHECK: CheckSlot(TempVar0, TempVar1, 4) == 3
21) CHECK: CheckHexOwner(TempVar0, TempVar1) > 7
22) CHECK: CheckHexOwner(TempVar0, TempVar1) < 11
23) CHECK: CheckRandomPercent < 25
24) CHECK: CheckRandomPercent < 2
25) EXECUTE: ExecAddUnit(113, TempVar0, TempVar1, 5)
26) EXECUTE: ExecMessage(5, 8, -1, 10)
27) END CHECK
28) END CHECK
29) END CHECK
30) END CHECK
31) END CHECK
32) END LOOPER
33) END LOOPER
34) END CHECK
35) END CHECK