du meinst den TC HQ plot?
original code: (ab zeile 1190)
Code: Select all
<create_ship boardable="1" name="L2M008.TL" communicates="0" race="none" racelogic="0" typename="SS_SH_B_TL" invincible="1">
<position x="0" y="0" z="0" min="20km" max="30km" height="10km"/>
<sector sector="L2M008.TL Sector"/>
<equipment loadout="maximum"/>
<cargo>
<ware typename="SS_DOCK_P_HQ" exact="1" critical="1"/>
</cargo>
<command command="idle"/>
</create_ship>
änderst du um zu das:
Code: Select all
<do_choose>
<!--terraner starts-->
<do_when value="{player.gamestart}" list="101|102">
<set_value name="this.HQtype" exact="{lookup.type@SS_DOCK_TR_HQ}"/>
</do_when>
<!--alle anderen starts-->
<do_otherwise>
<set_value name="this.HQtype" exact="{lookup.type@SS_DOCK_P_HQ}"/>
</do_otherwise>
</do_choose>
<create_ship boardable="1" name="L2M008.TL" communicates="0" race="none" racelogic="0" typename="SS_SH_B_TL" invincible="1">
<position x="0" y="0" z="0" min="20km" max="30km" height="10km"/>
<sector sector="L2M008.TL Sector"/>
<equipment loadout="maximum"/>
<cargo>
<ware typename="{lookup.type@{value@this.HQtype}}" exact="1" critical="1"/>
</cargo>
<command command="idle"/>
</create_ship>
zusätzlich cue versionsnr erhöhen: (zeile 1177)
Code: Select all
<cue name="L2M008 Find TL Wait" version="3">
kurze erläuterung:
<do_when value="{player.gamestart}" list="101|102">
die zeile wird ausgeführt wenn der spielstart entweder 101 oder 102 ist (siehe datei L/true/gamestarts)
du kannst weitere hinzufügen, alle separiert durch das "ODER" symbol "|" (ALTGR + <)
du kannst auch weitere unterscheidungen treffen z.b. so:
Code: Select all
<do_choose>
<!--terraner starts-->
<do_when value="{player.gamestart}" list="101|102">
<set_value name="this.HQtype" exact="{lookup.type@SS_DOCK_TR_HQ}"/>
</do_when>
<!--bankrupt assassin gamestart-->
<do_when value="{player.gamestart}" exact="106">
<set_value name="this.HQtype" exact="{lookup.type@__wasanderes__}"/>
</do_when>
<!--alle anderen starts-->
<do_otherwise>
<set_value name="this.HQtype" exact="{lookup.type@SS_DOCK_P_HQ}"/>
</do_otherwise>
</do_choose>
der <do_otherwise> block wird nur dann ausgeführt, wenn alle vorherigen abfragen nicht zutreffen (als absicherung)