Double dragon victory conditions
-
@Master:
No joy I wonder, does editing the .tri file affect in progress save files?
Ok. I run some tests here. Saved files didnât work.
But I started a new double dragon campaing and the #2 Event has been triggered. So I guess you found the problem luke777. -
Thank you luke777, sasah320 and Master Yoda for your efforts trying to solve this ongoing issue.
-
The way I see it is the 2 conditions #IF_CONTROLLED 6 A 260 404 694 428 492 1074 and #IF_CONTROLLED 2 A 260 404 694 428 interfere with each other if some objectives belong to one team and the rest to the other team. The 2 teams are allied but separate and there will be no objective ownership transfer between the two teams. All this will prevent the event from being executed. Possible solution would be to base the conditions on team 5 only.
-
Try this, there were 2 #ENDIF in the wrong position
#IF_EVENT_PLAYED 16
#ELSE
#IF_CONTROLLED 6 A 260 404 694 428 492 1074
#PLAY_MOVIE 124
#PLAY_MOVIE 125
#DO_EVENT 16
#END_GAME 16
#ELSE
#IF_CAMPAIGN_DAY G 9
#IF_FORCE_RATIO G 5 6 L 100
#IF_CONTROLLED 2 A 260 404 694 428
#CHANGE_RELATIONS 6 2 1
#PLAY_MOVIE 120
#PLAY_MOVIE 123
#DO_EVENT 16
#END_GAME 16
#ENDIF
#ENDIF
#ENDIF
#ENDIF
#ENDIFThis is an interesting look behind the scenes of campaign outcomes. For me, what makes this hard to read as pieces of logic is the role of the first two lines. In contrast, the later condition in line 3 IF_CONTROLLED ⌠then âplay movies, do/raise an event, end the gameâ is quite clear, it can be read and understood/followed. But what is the logic of the two first lines, especially the ELSE immediately following the first line?
-
Those 2 lines can be removed together with an #endif at the bottom, they have no reason to be there
-
I see. Also, if this is from the \Data\Campaign\save3.tri file, the TOTAL_EVENTS count is set at 22, that should only be 16 since there are no events higher than that, right? Dunno if that makes any difference, but seems inconsistent.
-
It does not
-
Fix for save3.tri Double Dragon. 87th flying DD and found problem with winning. #IF_BORDOM_HOURS [hours] is only âTRUEâ after 10 days. Blocks winning. #IF_CONTROLLED 2 A 260 404 694 428 ; the 2 is for ROK only not Allies, does not include USA or DPRK. #IF_FORCE_RATIO G 5 6 L 100 unrealistic. If the DPRK is 10 times larger than the Chinese why join the ROK?
This code was tested. Changes start at event #16:
//
// Base event file
//
// :::::::::::::::::::::::::::::::::::::::::;
//
// #TOTAL_EVENTS is a required entry, and
// should be # of events we have triggers for
// and code fore
// KCK WARNING: KEEP THIS UPDATED!
//
#TOTAL_EVENTS 22
//
// :::::::::::::::::::::::::::::::::::::::::;
//
// #SET_EVENT will set the activated flag for any
// events we want to be initially activate
// ie: Seoul already should be marked as
// captured in the Pusan parameter scenario
//
// This marks the Combined NATO and DPRK forces as initially on the defensive
#SET_EVENT 2
// This sets the initial tempo
#SET_TEMPO 150
#ENDINIT
//
// :::::::::::::::::::::::::::::::::::::::::;
//
// Now come the individual triggers
//
// Event #1
// Combined NATO and DPRK forces go on offensive
//
#IF_EVENT_PLAYED 2
#IF_ON_OFFENSIVE 2
#IF_ON_OFFENSIVE 6
#PLAY_MOVIE 106
#DO_EVENT 1
#SHIFT_INITIATIVE 5 2 100
#SHIFT_INITIATIVE 5 6 100
#RESET_EVENT 2
#ENDIF
#ENDIF
#ENDIF
//
// Event #2
// Combined NATO and DPRK forces go on defensive
//
#IF_EVENT_PLAYED 1
#IF_ON_OFFENSIVE 5
#PLAY_MOVIE 107
#DO_EVENT 2
#SHIFT_INITIATIVE 2 5 100
#SHIFT_INITIATIVE 6 5 100
#RESET_EVENT 1
#ENDIF
#ENDIF
//
// Event #3
// Russia joins the war as an ally of China if Chongjin and Tan-tung arecontrolled by
// Combined NATO and DPRK forces in less than 8 campaign days.
//
#IF_EVENT_PLAYED 3
#ELSE
#IF_CAMPAIGN_DAY L 7
#IF_CONTROLLED 2 A 492 1074
#CHANGE_RELATIONS 4 5 1
#PLAY_MOVIE 109
#DO_EVENT 3
#ENDIF
#ENDIF
#ENDIF
//
// Event #4
// China is to strong and DPRK joins the Combined NATO force
//
#IF_EVENT_PLAYED 4
#ELSE
#IF_CONTROLLED 5 A 235 246 253 260 392 401 404 424
#CHANGE_RELATIONS 6 2 1
#PLAY_MOVIE 126
#DO_EVENT 4
#DO_EVENT 19
#ENDIF
#ENDIF
//
// Event #5
// Initial strategy of China
//
#IF_EVENT_PLAYED 5
#ELSE
#IF_CONTROLLED 5 A 260 404 694 428 492 1074
#IF_CONTROLLED 2 A 234
#SET_PAK_PRIORITY 5 260 50
#SET_PAK_PRIORITY 5 404 75
#SET_PAK_PRIORITY 5 235 50
#SET_PAK_PRIORITY 5 428 25
#SET_PAK_PRIORITY 5 492 25
#SET_PAK_PRIORITY 5 2663 25
#SET_PAK_PRIORITY 5 234 100
#SET_TEMPO 255
#RESET_EVENT 8
#RESET_EVENT 9
#DO_EVENT 5
#ENDIF
#ENDIF
#ENDIF
//
// Event #6
// Initial strategy of Combined NATO forces
//
#IF_EVENT_PLAYED 6
#ELSE
#IF_CONTROLLED 5 A 260 404 694 428 492 1074
#IF_CONTROLLED 2 A 234
#SET_PAK_PRIORITY 2 260 100
#SET_PAK_PRIORITY 2 404 75
#SET_PAK_PRIORITY 2 235 50
#SET_PAK_PRIORITY 2 428 50
#SET_PAK_PRIORITY 2 492 25
#SET_PAK_PRIORITY 2 2663 25
#SET_PAK_PRIORITY 2 234 25
#SET_TEMPO 255
#RESET_EVENT 8
#RESET_EVENT 9
#DO_EVENT 6
#ENDIF
#ENDIF
#ENDIF
//
// Event #7
// Initial strategy of DPRK forces
//
#IF_EVENT_PLAYED 7
#ELSE
#IF_CONTROLLED 5 A 260 404 694 428 492 1074
#IF_CONTROLLED 2 A 234
#SET_PAK_PRIORITY 6 260 100
#SET_PAK_PRIORITY 6 404 75
#SET_PAK_PRIORITY 6 235 50
#SET_PAK_PRIORITY 6 428 25
#SET_PAK_PRIORITY 6 492 50
#SET_PAK_PRIORITY 6 2663 25
#SET_PAK_PRIORITY 6 234 25
#SET_TEMPO 255
#RESET_EVENT 8
#RESET_EVENT 9
#DO_EVENT 7
#ENDIF
#ENDIF
#ENDIF
//
// Event #8
// Combined NATO and DPRK forces are heading North
//
#IF_EVENT_PLAYED 8
#ELSE
#IF_CONTROLLED 2 234 404 694 428
#SET_PAK_PRIORITY 2 260 50
#SET_PAK_PRIORITY 2 404 50
#SET_PAK_PRIORITY 2 235 25
#SET_PAK_PRIORITY 2 428 25
#SET_PAK_PRIORITY 2 492 75
#SET_PAK_PRIORITY 2 2663 100
#SET_PAK_PRIORITY 2 234 25
#SET_PAK_PRIORITY 5 260 100
#SET_PAK_PRIORITY 5 404 75
#SET_PAK_PRIORITY 5 235 25
#SET_PAK_PRIORITY 5 428 25
#SET_PAK_PRIORITY 5 492 50
#SET_PAK_PRIORITY 5 2663 50
#SET_PAK_PRIORITY 5 234 25
#SET_PAK_PRIORITY 6 260 50
#SET_PAK_PRIORITY 6 404 50
#SET_PAK_PRIORITY 6 235 25
#SET_PAK_PRIORITY 6 428 25
#SET_PAK_PRIORITY 6 492 75
#SET_PAK_PRIORITY 6 2663 100
#SET_PAK_PRIORITY 6 234 25
#SET_TEMPO 255
#RESET_EVENT 5
#RESET_EVENT 6
#RESET_EVENT 7
#RESET_EVENT 9
#DO_EVENT 8
#ENDIF
#ENDIF
//
// Event #9
// China is heading South
//
#IF_EVENT_PLAYED 9
#ELSE
#IF_CONTROLLED 5 A 260 492 1074
#IF_CONTROLLED 2 A 234 404
#IF_CONTROLLED 2 O 694 428
#SET_PAK_PRIORITY 5 260 50
#SET_PAK_PRIORITY 5 404 50
#SET_PAK_PRIORITY 5 235 75
#SET_PAK_PRIORITY 5 428 100
#SET_PAK_PRIORITY 5 492 25
#SET_PAK_PRIORITY 5 2663 25
#SET_PAK_PRIORITY 5 234 25
#SET_PAK_PRIORITY 2 260 75
#SET_PAK_PRIORITY 2 404 100
#SET_PAK_PRIORITY 2 235 50
#SET_PAK_PRIORITY 2 428 25
#SET_PAK_PRIORITY 2 492 50
#SET_PAK_PRIORITY 2 2663 25
#SET_PAK_PRIORITY 2 234 25
#SET_PAK_PRIORITY 6 260 75
#SET_PAK_PRIORITY 6 404 100
#SET_PAK_PRIORITY 6 235 50
#SET_PAK_PRIORITY 6 428 25
#SET_PAK_PRIORITY 6 492 50
#SET_PAK_PRIORITY 6 2663 25
#SET_PAK_PRIORITY 6 234 25
#SET_TEMPO 255
#RESET_EVENT 5
#RESET_EVENT 6
#RESET_EVENT 7
#RESET_EVENT 8
#DO_EVENT 9
#ENDIF
#ENDIF
#ENDIF
#ENDIF
//
// Event #13
// China win if Pâyongyang, Kaesong, Koksan and either Changyon or Wonsan arecontrolled
// in less than 15 campaign days and PRC maintains 1:1 force ratio.
//
#IF_EVENT_PLAYED 13
#ELSE
#IF_CAMPAIGN_DAY L 14
#IF_FORCE_RATIO G 5 2 G 10
#IF_CONTROLLED 5 A 260 234 694
#IF_CONTROLLED 5 O 428 404
#CHANGE_RELATIONS 5 6 1
#PLAY_MOVIE 121
#PLAY_MOVIE 122
#DO_EVENT 13
#END_GAME 13
#ENDIF
#ENDIF
#ENDIF
#ENDIF
#ENDIF
//
// Event #14
// Stalemate - A new demarcation line will be set.
//
#IF_BORDOM_HOURS 360
#PLAY_MOVIE 115
#PLAY_MOVIE 122
#DO_EVENT 14
#END_GAME 14
#ENDIF
//
// Event #15
// Timeout - A new demarcation line will be set.
//
#IF_CAMPAIGN_DAY G 15
#PLAY_MOVIE 114
#PLAY_MOVIE 122
#DO_EVENT 15
#END_GAME 15
#ENDIF
//
// Event #s 16 17 18 19 EDITED
// DPRK wins independently
// Only if DPRK forces own Pâyongyang, Wonsan, Koksan, Changyon, Chongjin andTan-tung
// Or
// Combined NATO and DPRK forces win if Pâyongyang, Wonsan, Koksan and Changyonis
// captured in less than 10 campaign days and PRC strength is less than 3/10th
// that of Allies forces. An unified Korea will be formed//DPRK only WIN
#IF_CONTROLLED 6 A 260 404 694 428 492 1074
#PLAY_MOVIE 124
#PLAY_MOVIE 125
#DO_EVENT 16
#END_GAME 16
#ENDIF
#ENDIF//UNITED KOREA - ROK Dominates
#IF_FORCE_RATIO G 2 6 G 10
#IF_FORCE_RATIO G 2 5 G 10
#IF_FORCE_RATIO A 2 5 G 35
#IF_FORCE_RATIO A 2 6 G 35
#CHANGE_RELATIONS 6 2 1
#DO_EVENT 19
#ENDIF
#ENDIF
#ENDIF
#ENDIF//UNITED KOREA WIN
#IF_CONTROLLED 2 O 260 404 694 428
#DO_EVENT 17
#ENDIF
#ELSE
#IF_CONTROLLED 5 O 260 404 694 428
#RESET_EVENT 17
#ENDIF#IF_CONTROLLED 6 O 260 404 694 428
#DO_EVENT 18
#ENDIF
#ELSE
#IF_CONTROLLED 5 O 260 404 694 428
#RESET_EVENT 18
#ENDIF#IF_EVENT_PLAYED 17
#IF_EVENT_PLAYED 19
#IF_CAMPAIGN_DAY L 10
#PLAY_MOVIE 120
#PLAY_MOVIE 123
#DO_EVENT 16
#END_GAME 16
#ENDIF
#ENDIF
#ENDIF// End
#ENDSCRIPT -
<p>For someone who has no idea of coding as I donât understand a thing you guys are talking about: Is it possible to win the DD campaign? Would changing some files help? I have wiped out nearly every PRC unit and captured all required cities - but no win so far.<br />I like the motivational boost, when something comes to an âendâ ;)<br /><br />thx</p>
-
Hate to bring that topic up again - but has anyone finished the Double Dragon campaign yet in BMS 4.36?
4.36 changelog said: Campaigns triggers fixed for: Win, Loose, Timeout, Stalemate
But I havenât been able to win this campaign. Iâm positive I captured all relevant cities and I struck PRC ground forces hard - but no joy. And even removing the remaining battalions via MC didnât get me anywhere.
Am I missing something?
Best regards