Solved Double Dragon Win Conditions
-
I think this is too heavy and not utilizing the most of the trigger capacity:
#IF_NOT_EVENT_PLAYED 17 #IF_CONTROLLED 6 AND 260 404 694 428 492 1074 #PLAY_MOVIE 124 #PLAY_MOVIE 125 #CHANGE_RELATIONS 6 2 3 #DO_EVENT 17 #END_GAME 17 #DO_MONOLOG DPRK wins independently -> END GAME #ELSE #IF_CAMPAIGN_DAY < 10 #IF_FORCE_RATIO GND 5 6 <= 100 #IF_NOT_CONTROLLED 5 OR 260 404 694 428 #PLAY_MOVIE 120 #PLAY_MOVIE 123 #CHANGE_RELATIONS 6 2 1 #DO_EVENT 17 #END_GAME 17 #DO_MONOLOG Combined NATO and DPRK forces win -> END GAME #ENDIF #ENDIF #ENDIF #ENDIF #ENDIF
-
-
@MaxWaldorf - Much more elegant solution, I wasn’t aware of all the trigger actions so thank you! Just a question however - should that be an OR or an AND condition? Not sure how the trigger operators work but we want to make sure the team 5 doesn’t control ANY of those not just any one of those.
Is there a list of trigger actions / capabilities to be found somewhere?
-
Any of #IF_NOT_CONTROLLED 5 OR 260 404 694 428 All of #IF_NOT_CONTROLLED 5 AND 260 404 694 428
There’s list on old forum , probably transferred … but need to search… something "essence of tri " or something like that
Cheers
-
@white_fang said in Double Dragon Win Conditions:
Any of #IF_NOT_CONTROLLED 5 OR 260 404 694 428 All of #IF_NOT_CONTROLLED 5 AND 260 404 694 428
There’s list on old forum , probably transferred … but need to search… something "essence of tri " or something like that
Cheers
For KTO I would think these are all squared away by now, yes? We shouldn’t have to be messing with these at this point…
-
-
@Icer said in Double Dragon Win Conditions:
For KTO I would think these are all squared away by now, yes? We shouldn’t have to be messing with these at this point…
I have big doubts about that. I had to change the Tiger Spirit .tri file as well.
-
@CheckPoint said in Double Dragon Win Conditions:
@Icer said in Double Dragon Win Conditions:
For KTO I would think these are all squared away by now, yes? We shouldn’t have to be messing with these at this point…
I have big doubts about that. I had to change the Tiger Spirit .tri file as well.
That would be sad for all the new people coming on board if true…
-
@CheckPoint
yep , that’s it. but some aren’t used anymore… at least in BMS.
This old list is more “general” Falcon4 TRI.
eh Demer… -
@white_fang @MaxWaldorf
Still something wrong in the trigger file for that campaign (even in 4.37.2) but I think I figured it out. I think there is something wrong with the #IF_CAMPAIGN_DAY check. Using Mission Commander I set up a scenario where ALLIED forces should win (controlling 260 404 694 428, Day 2 of campaign, and have totally decimated PRC forces)) and then opened the campaign in BMS and but failed to get expected win condition.I systematically started commenting out various conditions in the trigger file until I narrowed it down to the #IF_CAMPAIGN_DAY < 10 line. If I commented out that line and its corresponding ENDIF I would get the win. Looking through the rest of the trigger file I could see that command being used in other spots however, in all other cases it was used with either a <= or >= but never just < on its own.
So I changed it to be #IF_CAMPAIGN_DAY <= 10 and now I get the win condition. Is it possible there is something wrong with how that comparison works?
Looking through all the other stock trigger files, I don’t find any other instances where #IF_CAMPAIGN_DAY is used without the = as part of the comparison. Given that, and the fact that DD is a relative new campaign (4.34?) is it possible no one has really run into this until now.
I think the correct code should be:
#IF_NOT_EVENT_PLAYED 17 #IF_CONTROLLED 6 AND 260 404 694 428 492 1074 #PLAY_MOVIE 124 #PLAY_MOVIE 125 #CHANGE_RELATIONS 6 2 3 #DO_EVENT 17 #END_GAME 17 #DO_MONOLOG DPRK wins independently -> END GAME #ELSE // this next line contains the change, just added the "=" #IF_CAMPAIGN_DAY <= 10 #IF_FORCE_RATIO GND 5 6 <= 100 #IF_NOT_CONTROLLED 5 OR 260 404 694 428 #PLAY_MOVIE 120 #PLAY_MOVIE 123 #CHANGE_RELATIONS 6 2 1 #DO_EVENT 17 #END_GAME 17 #DO_MONOLOG Combined NATO and DPRK forces win -> END GAME #ENDIF #ENDIF #ENDIF #ENDIF #ENDIF
-
@Zeus
Hmm… good point. Need testing this more of course, but maybe you discovered a bug.
Previously, old Falcon, even BMS since 4.35? , => and <= were actually letter driven… eg#IF_CAMPAIGN_DAY L 10 / #IF_CAMPAIGN_DAY G 10
So… MAYBE , just less then “<” doesn’t work (good) , it must be less or equal “<=”.
As said, need to test it , easy enough… otoh, … using <= instead only < , not a big problem, imho… just knowing about itCheers
-
@Zeus said in Double Dragon Win Conditions:
So I changed it to be #IF_CAMPAIGN_DAY <= 10
Hi all and BMS Team,
Sorry to bump up this post but I don’t know if it will be corrected in 4.37.4. The tri file is still wrong in 4.37.3 hotfix 2.
and the tri file must be :
#IF_CAMPAIGN_DAY <= 10 #IF_FORCE_RATIO GND 5 6 <= 1 (instead of 100)
So, if it’is not corrected, this info is important for all the persons that want to play this campaign and win it.
-
@ericfa2a fixed