Matrix Games Forums

New Fronts are opening up for Commander: The Great WarCharacters of World War 1Sign of for the Pike and Shot Beta!More Games are Coming to Steam! Deal of the Week: Combat Command Return to the Moon on October 31st! Commander: The Great War iPad Wallpapers Generals of the Great WarDeal of the Week Panzer CorpsNew Strategy Titles Join the Family
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: 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: 874
Joined: 6/24/2008
Status: offline
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's the sense of sending $2 million missiles to hit a $10 tent that's empty?

— President George W. Bush, Oval Office meeting, 13 September 2001.
Post #: 1
RE: Event#159 Sevastopol Structural Repair Bonus - 9/26/2012 9:24:18 AM   
Vic


Posts: 3632
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


_____________________________

Victor Reijkersz Designs
www.vrdesigns.nl

(in reply to LiquidSky)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> 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.055