Campaign "endability"
-
Hey guys,
I’m trying to finalize better versions of new (still confidential for now) campaigns I’m working on - I’d like to make them endable, but I’m failing to, either by time or objective. I tweaked the tri file several times and had several attempts, making them very similar to the original tri files by their structure (it’s in the Balkans, for that matter). But the one campaign I mostly work on never ends with blue win, nor with time. Would the event number be important actually? Never thought of that, but could event number X be related to clock end (and that would be set outside of .tri), Y to blue win, Z to red win? Or is it something else I’m missing? Day 8, Blue capture their two objectives, it keeps ticking… (in 16x max)
After all, how does BMS know from the tri file that it’s supposed to be a blue win, a red win, a stalemate, just from an END_GAME command? The video file? It may not be related to my problem, but it’s coming to my mind.
Posting my short tri file here. I have to mention BMS takes account of it, I see PAK priorities changing as I tweak the file.
Thanks for your attention!..
//
// Base event file
//
// Balkans : King of the Hill
//
// :::::::::::::::::::::::::::::::::::::::::;
//
//
#TOTAL_EVENTS 8
#MISSION_DATFILE mission
#FALCON4_AIIFILE FALCON4
#SET_EVENT 3
#SET_TEMPO 200
//
// :::::::::::::::::::::::::::::::::::::::::;
//
//
#ENDINIT
//
// :::::::::::::::::::::::::::::::::::::::::;
//
//
//
//
#IF_EVENT_PLAYED 1
#ELSE
#IF_CONTROLLED 2 O 1974 3572
#SHIFT_INITIATIVE 2 6 50
#DO_EVENT 1
#ENDIF
//
//
#IF_EVENT_PLAYED 2
#ELSE
#IF_CONTROLLED 6 469
#SHIFT_INITIATIVE 6 2 100
#DO_EVENT 2
#ENDIF
//
//
#IF_EVENT_PLAYED 3
#SET_PAK_PRIORITY 6 3798 100
#SET_PAK_PRIORITY 6 3783 100
#SET_PAK_PRIORITY 2 3798 30
#SET_PAK_PRIORITY 2 3783 30
#SET_PAK_PRIORITY 2 2215 30
#ENDIF
//
//
#IF_CONTROLLED 2 A 601
#SET_PAK_PRIORITY 2 3798 100
#SET_PAK_PRIORITY 2 3783 100
#SHIFT_INITIATIVE 6 2 100
#DO_EVENT 4
#ENDIF
//
//
#IF_CONTROLLED 2 A 3783
#SET_PAK_PRIORITY 2 3798 100
#SET_PAK_PRIORITY 2 3783 30
#SHIFT_INITIATIVE 6 2 100
#DO_EVENT 5
#ENDIF
//
//
#IF_CONTROLLED 6 A 338
#PLAY_MOVIE 113
#DO_EVENT 6
#END_GAME 6
#ENDIF
//
//
#IF_CAMPAIGN_DAY G 6
#PLAY_MOVIE 115
#DO_EVENT 7
#END_GAME 7
#ENDIF
// Yeah, but it never stops!
//
#IF_CONTROLLED 2 A 3783 3798
#PLAY_MOVIE 116
#DO_EVENT 8
#END_GAME 8
#ENDIF
// Captured, but never stops!
//
#ENDSCRIPT -
Quick answer to that problem:
If you look carefully at the contents of the .tri file above you’ll notice that the EVENT# numbers listed above jump from EVENT #3 to EVENT #14 through to EVENT #17. There’s a reason for this. EVENT #14 to EVENT #17 define the outcome of the campaign and ensure that wins, losses and stalemate results are recorded correctly in the pilot’s logbook if the campaign criteria are met. They work like this:
EVENT #14 = Enemy Forces Win Criteria
EVENT #15 = Boredom Wins Criteria (Inactivity criteria, if specified. Triggered if nothing’s happening in the campaign)
EVENT #16 = Stalemate Criteria (nobody wins)
EVENT #17 = You Win Criteria -
While your about your secret campaign mission making - could you make the winning or loosing of a camp more obvious - a nice video of a ticker tape parade would be good for winning ;0) and perhaps a video of a dog taking a dump for loosing :0(
You might want to rethink the losers video ???
-
Haha nice thought
It’s not secret, you can find it in my sig ;).
-
Quick answer to that problem:
Are you saying that is the answer to the problem with the above trigger file?? If so, its not the answer.
The trigger file need to be rewrote, its not even calling the events other than 1, 2, and 3.
C9
-
@Cloud:
Are you saying that is the answer to the problem with the above trigger file?? If so, its not the answer.
The trigger file need to be rewrote, its not even calling the events other than 1, 2, and 3.
C9
I’d thank you for being so graceful Cloud 9, but having read (and understood) you before, I’m not certain this one post was a real attempt to help. At the very least, and to me, it brings nothing but confusion =).
Which is certainly a sign of my lack of understanding of these files, sure. But still, nothing else.
Wishing you well =).
-
One “end if” for every “if” is what is noticed missing on 1 , 2, and 3
That and what was already mentioned on
End mission results are depending on specific event# to work.
I only knew this end mission thing recently, that’s why Nordic tri files don’t get a pilot record win if you win campaign. I have wrong event number go the job.
-
One “end if” for every “if” is what is noticed missing on 1 , 2, and 3
That and what was already mentioned on
End mission results are depending on specific event# to work.
I only knew this end mission thing recently, that’s why Nordic tri files don’t get a pilot record win if you win campaign. I have wrong event number go the job.
Thanks Starrats, sorry it got your attention, this piece of file is very old in my state of progression. I added a reply mentioning the endgame commands but the rest doesn’t resemble at all what I have in my current files. Thanks though
EDIT: and by the way, not for 3.