Event#159 Sevastopol Structural Repair Bonus

Post bug reports and ask for game support here.

Moderator: Vic

Post Reply
User avatar
LiquidSky
Posts: 2811
Joined: Tue Jun 24, 2008 4:28 am

Event#159 Sevastopol Structural Repair Bonus

Post by 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.
“My logisticians are a humorless lot … they know if my campaign fails, they are the first ones I will slay.” – Alexander the Great
User avatar
Vic
Posts: 9715
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Event#159 Sevastopol Structural Repair Bonus

Post by Vic »

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
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Post Reply

Return to “Tech Support”