XRWS           9á   P  9‘ext_01.cat ext_01.dat md/sector_satellites_lite.xml 14737 1724056991 11a09d788e7cad5791e74c01b757ecbd
ï»¿<?xml version="1.0" encoding="utf-8"?>
<mdscript name="SectorSatellitesLite" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
  <cues>
    <cue name="Setup">
      <conditions>
        <event_cue_signalled cue="md.Setup.Start" />
      </conditions>
      <actions>
        <create_group groupname="$controlledSectors" />
      </actions>
      <delay exact="1ms" />
      <actions>
        <!--Ð¢Ð¾Ð»ÐºÐ½ÑƒÑ‚ÑŒ Ð²Ñ€ÑƒÑ‡Ð½ÑƒÑŽ Ð¿ÐµÑ€Ð²Ñ‹Ð¹ Ñ€Ð°Ð· Ð¸Ð±Ð¾ Ð´Ð¾Ñ‡ÐµÑ€Ð½Ð¸Ð¹ cue Ð¿Ð¾ÐºÐ° Ð·Ð°Ð¿ÑƒÑÑ‚Ð¸Ñ‚ÑÑ ÑƒÐ¶Ðµ Ð½Ðµ Ð¿Ð¾Ð»ÑƒÑ‡Ð¸Ñ‚ Ð¾Ð±Ñ‰Ð¸Ð¹ ÑÐ¸Ð³Ð½Ð°Ð».-->
       <signal_cue cue="InitialRescan" />
      </actions>
      <cues>
        <!--ÐŸÐµÑ€ÐµÐ¿Ñ€Ð¾Ð²ÐµÑ€Ð¸Ñ‚ÑŒ Ð²ÑÐµ ÑÐµÐºÑ‚Ð¾Ñ€Ñ‹ <= Ð¼Ð¾Ð´Ñ‹ Ð¼Ð¾Ð³Ð»Ð¸ Ð¸Ð·Ð¼ÐµÐ½Ð¸Ñ‚ÑŒ ÑÐµÐºÑ‚Ð¾Ñ€Ð° Ð¸Ð»Ð¸ ÑÑ‚Ð¾ Ð¿ÐµÑ€Ð²Ñ‹Ð¹ Ð·Ð°Ð¿ÑƒÑÐº Ð¼Ð¾Ð´Ð° Ñ ÑƒÐ¶Ðµ ÑÑƒÑ‰ÐµÑÑ‚Ð²ÑƒÑŽÑ‰Ð¸Ð¼Ð¸ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ°Ð¼Ð¸.-->
        <cue name="InitialRescan" instantiate="true">
          <conditions>
            <check_any>
              <event_cue_signalled cue="md.Setup.Start" />
              <event_cue_signalled />
            </check_any>
          </conditions>
          <actions>
            <!--ÐžÑ‡Ð¸ÑÑ‚ÐºÐ° Ð¸ÑÑ‡ÐµÐ·Ð½ÑƒÐ²ÑˆÐ¸Ñ… ÑÐµÐºÑ‚Ð¾Ñ€Ð¾Ð². REMIND Ð£Ð¿Ñ€Ð°Ð²Ð»ÑÑŽÑ‰Ð¸Ð¹ cue ÑÐ°Ð¼ ÑÐµÐ±Ñ Ð¿Ñ€Ð¾Ð²ÐµÑ€Ð¸Ñ‚. REMIND Ð”Ð²Ð¸Ð¶Ð¾Ðº Ð¸Ð³Ñ€Ñ‹ ÑƒÐ¶Ðµ Ð¿Ð¾Ñ‡Ð¸ÑÑ‚Ð¸Ð» Ð¼ÑƒÑÐ¾Ñ€ Ð¸Ð· Ð³Ñ€ÑƒÐ¿Ð¿Ñ‹ Ð¸ ÑÑ‚Ð° Ð¿Ñ€Ð¾Ð²ÐµÑ€ÐºÐ° Ð½Ð° Ð²ÑÑÐºÐ¸Ð¹ ÑÐ»ÑƒÑ‡Ð°Ð¹.-->
            <do_for_each name="$sector" in="$controlledSectors" reverse="true">
              <do_if value="not $sector.exists">
                <remove_from_group group="$controlledSectors" object="$sector" />
              </do_if>
            </do_for_each>
            <!--ÐŸÐ¾Ð¸ÑÐº Ð½Ð¾Ð²Ñ‹Ñ… (ÑÐ¾ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¾Ð¼) ÑÐµÐºÑ‚Ð¾Ñ€Ð¾Ð².-->
            <find_sector name="$sectors" multiple="true" />
            <do_for_each name="$sector" in="$sectors">
              <find_object name="$satellite" space="$sector" owner="faction.player" class="class.satellite" />
              <do_if value="$satellite.exists and $controlledSectors.indexof.{$sector} == 0">
                <!--Ð’ ÑÑ‚Ð¾Ð¼ ÑÐµÐºÑ‚Ð¾Ñ€Ðµ Ð¿Ð¾ÑÐ²Ð¸Ð»ÑÑ ÑÐ¿ÑƒÑ‚Ð½Ð¸Ðº => Ð½Ð°Ð´Ð¾ ÐºÐ¾Ð½Ñ‚Ñ€Ð¾Ð»Ð¸Ñ€Ð¾Ð²Ð°Ñ‚ÑŒ.-->
                <signal_cue_instantly cue="SectorController" param="$sector" />
              </do_if>
            </do_for_each>
            <remove_value name="$sectors" />
            <remove_value name="$satellite" />
          </actions>
        </cue>
        <!--Ð—Ð°Ð¿ÑƒÑÐº Ð½Ð¾Ð²Ð¾Ð³Ð¾ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ°. Ð•ÑÐ»Ð¸ ÑÑ‚Ð¾ Ð¿ÐµÑ€Ð²Ñ‹Ð¹ Ð² ÑÐµÐºÑ‚Ð¾Ñ€Ðµ, Ñ‚Ð¾ Ð½Ð°Ñ‡Ð°Ñ‚ÑŒ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÑƒ ÑÐµÐºÑ‚Ð¾Ñ€Ð°.-->
        <cue name="NewGalaxySatellite" instantiate="true">
          <conditions>
            <event_satellite_launched space="player.galaxy" />
            <check_value value="event.param2.isplayerowned" />
            <check_value value="$controlledSectors.indexof.{event.param2.sector} == 0" />
          </conditions>
          <actions>
            <!--REMIND event.object ÑƒÐºÐ°Ð·Ñ‹Ð²Ð°ÐµÑ‚ Ð½Ð° Ð²ÑÑŽ Ð³Ð°Ð»Ð°ÐºÑ‚Ð¸ÐºÑƒ.-->
            <signal_cue_instantly cue="SectorController" param="event.param2.sector" />
          </actions>
        </cue>
      </cues>
    </cue>
    <cue name="SectorController" instantiate="true" namespace="this">
      <conditions>
        <event_cue_signalled />
      </conditions>
      <actions>
        <set_value name="$sector" exact="event.param" />
        <!--ÐŸÑ€Ð¾Ð²ÐµÑ€Ð¸Ñ‚ÑŒ Ð¸ Ð´Ð¾Ð±Ð°Ð²Ð¸Ñ‚ÑŒ Ð² Ð³Ñ€ÑƒÐ¿Ð¿Ñƒ ÐºÐ¾Ð½Ñ‚Ñ€Ð¾Ð»Ð¸Ñ€ÑƒÐµÐ¼Ñ‹Ñ… ÑÐµÐºÑ‚Ð¾Ñ€Ð¾Ð².-->
        <assert value="Setup.$controlledSectors.indexof.{$sector} == 0" />
        <add_to_group groupname="Setup.$controlledSectors" object="$sector" />
        <!--Ð“Ñ€ÑƒÐ¿Ð¿Ð° ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¹, ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ðµ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐ°Ð½Ñ‹ Ð¸Ð·-Ð·Ð° ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ°. ÐÑƒÐ¶Ð½Ð°, Ñ‡Ñ‚Ð¾Ð±Ñ‹ Ð½Ðµ Ñ‚Ñ€Ð¾Ð³Ð°Ñ‚ÑŒ ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¸, Ñ‡ÑŒÑ Ð¿Ð¾ÑÑ‚Ð¾ÑÐ½Ð½Ð°Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐºÐ° Ð±Ñ‹Ð»Ð° Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð° Ð¸Ð½Ñ‹Ð¼ Ð¾Ð±Ñ€Ð°Ð·Ð¾Ð¼.-->
        <create_group groupname="$subscribedStations" />
        <!--Ð“Ñ€ÑƒÐ¿Ð¿Ñ‹ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¾Ð².-->
        <create_group groupname="$ordSatellites" /> <!--ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¸, ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ðµ Ð½Ð°Ñ‡Ð¸Ð½Ð°ÑŽÑ‚ Ð¾Ð±Ñ‹Ñ‡Ð½ÑƒÑŽ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÑƒ ÑÐµÐºÑ‚Ð¾Ñ€Ð° (Ð¿Ñ€Ð¾Ð´Ð²Ð¸Ð½ÑƒÑ‚Ñ‹Ðµ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¸ ÑÑ‡Ð¸Ñ‚Ð°ÑŽÑ‚ÑÑ Ð¸ ÐºÐ°Ðº Ð¾Ð±Ñ‹Ñ‡Ð½Ñ‹Ðµ Ñ‚Ð¾Ð¶Ðµ)-->
        <create_group groupname="$advSatellites" /> <!--ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¸, ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ðµ Ð½Ð°Ñ‡Ð¸Ð½Ð°ÑŽÑ‚ Ð¿Ñ€Ð¾Ð´Ð²Ð¸Ð½ÑƒÑ‚ÑƒÑŽ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÑƒ ÑÐµÐºÑ‚Ð¾Ñ€Ð°-->
        <create_group groupname="$anySatellites" /> <!--Ð»ÑŽÐ±Ñ‹Ðµ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¸, Ð²ÐºÐ»ÑŽÑ‡Ð°Ñ Ð´Ñ€ÑƒÐ³Ð¸Ñ… Ð¼Ð¾Ð´Ð¾Ð², ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ðµ ÑƒÑ‡Ð¸Ñ‚Ñ‹Ð²Ð°Ñ‚ÑŒ, Ð½Ð¾ Ð½Ðµ Ñ€ÐµÐ°Ð³Ð¸Ñ€Ð¾Ð²Ð°Ñ‚ÑŒ, Ð¸Ð½Ð°Ñ‡Ðµ ÑÐµÐºÑ‚Ð¾Ñ€ Ð±ÑƒÐ´ÐµÑ‚ Ð²ÑÑ‘ Ð²Ñ€ÐµÐ¼Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÑÑ‚ÑŒÑÑ Ð¿Ñ€Ð¸ InitialScan-->
        <find_object name="$satellites" space="$sector" owner="faction.player" class="class.satellite" multiple="true" />
        <do_for_each name="$satellite" in="$satellites">
          <include_actions ref="AppendNewSatellite" />
        </do_for_each>
        <remove_value name="$satellites" />
      </actions>
      <cues>
        <!--Ð Ð°Ð·Ð»Ð¸Ñ‡Ð½Ñ‹Ðµ Ð¿Ñ€Ð¾Ð²ÐµÑ€ÐºÐ¸, Ñ‡Ñ‚Ð¾ Ð»Ð¾Ð³Ð¸ÐºÐ° Ð½Ðµ Ð½Ð°Ñ€ÑƒÑˆÐµÐ½Ð° Ð¸Ð·-Ð·Ð° Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ð¹ Ð¼Ð¾Ð´Ð¾Ð² (ÑÐµÐºÑ‚Ð¾Ñ€ Ð¸Ð»Ð¸ Ð¼Ð¾Ð´'Ð½Ñ‹Ðµ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¸ Ð¸ÑÑ‡ÐµÐ·Ð»Ð¸).-->
        <cue name="SectorSanityCheck" instantiate="true">
          <conditions>
            <event_game_loaded />
          </conditions>
          <actions>
            <!--REMIND ÐžÐ±Ñ‹Ñ‡Ð½Ð¾ Ð´Ð²Ð¸Ð¶Ð¾Ðº Ð¸Ð³Ñ€Ñ‹ ÑÐ°Ð¼ ÑƒÐ±Ð¸Ñ€Ð°ÐµÑ‚ Ð¼ÑƒÑÐ¾Ñ€ Ð¸Ð· Ð³Ñ€ÑƒÐ¿Ð¿Ñ‹ Ð¸ ÑÑ‚Ð° Ð¿Ñ€Ð¾Ð²ÐµÑ€ÐºÐ° Ð¾ÑÐ¾Ð±Ð¾ Ð½Ðµ Ð½ÑƒÐ¶Ð½Ð°.-->
            <do_for_each name="$satellite" in="$anySatellites" reverse="true">
              <do_if value="not $satellite.exists">
                <remove_from_group group="$anySatellites" object="$satellite" />
              </do_if>
            </do_for_each>
            <do_if value="not $sector.exists">
              <!-- REMIND Ð£Ð´Ð°Ð»ÐµÐ½Ð¸Ðµ Ð¸Ð· Ð³Ñ€ÑƒÐ¿Ð¿Ñ‹ Ð² ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð¹ Ñ…Ñ€Ð°Ð½ÑÑ‚ÑÑ ÑƒÐ¿Ñ€Ð°Ð²Ð»ÑÐµÐ¼Ñ‹Ðµ ÑÐµÐºÑ‚Ð¾Ñ€Ð° Ð½Ð°Ñ…Ð¾Ð´Ð¸Ñ‚ÑÑ Ð² InitialRescan.-->
              <cancel_cue cue="namespace" />
            </do_if>
            <do_elseif value="$anySatellites.count == 0">
              <remove_from_group group="Setup.$controlledSectors" object="$sector" />
              <cancel_cue cue="namespace" />
            </do_elseif>
          </actions>
        </cue>
        <!--ÐžÐ±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ° ÑÐµÐºÑ‚Ð¾Ñ€Ð° - Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ðµ Ð¿Ð¾ÑÑ‚Ð¾ÑÐ½Ð½Ð¾Ð¹ Ñ‚Ð¾Ñ€Ð³Ð¾Ð²Ð¾Ð¹ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐºÐ¸ Ð²ÑÐµÐ¼ Ð´Ñ€ÑƒÐ¶ÐµÑÑ‚Ð²ÐµÐ½Ð½Ñ‹Ð¼ ÑÑ‚Ð°Ð½Ñ†Ð¸ÑÐ¼, ÐµÑÐ»Ð¸ Ð² ÑÐµÐºÑ‚Ð¾Ñ€Ðµ ÐµÑÑ‚ÑŒ ÑÐ¿ÑƒÑ‚Ð½Ð¸Ðº (Ð¾Ð±Ñ‹Ñ‡Ð½Ñ‹Ð¹ Ð¸Ð»Ð¸ Ð¿Ñ€Ð¾Ð´Ð²Ð¸Ð½ÑƒÑ‚Ñ‹Ð¹).-->
        <cue name="OrdinaryScan">
          <actions>
            <do_if value="$ordSatellites.count == 0">
              <!--Ð‘Ð¾Ð»ÑŒÑˆÐµ Ð½ÐµÑ‚ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¾Ð², ÑƒÐ±Ñ€Ð°Ñ‚ÑŒ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐºÑƒ ÐµÑÐ»Ð¸ ÐµÑÑ‚ÑŒ.-->
              <do_if value="$subscribedStations.count gt 0">
                <do_for_each name="$station" in="$subscribedStations">
                  <do_if value="$station.haspermanenttradesubscription">
                    <remove_trade_subscription object="$station" />
                    <add_trade_subscription object="$station" duration="5h" />
                  </do_if>
                </do_for_each>
                <clear_group group="$subscribedStations" />
              </do_if>
            </do_if>
            <do_else>
              <!--Ð•ÑÑ‚ÑŒ Ñ…Ð¾Ñ‚ÑŒ Ð¾Ð´Ð¸Ð½ ÑÐ¿ÑƒÑ‚Ð½Ð¸Ðº, Ð´Ð¾Ð±Ð°Ð²Ð¸Ñ‚ÑŒ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐºÑƒ Ð²ÑÐµÐ¼ ÑÑ‚Ð°Ð½Ñ†Ð¸ÑÐ¼.-->
              <find_station name="$stations" space="$sector" known="true" multiple="true">
                <match owner="faction.player" negate="true" />
                <match_relation_to faction="faction.player" relation="dock" comparison="ge" />
              </find_station>
              <do_for_each name="$station" in="$stations">
                <do_if value="not $station.haspermanenttradesubscription">
                  <add_trade_subscription object="$station" />
                  <!--ÐŸÐ¾Ð´Ð¿Ð¸ÑÐºÐ° Ð¼Ð¾Ð³Ð»Ð° ÑÐ»ÐµÑ‚ÐµÑ‚ÑŒ Ð¸Ð·-Ð·Ð° ÑÐ¼ÐµÐ½Ñ‹ Ð¾Ñ‚Ð½Ð¾ÑˆÐµÐ½Ð¸Ñ ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¸.-->
                  <do_if value="$subscribedStations.indexof.{$station} == 0">
                    <add_to_group groupname="$subscribedStations" object="$station" />
                  </do_if>
                </do_if>
              </do_for_each>
              <remove_value name="$stations" />
            </do_else>
          </actions>
          <cues>
            <!--ÐŸÐµÑ€Ð¸Ð¾Ð´Ð¸Ñ‡ÐµÑÐºÐ°Ñ Ð¿Ñ€Ð¾Ð²ÐµÑ€ÐºÐ° Ð¸Ð·-Ð·Ð° Ð¿Ð¾ÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð½Ð¾Ð²Ñ‹Ñ… ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¹.-->
            <cue name="OrdinaryRecheck">
              <delay min="15min" max="30min" />
              <actions>
                <reset_cue cue="parent" />
              </actions>
            </cue>
            <!--Ð£Ð½Ð¸Ñ‡Ñ‚Ð¾Ð¶ÐµÐ½Ð¸Ðµ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¾Ð².-->
            <cue name="OrdinarySatelliteDestroyed" instantiate="true">
              <conditions>
                <event_object_destroyed group="$ordSatellites" />
              </conditions>
              <actions>
                <set_value name="$satellite" exact="event.object" />
                <remove_from_group group="$ordSatellites" object="$satellite" />
                <do_if value="$ordSatellites.count == 0">
                  <!--Ð¡Ð¿ÑƒÑ‚Ð½Ð¸ÐºÐ¾Ð² Ð±Ð¾Ð»ÑŒÑˆÐµ Ð½ÐµÑ‚. Ð£Ð±Ñ€Ð°Ñ‚ÑŒ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐºÑƒ.-->
                  <reset_cue cue="parent" />
                </do_if>
                <remove_value name="$satellite" />
              </actions>
            </cue>
            <!--Ð£Ð½Ð¸Ñ‡Ñ‚Ð¾Ð¶ÐµÐ½Ð¸Ðµ ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¹ Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐºÐ¾Ð¹.-->
            <cue name="SubscribedStationDestroyed" instantiate="true">
              <conditions>
                <event_object_destroyed group="$subscribedStations" />
              </conditions>
              <actions>
                <set_value name="$station" exact="event.object" />
                <remove_from_group group="$subscribedStations" object="$station" />
                <remove_value name="$station" />
              </actions>
            </cue>
          </cues>
        </cue>
        <!--ÐžÐ±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ° ÑÐµÐºÑ‚Ð¾Ñ€Ð° - Ð²Ñ‹ÑÐ²Ð»ÐµÐ½Ð¸Ðµ ÐµÑ‰Ñ‘ Ð½ÐµÐ¸Ð·Ð²ÐµÑÑ‚Ð½Ñ‹Ñ… Ð¸Ð³Ñ€Ð¾ÐºÑƒ ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¹, ÐµÑÐ»Ð¸ Ð² ÑÐµÐºÑ‚Ð¾Ñ€Ðµ ÐµÑÑ‚ÑŒ Ð¿Ñ€Ð¾Ð´Ð²Ð¸Ð½ÑƒÑ‚Ñ‹Ð¹ ÑÐ¿ÑƒÑ‚Ð½Ð¸Ðº.-->
        <cue name="AdvancedScan">
          <actions>
            <do_if value="$advSatellites.count gt 0">
              <!--Ð•ÑÑ‚ÑŒ Ñ…Ð¾Ñ‚ÑŒ Ð¾Ð´Ð¸Ð½ ÑÐ¿ÑƒÑ‚Ð½Ð¸Ðº, Ð¾Ñ‚ÐºÑ€Ñ‹Ñ‚ÑŒ Ð½Ð¾Ð²Ñ‹Ðµ ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¸.-->
              <find_station name="$stations" space="$sector" known="false" multiple="true">
                <match owner="faction.player" negate="true" />
                <match_relation_to faction="faction.player" relation="dock" comparison="ge" />
              </find_station>
              <do_for_each name="$station" in="$stations">
                <set_known object="$station" known="true" updatesnapshot="true" />
              </do_for_each>
              <remove_value name="$stations" />
            </do_if>
          </actions>
          <cues>
            <!--ÐŸÐµÑ€Ð¸Ð¾Ð´Ð¸Ñ‡ÐµÑÐºÐ°Ñ Ð¿Ñ€Ð¾Ð²ÐµÑ€ÐºÐ° Ð¸Ð·-Ð·Ð° Ð¿Ð¾ÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð½Ð¾Ð²Ñ‹Ñ… ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¹.-->
            <cue name="AdvancedRecheck">
              <delay min="15min" max="30min" />
              <actions>
                <reset_cue cue="parent" />
              </actions>
            </cue>
            <!--Ð£Ð½Ð¸Ñ‡Ñ‚Ð¾Ð¶ÐµÐ½Ð¸Ðµ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ¾Ð².-->
            <cue name="AdvancedSatelliteDestroyed" instantiate="true">
              <conditions>
                <event_object_destroyed group="$advSatellites" />
              </conditions>
              <actions>
                <remove_from_group group="$advSatellites" object="event.object" />
              </actions>
            </cue>
          </cues>
        </cue>
        <!--Ð£Ð½Ð¸Ñ‡Ñ‚Ð¾Ð¶ÐµÐ½ ÑÐ¿ÑƒÑ‚Ð½Ð¸Ðº Ð² ÑÐµÐºÑ‚Ð¾Ñ€Ðµ.-->
        <cue name="AnySatelliteDestroyed" instantiate="true">
          <conditions>
            <event_object_destroyed group="$anySatellites" />
          </conditions>
          <actions>
            <remove_from_group group="$anySatellites" object="event.object" />
          </actions>
          <delay min="10s" max="30s" /> <!--Ð´Ð°Ñ‚ÑŒ Ð²Ñ€ÐµÐ¼Ñ Ð½Ð° Ð¾Ñ‚Ð¿Ð¸ÑÐºÑƒ ÑÑ‚Ð°Ð½Ð¸Ñ†Ð¸Ð¹ Ð¸/Ð¸Ð»Ð¸ Ð±Ñ‹ÑÑ‚Ñ€ÑƒÑŽ Ð¿ÐµÑ€ÐµÑƒÑÑ‚Ð°Ð½Ð¾Ð²ÐºÑƒ Ð½Ð¾Ð²Ð¾Ð³Ð¾ ÑÐ¿ÑƒÑ‚Ð½Ð¸ÐºÐ°-->
          <actions>
            <do_if value="$anySatellites.count == 0">
              <remove_from_group group="Setup.$controlledSectors" object="$sector" />
              <cancel_cue cue="namespace" />
            </do_if>
          </actions>
        </cue>
        <!--Ð£ÑÑ‚Ð°Ð½Ð¾Ð²Ð»ÐµÐ½ Ð½Ð¾Ð²Ñ‹Ð¹ ÑÐ¿ÑƒÑ‚Ð½Ð¸Ðº.-->
        <cue name="NewSectorSatellite" instantiate="true">
          <conditions>
            <event_satellite_launched space="$sector" />
            <check_value value="event.param2.isplayerowned" />
          </conditions>
          <actions>
            <set_value name="$satellite" exact="event.param2" />
            <include_actions ref="AppendNewSatellite" />
            <!--Ð•ÑÐ»Ð¸ ÑÑ‚Ð¾ Ð¿ÐµÑ€Ð²Ñ‹Ð¹ Ð¾Ð±Ñ‹Ñ‡Ð½Ñ‹Ð¹ ÑÐ¿ÑƒÑ‚Ð½Ð¸Ðº, Ñ‚Ð¾ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚Ð°Ñ‚ÑŒ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐºÐ¸ ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¹ Ð½ÐµÐ¼ÐµÐ´Ð»ÐµÐ½Ð½Ð¾.-->
            <do_if value="$ordSatellites.count == 1">
              <reset_cue cue="OrdinaryScan" />
            </do_if>
            <!--Ð•ÑÐ»Ð¸ ÑÑ‚Ð¾ Ð¿ÐµÑ€Ð²Ñ‹Ð¹ Ð¿Ñ€Ð¾Ð´Ð²Ð¸Ð½ÑƒÑ‚Ñ‹Ð¹ ÑÐ¿ÑƒÑ‚Ð½Ð¸Ðº, Ñ‚Ð¾ Ð¾Ñ‚ÐºÑ€Ñ‹Ñ‚ÑŒ ÑÑ‚Ð°Ð½Ñ†Ð¸Ð¸ Ð½ÐµÐ¼ÐµÐ´Ð»ÐµÐ½Ð½Ð¾.-->
            <do_if value="$advSatellites.count == 1">
              <reset_cue cue="AdvancedScan" />
            </do_if>
            <remove_value name="$satellite" />
          </actions>
        </cue>
      </cues>
    </cue>

    <library name="AppendNewSatellite" purpose="include_actions">
      <actions>
        <add_to_group groupname="$anySatellites" object="$satellite" />
        <do_if value="$satellite.macro == macro.eq_arg_satellite_01_macro">
          <add_to_group groupname="$ordSatellites" object="$satellite" />
        </do_if>
        <do_elseif value="$satellite.macro == macro.eq_arg_satellite_02_macro">
          <add_to_group groupname="$ordSatellites" object="$satellite" />
          <add_to_group groupname="$advSatellites" object="$satellite" />
        </do_elseif>
        </actions>
    </library>
  </cues>
</mdscript>
<?xml version="1.0" encoding="utf-8"?>
<content id="" name="" description="" author="Arshiba" version="100" save="false" date="2024-08-19" lastupdate="">
  <dependency version="500"/>
</content>
