habe den Fehler gefunden.
Code: Select all
<flyto>
<position object="{object@Battlestar Galactica}"/>
</flyto>
Bleibt nur noch die eine Frage: Wie lösche ich dann wieder die Flotte?
mfg
TGG
Moderators: Moderatoren für Deutsches X-Forum, Scripting / Modding Moderators
Code: Select all
<flyto>
<position object="{object@Battlestar Galactica}"/>
</flyto>
Kurz und schmerzlos.TGG wrote:Bleibt nur noch die eine Frage: Wie lösche ich dann wieder die Flotte?
Code: Select all
<destroy_group group="cuename.fleetname" warp="1"/>
So kurz und schmerzlos war es dann doch nicht. Hatt nicht funktioniert, also habe ich einwenig experimentiert.Jens Ka wrote:Kurz und schmerzlos.Code: Select all
<destroy_group group="cuename.fleetname" warp="1"/>
Code: Select all
<destroy_object object="{Battlestar Galactica}" warp="1"/>
Nicht wenn du diese beim erstellen bereits in eine group einfügst.TGG wrote:Diese Zeile bringt mir den erwünschten Effect. Muss nur wieder jedes Schiff ( Object ) einzeln benennen.
Code: Select all
<create_ship name="this.Astral Queen" group="this.BSships" typename="SS_SH_Z_ASTQUEEN" race="terran" capturable="1" invincible="1">
<position x="-80" y="-80" z="-80"/>
<sector x="16" y="2"/>
<!--Jupiter3-->
<equipment loadout="default" />
<command command="none"/>
</create_ship>
Code: Select all
<destroy_group group="{cuename}.BSships" warp="1"/>
Code: Select all
<do_all>
[...]
<do_all exact="1">
<create_ship typename="SS_SH_K_QUEEN" race="khaak" group="L2M02 Scene 7.K Queen" boardable="0">
<position min="15km" max="25km"/>
<sector sector="L2M02.KhaakSec3"/>
<equipment loadout="maximum"/>
<command command="killenemies"/>
</create_ship>
</do_all>
<do_all exact="{group.object.count@L2M02 Scene 7.K Queen}" counter="count">
<do_all exact="25">
<create_ship typename="{random.type@SS_SH_THINKER|SS_SH_THINKER6|SS_SH_THINKER14|SS_SH_THINKER27|SS_SH_K_M3|SS_SH_K_M4|SS_SH_K_M5}" group="L2M02 Scene 7.Swarm {group.object.{counter@count}@L2M02 Scene 7.K Queen}" race="khaak">
<position object="{group.object.{counter@count}@L2M02 Scene 7.K Queen}" min="1km" max="3km"/>
<sector sector="L2M02.KhaakSec3"/>
<equipment loadout="maximum"/>
<command command="protect"/>
</create_ship>
</do_all>
</do_all>
[...]
<do_all exact="3">
<create_station typename="SS_DOCK_K" race="khaak" group="L2M02 Scene 7.K Stations" invincible="1">
<position min="20km" max="30km"/>
<sector sector="L2M02.KhaakSec3"/>
</create_station>
</do_all>
<do_all exact="{group.object.count@L2M02 Scene 7.K Stations}" counter="count">
<do_all exact="5">
<create_ship typename="SS_SH_K_HIVEGUARD" group="L2M02 Scene 7.Guardian {group.object.{counter@count}@L2M02 Scene 7.K Stations}" race="khaak">
<position object="{group.object.{counter@count}@L2M02 Scene 7.K Stations}" min="5km" max="10km"/>
<sector sector="L2M02.KhaakSec3"/>
<equipment loadout="maximum"/>
<command command="killenemies"/>
</create_ship>
</do_all>
</do_all>
</do_all>
Code: Select all
<cue name="L2M02 Scene 7 Guidance Update" delay="9s" instantiate="static">
<condition>
<check_any>
<check_all>
<check_value value="{group.object.count@L2M02 Scene 7.Guardian {group.nearest@L2M02 Scene 7.K Stations}}" min="1"/>
<check_any>
<object_exists object="L2M02 Scene 7.LastGuard" negate="1"/>
<check_value value="{group.nearest@L2M02 Scene 7.Guardian {group.nearest@L2M02 Scene 7.K Stations}}" exact="{object@L2M02 Scene 7.LastGuard}" negate="1"/>
</check_any>
</check_all>
<check_all>
<check_value value="{group.object.count@L2M02 Scene 7.Guardian {group.nearest@L2M02 Scene 7.K Stations}}" exact="0"/>
<check_any>
<object_exists object="L2M02 Scene 7.LastStation" negate="1"/>
<check_value value="{group.nearest@L2M02 Scene 7.K Stations}" exact="{object@L2M02 Scene 7.LastStation}" negate="1"/>
</check_any>
</check_all>
</check_any>
</condition>
<action>
<do_choose>
<do_when value="{group.object.count@L2M02 Scene 7.Guardian {group.nearest@L2M02 Scene 7.K Stations}}" min="1">
<remove_object object="L2M02 Scene 7.LastStation"/>
<set_object name="L2M02 Scene 7.LastGuard" value="{group.nearest@L2M02 Scene 7.Guardian {group.nearest@L2M02 Scene 7.K Stations}}"/>
<set_objective cue="L2M02 Scene 7">
<briefing cue="L2M02 Scene 7" step="3"/>
<destroy object="L2M02 Scene 7.LastGuard"/>
</set_objective>
</do_when>
<do_otherwise>
<set_object name="L2M02 Scene 7.LastStation" value="{group.nearest@L2M02 Scene 7.K Stations}"/>
<set_invincible object="L2M02 Scene 7.LastStation" invincible="0"/>
<set_objective cue="L2M02 Scene 7">
<briefing cue="L2M02 Scene 7" step="3"/>
<destroy object="L2M02 Scene 7.LastStation"/>
</set_objective>
</do_otherwise>
</do_choose>
</action>
</cue>
Code: Select all
<create_ship typename="SS_SH_K_QUEEN" race="khaak" name="L2M02 Scene 7.K Queen" group="L2M02 Scene 7.K QueenGruope" boardable="0">
<position min="15km" max="25km"/>
<sector sector="L2M02.KhaakSec3"/>
<equipment loadout="maximum"/>
<command command="killenemies"/>
</create_ship>
Code: Select all
<set_objective cue="L2M02 Scene 7">
<briefing cue="L2M02 Scene 7" step="3"/>
<destroy object="L2M02 Scene 7.K Queen"/>
</set_objective>
Code: Select all
<do_choose>
<do_when value="{player.age}" min="20">
<do_choose>
<do_when value="{player.gamestart}" exact="101" comment="Terran Defender">
<set_value name="Terran Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="102" comment="USC Commander">
<set_value name="Terran Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="104" comment="Argon Patriot">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="105" comment="Humble Merchant">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="106" comment="Bankrupt Assassin">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="110" comment="Tormented Teladi">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="111" comment="Poisoned Paranid">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="112" comment="Aldrin Adventurer">
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
<set_value name="Terran Plot Complete" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="113" comment="Goner Witness">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="114" comment="Unholy Traitor">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="116" comment="Teladi Trafficker">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="117" comment="Yaki Insurgent">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="118" comment="Lost Lar">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="119" comment="Savage Split">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="141" comment="Anonymous Argon">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="142" comment="Boring Boron">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_when value="{player.gamestart}" exact="143" comment="Pious Paranid">
<set_value name="Terran Link Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
<do_otherwise>
<set_value name="this.temp" exact="1"/>
</do_otherwise>
</do_choose>
Code: Select all
<!-- Terran Defender -->
<gamestart id="101" name="{1900,2001}" description="{1900,2101}" difficulty="{1900,2201}" image="start08" plot="1">
<player name="{1900,2301}" species="{1900,2401}" gender="{1900,2501}" age="{1900,2601}"/>
<!-- Uranus -->
<sector x="10" y="1"/>
<ship typename="SS_SH_USC_M4"/>
</gamestart>
Code: Select all
<do_when value="{player.gamestart}" exact="101" comment="Terran Defender">
<set_value name="Terran Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
Code: Select all
<do_when value="{player.gamestart}" exact="101" comment="Terran Defender">
<reward_player>
<money exact="1000"/>
<notoriety>
<relation race="argon" operation="set" exact="neutral-8"/>
<relation race="boron" operation="set" exact="neutral-11"/>
<relation race="paranid" operation="set" exact="foe-2"/>
<relation race="split" operation="set" exact="foe-5"/>
<relation race="teladi" operation="set" exact="neutral-5"/>
<relation race="goner" operation="set" exact="neutral+5"/>
<relation race="pirate" operation="set" exact="enemy"/>
<relation race="khaak" operation="set" exact="min" mutual="1"/>
<relation race="xenon" operation="set" exact="min" mutual="1"/>
<relation race="atf" operation="set" exact="{lookup.notoriety@notop2}"/>
<relation race="terran" operation="set" exact="neutral+10" mutual="1"/>
<relation race="yaki" operation="set" exact="enemy" mutual="1"/>
</notoriety>
<equipment>
<ware typename="SS_SHIELD_B" exact="4"/>
<ware typename="SS_LASER_EMP" exact="2"/>
<ware typename="SS_WARE_BOOST" exact="1"/>
<ware typename="SS_WARE_SCANNER2" exact="1"/>
<ware typename="SS_MISSILE_POLTERGEIST" exact="3"/>
<ware typename="SS_WARE_TECH213" exact="({player.ship.equipment.SS_WARE_TECH213.maxcount}/5)*4" comment="Engine Tunings"/>
<ware typename="SS_WARE_TECH231" exact="1" comment="SETA"/>
<ware typename="SS_WARE_TECH242" exact="1" comment="Video Enhancement Goggles"/>
<ware typename="SS_WARE_TECH246" exact="{player.ship.equipment.SS_WARE_TECH246.maxcount}/4+1" comment="Rudder Optomisation"/>
<ware typename="SS_WARE_TECH251" exact="{player.ship.equipment.SS_WARE_TECH251.maxcount}/3+1" comment="Cargo Bay Extension"/>
</equipment>
</reward_player>
<set_value name="ATF Notoriety" exact="{lookup.notoriety@notop2}"/>
<set_value name="Terran Plot" exact="1"/>
<set_value name="HUB Plot" exact="1"/>
<set_value name="HQ Plot" exact="1"/>
</do_when>
Also nochmals ausführlicher.ScRaT_GER wrote:Man kann ja alles auch über den direkten Weg regeln (z.B. direkt über <set_relation>).
Fluch und Segen des MD.Ketraar wrote:Man wird auch schnell merken das es im MD eigentlich fast nie NUR ein Weg gibt, sondern meist zwei oder gar mehr. Doppelt gemogelt hält bekanntlich besser