I have tried the following in the condition block:
Code: Select all
<check_value value="not event.param.iswreck"/>
<check_value value="event.param.iswreck != 1"/>
<check_value value="event.param.iswreck == 0"/>
<check_value value="event.param.state =! 'wreck'"/>
<check_value value="event.param.iswreck" exact="0"/>
The whole condition block looks like this:
Code: Select all
<conditions>
<check_any>
<check_all>
<event_player_owned_killed_object/>
<check_any>
<check_value value="event.param2.isclass.ship"/>
<check_value value="event.param2.isclass.station"/>
<check_value value="event.param2.isclass.module"/>
<check_value value="event.param2.issurfaceelement"/>
<check_value value="event.param2.islasertower"/>
</check_any>
</check_all>
<check_all>
<event_player_owned_attacked_object/>
<check_value value="event.param2.isoperational"/>
</check_all>
</check_any>
<!-- This is where the query should go in <check_value value="not event.param.iswreck"/> -->
<check_value value="not @event.param.hasrelation.enemy.{@event.param2.trueowner}"/>
<check_value value="event.param2.trueowner.knownname != {20203, 1001}"/>
</conditions>
Code: Select all
<do_if value="not event.param.iswreck">
(The code is mostly from Mycu, try to make some improvements).