Hello all
I'm looking for how to insert a code on a mission "cold start check list" at the beginning of another mission to insert a "cold start check list"
It's possible?
Code of mission "cold start check list": mission =
{
["trig"] =
{
["actions"] =
{
[1] = "a_out_text_delay(\"Ok! \\\
\\\
Check list de la séquence de démarrage!\\\
\\\
Faites [Espace] quand vous êtes prêt!\", 500);a_set_flag(1);c_start_wait_for_user(2); mission.trig.func[1]=nil;",
[2] = "a_out_text_delay(\"Fermeture des portes?\", 500);a_set_flag(89);a_start_listen_command(71, 88, 1, -1000000, 1000000); mission.trig.func[2]=nil;",
[3] = "a_out_text_delay(\"AC phase volmétre sur AC?\\\
Inverter sur OFF?\", 500);a_set_flag(3); mission.trig.func[3]=nil;",
[4] = "a_out_text_delay(\"Générateur principal sur ON?\\\
DC volmétre sur BUS ESS?\", 500);a_set_flag(4); mission.trig.func[4]=nil;",
[5] = "a_out_text_delay(\"Générateur de démarrage sur START?\\\
Batteries sur ON?\\\
\", 500);a_set_flag(5); mission.trig.func[5]=nil;",
[6] = "a_out_text_delay(\"Commutateur Audio RPM?\", 500);a_set_flag(98); mission.trig.func[6]=nil;",
[7] = "a_out_text_delay(\"Test voyant d'alerte?\", 500);a_set_flag(51); mission.trig.func[7]=nil;",
[8] = "a_out_text_delay(\"Commutateur princiapal carburant sur ON?\\\
Gouverneur sur AUTO?\", 500);a_set_flag(6); mission.trig.func[8]=nil;",
[9] = "a_out_text_delay(\"Hydraulique sur ON?\\\
Compensation sur ON?\\\
Détecteur de particules sur BOTH?\", 500);a_set_flag(7); mission.trig.func[9]=nil;",
[10] = "a_out_text_delay(\"Gaz sur ralenti?\\\
\", 500);a_set_flag(8); mission.trig.func[10]=nil;",
[11] = "a_out_text_delay(\"Commande de démarrage!\\\
\\\
Check gaz!\", 500);a_set_flag(9); mission.trig.func[11]=nil;",
[12] = "a_out_text_delay(\"Ca va secouer un peut!\", 10);a_set_flag(94); mission.trig.func[12]=nil;",
[13] = "a_set_flag(10); mission.trig.func[13]=nil;",
[14] = "a_out_text_delay(\"Ralenti normal!\\\
\\\
Onduleur sur ON MAIN?\", 500);a_set_flag(11); mission.trig.func[14]=nil;",
[15] = "a_out_text_delay(\"Système radio!\\\
\\\
Transpondeur sur STBY?\", 500);a_set_flag(99); mission.trig.func[15]=nil;",
[16] = "a_out_text_delay(\"VHF NAV COMM radio sur ON?\", 500);a_set_flag(12); mission.trig.func[16]=nil;",
[17] = "a_out_text_delay(\"VHF COMM radio sur ON?\", 500);a_set_flag(13); mission.trig.func[17]=nil;",
[18] = "a_out_text_delay(\"UHF radio sur T/R?\", 500);a_set_flag(14); mission.trig.func[18]=nil;",
[19] = "a_out_text_delay(\"Sélecteur Interphone sur 3?\\\
\\\
(VHF sur 3)\\\
(UHF sur 2)\", 500);a_set_flag(15); mission.trig.func[19]=nil;",
[20] = "a_out_text_delay(\"VHF FM sur T/R?\", 500);a_set_flag(16); mission.trig.func[20]=nil;",
[21] = "a_out_text_delay(\"Récepteur ADF sur mode ADF?\", 500);a_set_flag(17); mission.trig.func[21]=nil;",
[22] = "a_out_text_delay(\"Starter générateur sur STBY?\", 500);a_set_flag(18); mission.trig.func[22]=nil;",
[23] = "a_out_text_delay(\"Mise des gaz progressif et check RPM, stabilisation 6600 de RPM et régime rotor sur 324.\", 500);a_set_flag(19); mission.trig.func[23]=nil;",
[24] = "a_set_flag(20); mission.trig.func[24]=nil;",
[25] = "a_out_text_delay(\"TEST alarme Master?\", 500);a_set_flag(95); mission.trig.func[25]=nil;",
[26] = "a_out_text_delay(\"Ajuster régime moteur sur gouverneur du collectif.\", 20);a_set_flag(21); mission.trig.func[26]=nil;",
}, -- end of ["actions"]
["events"] =
{
}, -- end of ["events"]
["custom"] =
{
}, -- end of ["custom"]
["func"] =
{
[1] = "if mission.trig.conditions[1]() then mission.trig.actions[1]() end",
[2] = "if mission.trig.conditions[2]() then mission.trig.actions[2]() end",
[3] = "if mission.trig.conditions[3]() then mission.trig.actions[3]() end",
[4] = "if mission.trig.conditions[4]() then mission.trig.actions[4]() end",
[5] = "if mission.trig.conditions[5]() then mission.trig.actions[5]() end",
[6] = "if mission.trig.conditions[6]() then mission.trig.actions[6]() end",
[7] = "if mission.trig.conditions[7]() then mission.trig.actions[7]() end",
[8] = "if mission.trig.conditions[8]() then mission.trig.actions[8]() end",
[9] = "if mission.trig.conditions[9]() then mission.trig.actions[9]() end",
[10] = "if mission.trig.conditions[10]() then mission.trig.actions[10]() end",
[11] = "if mission.trig.conditions[11]() then mission.trig.actions[11]() end",
[12] = "if mission.trig.conditions[12]() then mission.trig.actions[12]() end",
[13] = "if mission.trig.conditions[13]() then mission.trig.actions[13]() end",
[14] = "if mission.trig.conditions[14]() then mission.trig.actions[14]() end",
[15] = "if mission.trig.conditions[15]() then mission.trig.actions[15]() end",
[16] = "if mission.trig.conditions[16]() then mission.trig.actions[16]() end",
[17] = "if mission.trig.conditions[17]() then mission.trig.actions[17]() end",
[18] = "if mission.trig.conditions[18]() then mission.trig.actions[18]() end",
[19] = "if mission.trig.conditions[19]() then mission.trig.actions[19]() end",
[20] = "if mission.trig.conditions[20]() then mission.trig.actions[20]() end",
[21] = "if mission.trig.conditions[21]() then mission.trig.actions[21]() end",
[22] = "if mission.trig.conditions[22]() then mission.trig.actions[22]() end",
[23] = "if mission.trig.conditions[23]() then mission.trig.actions[23]() end",
[24] = "if mission.trig.conditions[24]() then mission.trig.actions[24]() end",
[25] = "if mission.trig.conditions[25]() then mission.trig.actions[25]() end",
[26] = "if mission.trig.conditions[26]() then mission.trig.actions[26]() end",
}, -- end of ["func"]
["flag"] =
{
[1] = true,
[2] = true,
[3] = true,
[4] = true,
[5] = true,
[6] = true,
[7] = true,
[8] = true,
[9] = true,
[10] = true,
[11] = true,
[12] = true,
[13] = true,
[14] = true,
[15] = true,
[16] = true,
[17] = true,
[18] = true,
[19] = true,
[20] = true,
[21] = true,
[22] = true,
[23] = true,
[24] = true,
[25] = true,
[26] = true,
}, -- end of ["flag"]
["conditions"] =
{
[1] = "return(c_time_after(2) and c_flag_is_false(93) )",
[2] = "return(c_time_since_flag(1, 10) and c_flag_is_true(2) and c_flag_is_false(93) )",
[3] = "return(c_time_since_flag(89, 5) and c_flag_is_true(88) and c_flag_is_false(93) )",
[4] = "return(c_time_since_flag(3, 21) and c_argument_in_range(214, 0.09, 0.11) and c_argument_in_range(215, 0, 0.01) and c_flag_is_false(93) )",
[5] = "return(c_time_since_flag(4, 11) and c_argument_in_range(218, 0.29, 0.31) and c_argument_in_range(216, -1, -0.9) and c_flag_is_false(93) )",
[6] = "return(c_time_since_flag(5, 5) and c_argument_in_range(219, 0, 0.1) and c_argument_in_range(220, 0.9, 1) and c_flag_is_false(93) )",
[7] = "return(c_time_since_flag(98, 9) and c_argument_in_range(80, 0, 0.1) and c_flag_is_false(93) )",
[8] = "return(c_time_since_flag(51, 12) and c_argument_in_range(111, -1, -0.9) and c_flag_is_false(93) )",
[9] = "return(c_time_since_flag(6, 9) and c_argument_in_range(81, 0.9, 1) and c_argument_in_range(85, 0.9, 1) and c_flag_is_false(93) )",
[10] = "return(c_time_since_flag(7, 10) and c_argument_in_range(86, 0, 0.1) and c_argument_in_range(89, 0.9, 1) and c_argument_in_range(90, 0.9, 1) and c_flag_is_false(93) )",
[11] = "return(c_time_since_flag(8, 36) and c_argument_in_range(250, -0.05, 0) and c_flag_is_false(93) )",
[12] = "return(c_argument_in_range(122, 0.1, 1) and c_time_since_flag(9, 39) and c_flag_is_false(93) )",
[13] = "return(c_argument_in_range(122, 0.56, 1) )",
[14] = "return(c_argument_in_range(122, 0.56, 1) and c_time_since_flag(10, 3) and c_time_since_flag(94, 6) and c_flag_is_false(93) )",
[15] = "return(c_time_since_flag(11, 9) and c_argument_in_range(215, -1, -0.9) and c_flag_is_false(93) )",
[16] = "return(c_time_since_flag(99, 12) and c_argument_in_range(59, 0.09, 0.11) and c_flag_is_false(93) )",
[17] = "return(c_time_since_flag(12, 8) and c_argument_in_range(52, 0.89, 0.91) and c_flag_is_false(93) )",
[18] = "return(c_time_since_flag(13, 8) and c_argument_in_range(7, 0.99, 1) and c_flag_is_false(93) )",
[19] = "return(c_time_since_flag(14, 8) and c_argument_in_range(17, 0.09, 0.12) and c_flag_is_false(93) )",
[20] = "return(c_time_since_flag(15, 16) and c_argument_in_range(30, 0.39, 0.41) and c_flag_is_false(93) )",
[21] = "return(c_argument_in_range(35, 0.09, 0.11) and c_time_since_flag(16, 8) and c_flag_is_false(93) )",
[22] = "return(c_argument_in_range(43, 0.09, 0.11) and c_time_since_flag(17, 6) and c_flag_is_false(93) )",
[23] = "return(c_argument_in_range(220, 0, 0.05) and c_time_since_flag(18, 8) and c_flag_is_false(93) )",
[24] = "return(c_time_since_flag(19, 2) and c_argument_in_range(122, 0.915, 1) and c_argument_in_range(250, -1, -0.95) )",
[25] = "return(c_argument_in_range(277, 0.9, 1) and c_time_since_flag(19, 25) and c_time_since_flag(20, 3) and c_flag_is_false(93) )",
[26] = "return(c_argument_in_range(277, 0, 0.05) and c_time_since_flag(19, 25) and c_time_since_flag(20, 3) and c_flag_is_false(93) )",
}, -- end of ["conditions"]
["customStartup"] =
{
}, -- end of ["customStartup"]
["funcStartup"] =
{
}, -- end of ["funcStartup"]
}, -- end of ["trig"]