![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#8 | |
Subsim Aviator
|
![]() Quote:
you wouldnt need "what if" logic... just "if - then" logic which is widely used in computers in multiple applications "IF: HMS hood not on Roster; THEN: use HMS Rodney. IF: HMS Rodney unavailable; THEN: Use HMS Nelson" in the mission builder you would have a pull down menu on a unit when it is added to the map. the pull down menu would have 10 options Each option would represent a different ship if the primary ship were not available. if #1 is not available, use #2, if #2 is not available then use #3 and so on and so forth until you get to #10 which is "Do Not Script" seems pretty straight forward. the computer looks at a roster and if one of the 10 listed "similar" units is "available" - it uses the available unit. for example if HOOD was to engage BISMARK on XXX Date... and HOOD was not on the roster the computer would look at "option 1: HMS Nelson" if HMS nelson was already committed to another part of the campaign or was already sunk or otherwise removed from the roster it would look at "option 2: HMS Rodney" working its way down the list of BB or heavy cruiser units until finally either selecting one that is available or deciding "no ship available - unit un-scripted" so from there... the computer could easily decide that if none of the 10 secondary ships were available... then it would only be Prince of Wales vs Bismark and Prinz Eugen. if Prince of Wales was also sunk - then Bismark and Prinz Eugen would sail through the denmark strait unmolested
__________________
![]() Last edited by GoldenRivet; 04-23-09 at 10:27 PM. |
|
![]() |
![]() |
|
|