Gord

AA-specific Secondary Color Override

Oct 6th, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.09 KB | None | 0 0
  1.     <!--AA-specific Secondary Color Override-->
  2.  
  3. <!--Add this section to the end of <StringTable>-->
  4. <String name="Jetpack">
  5.   <String>Jetpack</String>
  6. </String>
  7. <String name="Active Camo">
  8.   <String>Active Camo</String>
  9. </String>
  10. <String name="Hologram">
  11.   <String>Hologram</String>
  12. </String>
  13. <String name="Hardlight Shield">
  14.   <String>Hardlight Shield</String>
  15. </String>
  16. <String name="Auto Turret">
  17.   <String>Auto Turret</String>
  18. </String>
  19. <String name="Promethean Vision">
  20.   <String>Promethean Vision</String>
  21. </String>
  22. <String name="Thruster">
  23.   <String>Thruster</String>
  24. </String>
  25. <String name="Regen">
  26.   <String>Regen</String>
  27. </String>
  28.  
  29. <!--Add this section after Leader Traits in <PlayerTraits>-->
  30. <entry nameIndex="Jetpack" descIndex="Jetpack" name="Jetpack">
  31.   <Traits>
  32.     <Appearance> <!--White-->
  33.       <PrimaryColor R="255" G="255" B="255" A="True" /> <!--A="True" effectively disables this trait. This line can be deleted as it's unused, or set to false to override the primary color as well-->
  34.       <SecondaryColor R="255" G="255" B="255" A="False" />
  35.     </Appearance>
  36.   </Traits>
  37. </entry>
  38. <entry nameIndex="Active Camo" descIndex="Active Camo" name="Active Camo">
  39.   <Traits>
  40.     <Appearance> <!--Cyan-->
  41.       <PrimaryColor R="0" G="255" B="255" A="True" />
  42.       <SecondaryColor R="0" G="255" B="255" A="False" />
  43.     </Appearance>
  44.   </Traits>
  45. </entry>
  46. <entry nameIndex="Hologram" descIndex="Hologram" name="Hologram">
  47.   <Traits>
  48.     <Appearance> <!--Black, unused-->
  49.       <PrimaryColor R="0" G="0" B="0" A="True" />
  50.       <SecondaryColor R="0" G="0" B="0" A="True" /> <!--I left this disabled as it's kind of a give-away. Set to false if you want to try it out-->
  51.     </Appearance>
  52.   </Traits>
  53. </entry>
  54. <entry nameIndex="Hardlight Shield" descIndex="Hardlight Shield" name="Hardlight Shield">
  55.   <Traits>
  56.     <Appearance> <!--Royal blue-->
  57.       <PrimaryColor R="0" G="0" B="255" A="True" />
  58.       <SecondaryColor R="0" G="0" B="255" A="False" />
  59.     </Appearance>
  60.   </Traits>
  61. </entry>
  62. <entry nameIndex="Auto Turret" descIndex="Auto Turret" name="Auto Turret">
  63.   <Traits>
  64.     <Appearance> <!--Orange-->
  65.       <PrimaryColor R="255" G="128" B="0" A="True" />
  66.       <SecondaryColor R="255" G="128" B="0" A="False" />
  67.     </Appearance>
  68.   </Traits>
  69. </entry>
  70. <entry nameIndex="Promethean Vision" descIndex="Promethean Vision" name="Promethean Vision">
  71.   <Traits>
  72.     <Appearance> <!--Red-->
  73.       <PrimaryColor R="255" G="0" B="0" A="True" />
  74.       <SecondaryColor R="255" G="0" B="0" A="False" />
  75.     </Appearance>
  76.   </Traits>
  77. </entry>
  78. <entry nameIndex="Thruster" descIndex="Thruster" name="Thruster">
  79.   <Traits>
  80.     <Appearance> <!--Purple-->
  81.       <PrimaryColor R="120" G="0" B="220" A="True" />
  82.       <SecondaryColor R="120" G="0" B="220" A="False" />
  83.     </Appearance>
  84.   </Traits>
  85. </entry>
  86. <entry nameIndex="Regen" descIndex="Regen" name="Regen">
  87.   <Traits>
  88.     <Appearance> <!--Green-->
  89.       <PrimaryColor R="0" G="176" B="0" A="True" />
  90.       <SecondaryColor R="0" G="176" B="0" A="False" />
  91.     </Appearance>
  92.   </Traits>
  93. </entry>
  94.  
  95. <!--Add this trigger to the <Triggers> section and adjust the trigger number accordingly-->
  96. <Trigger execMode="OnEachPlayer" name="Trigger19"> <!--set traits-->
  97.   <Elements>
  98.     <E type="Action" name="VariableOperation"> <!--Clear scratch-->
  99.       <Param type="VarReference" varRefKind="Object" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  100.       <Param type="VarReference" varRefKind="Object" varRefType="ExplicitObjectType" dataType="NONE" />
  101.       <Param type="OperationType">Set</Param>
  102.     </E>
  103.     <E type="Action" name="PlayerGetArmorAbility"> <!--Pull reference to player's AA-->
  104.       <Param type="PlayerReference" varRefType="ExplicitPlayerType" dataType="Iterator.Player" />
  105.       <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  106.     </E>
  107.     <E type="Action" name="Branch">
  108.       <Param type="VirtualTrigger">
  109.         <VT type="VirtualTrigger">
  110.           <E type="Condition" name="ObjectIsSameType" unionGroupID="-2"> <!--If AA is a specific AA-->
  111.             <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  112.             <Param type="ObjectTypeIndex">jet_pack_equipment</Param>
  113.           </E>
  114.           <E type="Action" name="ApplyPlayerTraits"> <!--Apply specific traits-->
  115.             <Param type="PlayerReference" varRefType="ExplicitPlayerType" dataType="Iterator.Player" />
  116.             <Param type="PlayerTraitsReference">Jetpack</Param>
  117.           </E>
  118.         </VT>
  119.       </Param>
  120.     </E>
  121.     <E type="Action" name="Branch">
  122.       <Param type="VirtualTrigger">
  123.         <VT type="VirtualTrigger">
  124.           <E type="Condition" name="ObjectIsSameType" unionGroupID="-2">
  125.             <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  126.             <Param type="ObjectTypeIndex">active_camo_equipment</Param>
  127.           </E>
  128.           <E type="Action" name="ApplyPlayerTraits">
  129.             <Param type="PlayerReference" varRefType="ExplicitPlayerType" dataType="Iterator.Player" />
  130.             <Param type="PlayerTraitsReference">Active Camo</Param>
  131.           </E>
  132.         </VT>
  133.       </Param>
  134.     </E>
  135.     <E type="Action" name="Branch">
  136.       <Param type="VirtualTrigger">
  137.         <VT type="VirtualTrigger">
  138.           <E type="Condition" name="ObjectIsSameType" unionGroupID="-2">
  139.             <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  140.             <Param type="ObjectTypeIndex">hologram_equipment</Param>
  141.           </E>
  142.           <E type="Action" name="ApplyPlayerTraits">
  143.             <Param type="PlayerReference" varRefType="ExplicitPlayerType" dataType="Iterator.Player" />
  144.             <Param type="PlayerTraitsReference">Hologram</Param>
  145.           </E>
  146.         </VT>
  147.       </Param>
  148.     </E>
  149.     <E type="Action" name="Branch">
  150.       <Param type="VirtualTrigger">
  151.         <VT type="VirtualTrigger">
  152.           <E type="Condition" name="ObjectIsSameType" unionGroupID="-2">
  153.             <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  154.             <Param type="ObjectTypeIndex">reflective_shield</Param>
  155.           </E>
  156.           <E type="Action" name="ApplyPlayerTraits">
  157.             <Param type="PlayerReference" varRefType="ExplicitPlayerType" dataType="Iterator.Player" />
  158.             <Param type="PlayerTraitsReference">Hardlight Shield</Param>
  159.           </E>
  160.         </VT>
  161.       </Param>
  162.     </E>
  163.     <E type="Action" name="Branch">
  164.       <Param type="VirtualTrigger">
  165.         <VT type="VirtualTrigger">
  166.           <E type="Condition" name="ObjectIsSameType" unionGroupID="-2">
  167.             <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  168.             <Param type="ObjectTypeIndex">auto_turret</Param>
  169.           </E>
  170.           <E type="Action" name="ApplyPlayerTraits">
  171.             <Param type="PlayerReference" varRefType="ExplicitPlayerType" dataType="Iterator.Player" />
  172.             <Param type="PlayerTraitsReference">Auto Turret</Param>
  173.           </E>
  174.         </VT>
  175.       </Param>
  176.     </E>
  177.     <E type="Action" name="Branch">
  178.       <Param type="VirtualTrigger">
  179.         <VT type="VirtualTrigger">
  180.           <E type="Condition" name="ObjectIsSameType" unionGroupID="-2">
  181.             <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  182.             <Param type="ObjectTypeIndex">xray</Param>
  183.           </E>
  184.           <E type="Action" name="ApplyPlayerTraits">
  185.             <Param type="PlayerReference" varRefType="ExplicitPlayerType" dataType="Iterator.Player" />
  186.             <Param type="PlayerTraitsReference">Promethean Vision</Param>
  187.           </E>
  188.         </VT>
  189.       </Param>
  190.     </E>
  191.     <E type="Action" name="Branch">
  192.       <Param type="VirtualTrigger">
  193.         <VT type="VirtualTrigger">
  194.           <E type="Condition" name="ObjectIsSameType" unionGroupID="-2">
  195.             <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  196.             <Param type="ObjectTypeIndex">thruster_pack_equipment</Param>
  197.           </E>
  198.           <E type="Action" name="ApplyPlayerTraits">
  199.             <Param type="PlayerReference" varRefType="ExplicitPlayerType" dataType="Iterator.Player" />
  200.             <Param type="PlayerTraitsReference">Thruster</Param>
  201.           </E>
  202.         </VT>
  203.       </Param>
  204.     </E>
  205.     <E type="Action" name="Branch">
  206.       <Param type="VirtualTrigger">
  207.         <VT type="VirtualTrigger">
  208.           <E type="Condition" name="ObjectIsSameType" unionGroupID="-2">
  209.             <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="ObjectScratch0" />
  210.             <Param type="ObjectTypeIndex">regen_field_equipment</Param>
  211.           </E>
  212.           <E type="Action" name="ApplyPlayerTraits">
  213.             <Param type="PlayerReference" varRefType="ExplicitPlayerType" dataType="Iterator.Player" />
  214.             <Param type="PlayerTraitsReference">Regen</Param>
  215.           </E>
  216.         </VT>
  217.       </Param>
  218.     </E>
  219.   </Elements>
  220. </Trigger>
Advertisement
Add Comment
Please, Sign In to add comment