murphstein -> Debugging Events (6/17/2013 7:54:59 PM)
|
I understand this is jumping into the deep end of the pool... I'm trying to fix an event problem in Autumn Fog 44 (WWII - West Front), mostly as a learning exercise. The designer's intention was pretty clear: - Starting on T52, the German player gets 11 TOs to send 11 Pzr formations to the Eastern Front - If the German player doesn't withdraw formations, he is penalized 10VPs per formation per turn - Once a formation is withdrawn, the 10VP/turn penalty for that formation stops being assessed The problem I'm trying to fix is that the penalties start in the same turn as the TOs become active. This means that the German player gets dinged for 110VPs on T52 (before the TOs can be exercised) and again on T53 (because the units seem to get withdrawn after the penalty events kick in). I thought this would be a simple fix: edit the TO events to trigger on T50 and leave the penalty events set to trigger on T52. No joy. Here's the event sequence for one formation, dumped from the AF44 scenario: Event: 867, 1. SS Pz LSAH not withdrawn, Allies +10VP. Trigger turn: 52 (PM, January 10th, 1945). Effect: Victory 1+ (Allies). Value: 10. Event: 868, 1. Pz LSAH is sent to the East Front. Trigger: Event activated. Effect: News only. Trigger Event 868 (1. SS Pz LSAH is sent to the East Front.). Event: 869, [no news] Trigger: Event activated. Effect: Cancel event. Trigger Event 868 (1. SS Pz LSAH is sent to the East Front.). Affected Event 870 (). Event: 870, [no news] Trigger: Event activated. Effect: Enable event. Delay: 1. Trigger Event 867 (1. SS Pz LSAH not withdrawn, Allies +10VP.). Affected Event 867 (1. SS Pz LSAH not withdrawn, Allies +10VP.). Event: 871, Withdraw 1. SSPz LSAH Trigger turn: 52 (PM, January 10th, 1945). Effect: Theater Option 2 (867). Clearly I'm missing something important about how the event engine processes these instructions. The actual unit withdrawal events are all triggered by 868, in this case. If someone wants to point me to a post describing all this in detail (yes, I am a programmer), cool. dpm
|
|
|
|