Skip to content

Commit

Permalink
switch back to "ON_EVENT" trigger
Browse files Browse the repository at this point in the history
"ON_DESTROY" does not work for events triggered by flag change
closes #90
  • Loading branch information
132nd-etcher committed Apr 8, 2020
1 parent 6f58c13 commit a1744ac
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions mission
Original file line number Diff line number Diff line change
Expand Up @@ -171563,7 +171563,7 @@ mission =
[3] = 1,
["name"] = "Springfield11",
}, -- end of ["callsign"]
["heading"] = 5290.2971457735,
["heading"] = 5302.8635163879,
["livery_id"] = "132_108_HiVis",
["name"] = "DictKey_UnitName_3007",
["onboard_num"] = "201",
Expand Down Expand Up @@ -174905,7 +174905,7 @@ mission =
[3] = 1,
["name"] = "Springfield11",
}, -- end of ["callsign"]
["heading"] = 5290.2971457735,
["heading"] = 5302.8635163879,
["livery_id"] = "132_108_HiVis",
["name"] = "DictKey_UnitName_3539",
["onboard_num"] = "202",
Expand Down Expand Up @@ -175093,7 +175093,7 @@ mission =
[3] = 1,
["name"] = "Springfield11",
}, -- end of ["callsign"]
["heading"] = 5290.2971457735,
["heading"] = 5302.8635163879,
["livery_id"] = "132_108_HiVis",
["name"] = "DictKey_UnitName_3542",
["onboard_num"] = "203",
Expand Down Expand Up @@ -175281,7 +175281,7 @@ mission =
[3] = 1,
["name"] = "Springfield11",
}, -- end of ["callsign"]
["heading"] = 5290.2971457735,
["heading"] = 5302.8635163879,
["livery_id"] = "132_108_HiVis",
["name"] = "DictKey_UnitName_3545",
["onboard_num"] = "204",
Expand Down Expand Up @@ -180989,7 +180989,7 @@ mission =
[3] = 1,
["name"] = "Pontiac31",
}, -- end of ["callsign"]
["heading"] = 1866.1060362352,
["heading"] = 1878.6724068496,
["livery_id"] = "VFA-37",
["name"] = "DictKey_UnitName_6156",
["onboard_num"] = "355",
Expand Down Expand Up @@ -181238,7 +181238,7 @@ mission =
[3] = 1,
["name"] = "Pontiac31",
}, -- end of ["callsign"]
["heading"] = 1866.1060362352,
["heading"] = 1878.6724068496,
["livery_id"] = "VFA-37",
["name"] = "DictKey_UnitName_6223",
["onboard_num"] = "356",
Expand Down Expand Up @@ -181426,7 +181426,7 @@ mission =
[3] = 1,
["name"] = "Springfield11",
}, -- end of ["callsign"]
["heading"] = 5290.2971457735,
["heading"] = 5302.8635163879,
["livery_id"] = "132_108_HiVis",
["name"] = "DictKey_UnitName_6229",
["onboard_num"] = "202",
Expand Down Expand Up @@ -181614,7 +181614,7 @@ mission =
[3] = 1,
["name"] = "Springfield11",
}, -- end of ["callsign"]
["heading"] = 5290.2971457735,
["heading"] = 5302.8635163879,
["livery_id"] = "132_108_HiVis",
["name"] = "DictKey_UnitName_6232",
["onboard_num"] = "202",
Expand Down Expand Up @@ -181863,7 +181863,7 @@ mission =
[3] = 1,
["name"] = "Pontiac31",
}, -- end of ["callsign"]
["heading"] = 1866.1060362352,
["heading"] = 1878.6724068496,
["livery_id"] = "VFA-37",
["name"] = "DictKey_UnitName_6235",
["onboard_num"] = "357",
Expand Down Expand Up @@ -182112,7 +182112,7 @@ mission =
[3] = 1,
["name"] = "Pontiac31",
}, -- end of ["callsign"]
["heading"] = 1866.1060362352,
["heading"] = 1878.6724068496,
["livery_id"] = "VFA-37",
["name"] = "DictKey_UnitName_6238",
["onboard_num"] = "358",
Expand Down Expand Up @@ -244067,7 +244067,7 @@ mission =
{
}, -- end of ["Points"]
}, -- end of ["dataCartridge"]
["heading"] = 5038.2184151335,
["heading"] = 5050.7847857479,
["livery_id"] = "VFC-12",
["name"] = "DictKey_UnitName_3327",
["onboard_num"] = "831",
Expand Down Expand Up @@ -245703,7 +245703,7 @@ mission =
[3] = 1,
["name"] = "Ford91",
}, -- end of ["callsign"]
["heading"] = 5038.2184151335,
["heading"] = 5050.7847857479,
["livery_id"] = "VF-74 Adversary",
["name"] = "DictKey_UnitName_3345",
["onboard_num"] = "891",
Expand Down Expand Up @@ -255844,7 +255844,7 @@ mission =
[24] = 7,
}, -- end of ["red"]
}, -- end of ["coalitions"]
["currentKey"] = 5033078,
["currentKey"] = 5048460,
["date"] =
{
["Day"] = 7,
Expand Down Expand Up @@ -262928,15 +262928,15 @@ mission =
[82] = "a_set_flag(57);a_explosion_unit(296057, 500); mission.trig.func[82]=nil;",
[83] = "a_activate_group(185); mission.trig.events[\"dead\"][83]=nil;",
[84] = "a_set_flag(60);a_explosion_unit(296145, 1000); mission.trig.func[84]=nil;",
[85] = "a_activate_group(109460);a_activate_group(109458);a_activate_group(109459);a_activate_group(109547);a_activate_group(109548);a_activate_group(109549);a_activate_group(109454);a_activate_group(109468);a_activate_group(109469);a_activate_group(109457);a_activate_group(109467);a_activate_group(109553);a_activate_group(109554);a_activate_group(109550);a_activate_group(109551);a_activate_group(109552);a_activate_group(109542);a_activate_group(109466);a_activate_group(109543);a_activate_group(109544);a_activate_group(109545);a_activate_group(109546);a_activate_group(109622);a_activate_group(109620);a_activate_group(109621);a_activate_group(109623);a_activate_group(109624);a_activate_group(109625);a_activate_group(109626);a_activate_group(109627);a_activate_group(109628);a_activate_group(109629);a_activate_group(109630); mission.trig.events[\"dead\"][85]=nil;",
[85] = "a_activate_group(109460);a_activate_group(109458);a_activate_group(109459);a_activate_group(109547);a_activate_group(109548);a_activate_group(109549);a_activate_group(109454);a_activate_group(109468);a_activate_group(109469);a_activate_group(109457);a_activate_group(109467);a_activate_group(109553);a_activate_group(109554);a_activate_group(109550);a_activate_group(109551);a_activate_group(109552);a_activate_group(109542);a_activate_group(109466);a_activate_group(109543);a_activate_group(109544);a_activate_group(109545);a_activate_group(109546);a_activate_group(109622);a_activate_group(109620);a_activate_group(109621);a_activate_group(109623);a_activate_group(109624);a_activate_group(109625);a_activate_group(109626);a_activate_group(109627);a_activate_group(109628);a_activate_group(109629);a_activate_group(109630); mission.trig.func[85]=nil;",
[86] = "a_set_flag(63);a_explosion_unit(296287, 500); mission.trig.func[86]=nil;",
[87] = "a_activate_group(109634);a_activate_group(109635);a_activate_group(109636);a_activate_group(109637);a_activate_group(109638);a_activate_group(109639);a_activate_group(109640);a_activate_group(109641);a_activate_group(109642);a_activate_group(109643);a_activate_group(109644);a_activate_group(109645);a_activate_group(109632);a_activate_group(109633);a_activate_group(109652);a_activate_group(109653);a_activate_group(109648);a_activate_group(109649);a_activate_group(109650);a_activate_group(109651);a_activate_group(109647);a_activate_group(109646);a_activate_group(109668);a_activate_group(109654);a_group_off(109668);a_group_off(109646);a_group_off(109647);a_group_off(109650);a_group_off(109649);a_group_off(109648);a_group_off(109633); mission.trig.events[\"dead\"][87]=nil;",
[88] = "a_activate_group(109682);a_activate_group(109683);a_activate_group(109684); mission.trig.events[\"dead\"][88]=nil;",
[89] = "a_set_flag(62);a_explosion_unit(296261, 500); mission.trig.func[89]=nil;",
[90] = "a_activate_group(109584);a_activate_group(109613);a_activate_group(109605);a_activate_group(109604); mission.trig.events[\"dead\"][90]=nil;",
[90] = "a_activate_group(109584);a_activate_group(109613);a_activate_group(109605);a_activate_group(109604); mission.trig.func[90]=nil;",
[91] = "a_do_script_file(getValueResourceByKey(\"ResKey_Action_7823\")); mission.trig.func[91]=nil;",
[92] = "a_set_flag(61);a_explosion_unit(296179, 500); mission.trig.func[92]=nil;",
[93] = "a_activate_group(109570);a_activate_group(109572);a_activate_group(109575);a_activate_group(109568);a_activate_group(109569);a_activate_group(109565);a_activate_group(109564);a_activate_group(109566);a_activate_group(109567);a_activate_group(109563); mission.trig.events[\"dead\"][93]=nil;",
[93] = "a_activate_group(109570);a_activate_group(109572);a_activate_group(109575);a_activate_group(109568);a_activate_group(109569);a_activate_group(109565);a_activate_group(109564);a_activate_group(109566);a_activate_group(109567);a_activate_group(109563); mission.trig.func[93]=nil;",
[94] = "a_set_flag(41);a_out_text_delay_c(20, getValueDictByKey(\"DictKey_ActionText_7648\"), 60, false, 0); mission.trig.events[\"dead\"][94]=nil;",
[95] = "a_set_ai_task(109563, 1); mission.trig.func[95]=nil;",
[96] = "a_out_text_delay_c(20, getValueDictByKey(\"DictKey_ActionText_7649\"), 60, false, 0); mission.trig.func[96]=nil;",
Expand Down Expand Up @@ -263073,11 +263073,8 @@ mission =
[79] = "if mission.trig.conditions[79]() then mission.trig.actions[79]() end",
[81] = "if mission.trig.conditions[81]() then mission.trig.actions[81]() end",
[83] = "if mission.trig.conditions[83]() then mission.trig.actions[83]() end",
[85] = "if mission.trig.conditions[85]() then mission.trig.actions[85]() end",
[87] = "if mission.trig.conditions[87]() then mission.trig.actions[87]() end",
[88] = "if mission.trig.conditions[88]() then mission.trig.actions[88]() end",
[90] = "if mission.trig.conditions[90]() then mission.trig.actions[90]() end",
[93] = "if mission.trig.conditions[93]() then mission.trig.actions[93]() end",
[94] = "if mission.trig.conditions[94]() then mission.trig.actions[94]() end",
}, -- end of ["dead"]
}, -- end of ["events"]
Expand Down Expand Up @@ -263256,10 +263253,13 @@ mission =
[80] = "if mission.trig.conditions[80]() then mission.trig.actions[80]() end",
[82] = "if mission.trig.conditions[82]() then mission.trig.actions[82]() end",
[84] = "if mission.trig.conditions[84]() then mission.trig.actions[84]() end",
[85] = "if mission.trig.conditions[85]() then mission.trig.actions[85]() end",
[86] = "if mission.trig.conditions[86]() then mission.trig.actions[86]() end",
[89] = "if mission.trig.conditions[89]() then mission.trig.actions[89]() end",
[90] = "if mission.trig.conditions[90]() then mission.trig.actions[90]() end",
[91] = "if mission.trig.conditions[91]() then mission.trig.actions[91]() end",
[92] = "if mission.trig.conditions[92]() then mission.trig.actions[92]() end",
[93] = "if mission.trig.conditions[93]() then mission.trig.actions[93]() end",
[95] = "if mission.trig.conditions[95]() then mission.trig.actions[95]() end",
[96] = "if mission.trig.conditions[96]() then mission.trig.actions[96]() end",
[97] = "if mission.trig.conditions[97]() then mission.trig.actions[97]() end",
Expand Down Expand Up @@ -269179,7 +269179,7 @@ mission =
}, -- end of ["actions"]
["colorItem"] = "0x808000ff",
["comment"] = "R14_units_activate",
["eventlist"] = "dead",
["eventlist"] = "",
["predicate"] = "triggerOnce",
["rules"] =
{
Expand Down Expand Up @@ -269744,7 +269744,7 @@ mission =
}, -- end of ["actions"]
["colorItem"] = "0xff0000ff",
["comment"] = "R11_FLUG_activate",
["eventlist"] = "dead",
["eventlist"] = "",
["predicate"] = "triggerOnce",
["rules"] =
{
Expand Down Expand Up @@ -269897,7 +269897,7 @@ mission =
}, -- end of ["actions"]
["colorItem"] = "0xffff80ff",
["comment"] = "R16_units_activate",
["eventlist"] = "dead",
["eventlist"] = "",
["predicate"] = "triggerOnce",
["rules"] =
{
Expand Down

0 comments on commit a1744ac

Please sign in to comment.