Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Event#159 Sevastopol Structural Repair Bonus

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Decisive Campaigns Series >> Decisive Campaigns: Case Blue >> Tech Support >> Event#159 Sevastopol Structural Repair Bonus Page: [1]
Login
Message << Older Topic   Newer Topic >>
Event#159 Sevastopol Structural Repair Bonus - 9/26/2012 12:50:25 AM   
LiquidSky


Posts: 2184
Joined: 6/24/2008
Status: online
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
Post #: 1
RE: Event#159 Sevastopol Structural Repair Bonus - 9/26/2012 9:24:18 AM   
Vic


Posts: 5104
Joined: 5/17/2004
Status: offline

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


_____________________________

Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Decisive Campaigns and Advanced Tactics


(in reply to LiquidSky)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Decisive Campaigns Series >> Decisive Campaigns: Case Blue >> Tech Support >> Event#159 Sevastopol Structural Repair Bonus Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.086