IF_NOT_EVENT_PLAYED need Help
-
Hi Guys,
I using the below script but it doesn works in terms of it goes in loop playing always Movie 108 (a string…). It seems that the DO_EVENT command doesn’t work because the IF condition always goes true.
What i am missing here? Many thanks :bowd:
// Slovenia join NATO
#IF_NOT_EVENT_PLAYED 18
#IF_CONTROLLED 6 A 224
#PLAY_MOVIE 108
#CHANGE_RELATIONS 1 2 1
#DO_EVENT 18
#ENDIF
#ENDIFGundam
-
Hi
If you don’t have a problem, send your complete x.tri file -
No prob. In attach the .tri file. I solved i think changing the event number to two. I don’t know why,.,.
Below…
#TOTAL_EVENTS 6
//
//
//////////////////////////////////////////////////////////////////////////////
#SET_TEMPO 255//////////////////////////////////////////////////////////////////////////////
// Initialization section done
//////////////////////////////////////////////////////////////////////////////
#ENDINIT
// ciclo di controllo per test
//#IF_NOT_EVENT_PLAYED 2
//#PLAY_MOVIE 100
//#DO_EVENT 2
//#ENDIF
//#ENDIF
//////////////////////////////////////////////////////////////////////////////
// Event #1
// Singonella Air base being attacked by FRY forces
//////////////////////////////////////////////////////////////////////////////
#IF_NOT_EVENT_PLAYED 1
#IF_CONTROLLED 6 A 14034
#PLAY_MOVIE 100
#SET_TEMPO 255
#DO_EVENT 1
#ENDIF
#ENDIF
//
// Event #2
// Slovenia join NATO
#IF_NOT_EVENT_PLAYED 2
#IF_CONTROLLED 6 A 224
#PLAY_MOVIE 108
#CHANGE_RELATIONS 1 2 1
#DO_EVENT 2
#ENDIF
#ENDIF
//
// Event #3
// Stalemate
//
#IF_BORDOM_HOURS 480
#PLAY_MOVIE 114
#DO_EVENT 3
#END_GAME 3
#ENDIF
//
// Event #4
// Timeout
//
#IF_CAMPAIGN_DAY G 30
#PLAY_MOVIE 115
#DO_EVENT 4
#END_GAME 4
#ENDIF
//
// Event #5
// Bad guys win
// Basically, did Milazzo and Reggio Calabria fall
//
#IF_CONTROLLED 6 A 224 539
#PLAY_MOVIE 113
#DO_EVENT 5
#END_GAME 5
#ENDIF
//
// Event #6
// We win - hu-rah!
// Basically - We own Palermo and Birgi Airbase
//
#IF_CONTROLLED 2 A 240 510
#PLAY_MOVIE 116
#DO_MONOLOG We own Palermo
#DO_EVENT 6
#END_GAME 6
#ENDIF
////////////////////////////////////////////////////////////////////////////////
// Script done
//////////////////////////////////////////////////////////////////////////////
#ENDSCRIPT -
Probably because there is nothing that defines what 2 is and what 18 is. You can’t use them as if you defined it elsewhere. This is hardcoded, not defined by tri. 6 is not a endgame event for instance.
-
Ok, I see that you did the campaign in a part of Italy, you should compare your x.cam and x.tri file because nothing like this can be established exactly because it is not the original Balkan campaign
-
Hi Dado, Lorik
Thanks for your help. Yes i suppose to use event number without thinking this was hardcoded….i will check again but it seems thea campaign work as described in the tri file. I am not sure i have to check when bad guys win what happen. But when blu force take Palermo and Birgi Airport campaign stop as expected.
-
Part of the trigger file criteria:
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 CriteriaI can’t remember where the thread is or who posted it?
C9
-
-
Hi Lorik, All
thanks for information and thread. Very useful.