Event#159 Sevastopol Structural Repair Bonus (Full Version)

All Forums >> [New Releases from Matrix Games] >> Decisive Campaigns: Case Blue >> Tech Support



Message


LiquidSky -> Event#159 Sevastopol Structural Repair Bonus (9/26/2012 12:50:25 AM)

0) CHECK: CheckTurn == Gameslot_SovietsRegime(#5)
1) CHECK: Gameslot_Scenario Type (1=camp, 2=small)(#400) == 1
2) CHECK: CheckHexOwner(20, 82) == Gameslot_SovietsRegime(#5)
3) CHECK: Gameslot_Sevastopol Conquered(#74) < 1
4) EXECUTE: ExecDoStructuralDamage(20, 82, -250)
5) END CHECK
6) END CHECK
7) CHECK: TempVar1 != 1
8) SETVAR: Gameslot_Sevastopol Conquered(#74) = 1
9) END CHECK
10) END CHECK
11) END CHECK


I decided to put a line in here for Sevastopol to receive a small amount of supplies so that it can never reach zero...and it wasnt working.

Then I noticed line 7. It checks for a variable that doesnt exist in this event. Which will probably be equal to the TempVar1 in the previous event, or zero...either way, its undefined, and probably doesnt equal 1.

Which means it will set Sevastopol to conquered...and no longer give it the bonus.




Vic -> RE: Event#159 Sevastopol Structural Repair Bonus (9/26/2012 9:24:18 AM)


quote:

ORIGINAL: LiquidSky

0) CHECK: CheckTurn == Gameslot_SovietsRegime(#5)
1) CHECK: Gameslot_Scenario Type (1=camp, 2=small)(#400) == 1
2) CHECK: CheckHexOwner(20, 82) == Gameslot_SovietsRegime(#5)
3) CHECK: Gameslot_Sevastopol Conquered(#74) < 1
4) EXECUTE: ExecDoStructuralDamage(20, 82, -250)
5) END CHECK
6) END CHECK
7) CHECK: TempVar1 != 1
8) SETVAR: Gameslot_Sevastopol Conquered(#74) = 1
9) END CHECK
10) END CHECK
11) END CHECK


I decided to put a line in here for Sevastopol to receive a small amount of supplies so that it can never reach zero...and it wasnt working.

Then I noticed line 7. It checks for a variable that doesnt exist in this event. Which will probably be equal to the TempVar1 in the previous event, or zero...either way, its undefined, and probably doesnt equal 1.

Which means it will set Sevastopol to conquered...and no longer give it the bonus.


What can i say?

Your right.

Thanks for showing me this mistake.

Putting it on the list for v1.04.

best,
Vic




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0078125