Matrix Games Forums

Hell is Approaching Deal of the Week Battle Academy Battle Academy 2 Out now!Legions of Steel ready for betaBattle Academy 2 gets trailers and Steam page!Deal of the Week Germany at WarSlitherine Group acquires Shenandoah StudioNew information and screenshots for Pike & ShotDeal of the Week Pride of NationsTo End All Wars Releasing on Steam!
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: 875
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: 3654
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.063