[Mod] Boarding Target Protector V1.04

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Romz
Posts: 6
Joined: Sat, 24. Dec 16, 20:39

Post by Romz » Tue, 12. Dec 17, 17:46

alexalsp wrote:They do not shoot because there is no one to shoot. ))
I normally seized ships even in the middle of the sector near the station. Allies do as I wrote above. The main thing - to have time to declare boarding, before the ship is disassembled.

oliverjanda
Posts: 308
Joined: Sun, 14. Feb 10, 18:47

Post by oliverjanda » Thu, 4. Jan 18, 15:15

I haven't modded for some years and did this in notepad++ but how about this:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<mdscript name="BoardingTargetProtector" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <cues>
    <cue name="BoardingStarted" instantiate="true" namespace="this" version="100">
      <conditions>
        <event_boarding_triggered/>
      </conditions>
      <actions>
        <set_value name="$boardee" exact="event.param2"/>
        <set_owner object="$boardee" faction="faction.friend"/>
        <add_relation_boost object="$boardee" otherobject="$boardee.boarder" value="-0.1" decay="1" delay="480min" silent="true" />
      </actions>
      <cues>
        <cue name="BoardingEnded" checktime="5s" checkinterval="5s" version="100">
          <conditions>
            <check_value value="$boardee.boarder.exists" negate="true"/>
          </conditions>
          <actions>
            <cancel_cue cue="BoardingStarted"/>
          </actions>
        </cue>
      </cues>
    </cue>
  </cues>
</mdscript>

Requiemfang
Posts: 2743
Joined: Thu, 16. Jul 09, 12:24

Post by Requiemfang » Mon, 8. Jan 18, 03:42

Huh seems familiar seeing how J3ANP3T3R did a similar script although it was a combination script of it mainly being around protecting your trade ships from Fields of Opportunity pirates. It added a script that protected any ships you were boarding as well. Though it's old now and no longer works.

oliverjanda
Posts: 308
Joined: Sun, 14. Feb 10, 18:47

Post by oliverjanda » Mon, 8. Jan 18, 11:08

@ Requiemfang
The mod is not available for download anymore, so i cant take a llok.

Post Reply

Return to “X Rebirth - Scripts and Modding”