Advertisement
Guest User

Yamoto-AutomaticArts

a guest
Apr 19th, 2012
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 14.80 KB | None | 0 0
  1. Yea I was kinda half asleep when I wrote that. Here's the parts I greatly enjoy:
  2. [spoiler][code]<?xml Version="1.0" ?>
  3. <spellcast>
  4.     <config RequireVersion="2.21"/>
  5.     <variables Clear="True">
  6. <!--Do not change these-->
  7.         <var Name="ChangeAddendum">0</var>
  8.         <var Name="ChangeArt">0</var>
  9.         <var Name="StratagemPrep">0</var>
  10.         <var Name="StratagemConserveMP">0</var>
  11.         <var Name="StratagemFastCast">0</var>
  12.         <var Name="StratagemAreaEffect">0</var>
  13.         <var Name="StratagemPotency">0</var>
  14. <!--Set these to 1 if you want Spellcast to automatically change your Arts and Addendum to match the spell you're using, otherwise set to 0-->
  15.         <var Name="AutomaticArts">0</var>
  16.         <var Name="AutomaticAddendum">1</var>
  17. <!--Set this to 1 if you want Stratagems to be queued and automatically used before a spell, otherwise set to 0 (Recommended if using Automatic Arts/Addendums)-->
  18.         <var Name="QueueStratagems">1</var>
  19.     </variables>
  20.     <rules>
  21. <!--Queues up Stratagems for use before spells if enabled-->
  22.         <if Spell="Accession|Alacrity|Celerity|Ebullience|Manifestation|Parsimony|Penury|Rapture">
  23.             <if Advanced="$QueueStratagems=1 AND $StratagemPrep=0">
  24.                 <if Spell="Parsimony|Penury">
  25.                     <if Advanced="$StratagemConserveMP=0">
  26.                         <action Type="Var" cmd="set StratagemConserveMP 1"/>
  27.                         <action Type="AddtoChat" Color="121">[Penury/Parsimony: Enabled] Reduces the MP cost of your next spell by 50%.</action>
  28.                     </if>
  29.                     <else>
  30.                         <action Type="Var" cmd="set StratagemConserveMP 0"/>
  31.                         <action Type="AddtoChat" Color="121">[Penury/Parsimony: Disabled]</action>
  32.                     </else>
  33.                 </if>
  34.                 <if Spell="Alacrity|Celerity">
  35.                     <if Advanced="$StratagemFastCast=0">
  36.                         <action Type="Var" cmd="set StratagemFastCast 1"/>
  37.                         <action Type="AddtoChat" Color="121">[Celerity/Alacrity: Enabled] Reduces the casting time and recast time of your next spell by 50%.</action>
  38.                     </if>
  39.                     <else>
  40.                         <action Type="Var" cmd="set StratagemFastCast 0"/>
  41.                         <action Type="AddtoChat" Color="121">[Celerity/Alacrity: Disabled]</action>
  42.                     </else>
  43.                 </if>
  44.                 <if Spell="Accession|Manifestation">
  45.                     <if Advanced="$StratagemAreaEffect=0">
  46.                         <action Type="Var" cmd="set StratagemAreaEffect 1"/>
  47.                         <action Type="AddtoChat" Color="121">[Accession/Manifestation: Enabled] Extends the effect of your next spell to targets within range. MP cost and recast time are doubled.</action>
  48.                     </if>
  49.                     <else>
  50.                         <action Type="Var" cmd="set StratagemAreaEffect 0"/>
  51.                         <action Type="AddtoChat" Color="121">[Accession/Manifestation: Disabled]</action>
  52.                     </else>
  53.                 </if>
  54.                 <if Spell="Ebullience|Rapture">
  55.                     <if Advanced="$StratagemPotency=0">
  56.                         <action Type="Var" cmd="set StratagemPotency 1"/>
  57.                         <action Type="AddtoChat" Color="121">[Rapture/Ebullience: Enabled] Enhances potency of your next spell.</action>
  58.                     </if>
  59.                     <else>
  60.                         <action Type="Var" cmd="set StratagemPotency 0"/>
  61.                         <action Type="AddtoChat" Color="121">[Rapture/Eullience: Disabled]</action>
  62.                     </else>
  63.                 </if>
  64.                 <if Spell="Immanence|Perpetuance">
  65.                     <if Advanced="$Stratagem87=0">
  66.                         <action Type="Var" cmd="set Stratagem87 1"/>
  67.                         <if Buffactive="Light Arts|Addendum: White">
  68.                             <action Type="AddtoChat" Color="121">[Perpetuance/Immanence: Enabled] Extends the duration of next White Magic spell.</action>
  69.                         </if>
  70.                         <elseif Buffactive="Dark Arts|Addendum: Black">
  71.                             <action Type="AddtoChat" Color="121">[Perpetuance/Immanence: Enabled] Allows the next Black Magic spell to be used in a Skillchain.</action>
  72.                         </elseif>
  73.                         <else>
  74.                             <action Type="AddtoChat" Color="121">[Perpetuance/Immanence: Enabled]</action>
  75.                         </else>
  76.                     </if>
  77.                     <else>
  78.                         <action Type="Var" cmd="set Stratagem87 0"/>
  79.                         <action Type="AddtoChat" Color="121">[Perpetuance/Immanence: Disabled]</action>
  80.                     </else>
  81.                 </if>
  82.                 <action Type="CancelSpell"/>
  83.             </if>
  84.         </if>
  85.         <if Type="BlackMagic|WhiteMagic">
  86.             <if Type="BlackMagic">
  87.             <!--Uses Dark Arts if casting a Black Magic spell-->
  88.                 <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$AutomaticArts=1 AND $ChangeArt=0">
  89.                     <action Type="Var" cmd="set ChangeArt 1"/>
  90.                     <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  91.                     <action Type="Command">Dark Arts</action>
  92.                     <action Type="CancelSpell"/>
  93.                     <action Type="Return"/>
  94.                 </if>
  95.                 <!--Uses Addendum: Black if required to cast spell-->
  96.                 <if Spell="Sleep*|Dispel|*IV|*V|Break" NotBuffActive="Addendum: Black|Enlightenment" Advanced='$AutomaticAddendum=1 AND $ChangeAddendum=0
  97.                     AND("%Spell"="Aero IV" OR "%Spell"="Blizzard IV" OR "%Spell"="Fire IV" OR "%Spell"="Stone IV" OR "%Spell"="Thunder IV" OR "%Spell"="Water IV"
  98.                     OR "%Spell"="Aero V" OR "%Spell"="Blizzard V" OR "%Spell"="Fire V" OR "%Spell"="Stone V" OR "%Spell"="Thunder V" OR "%Spell"="Water V"
  99.                     OR "%Spell"="Break"
  100.                     OR (("%Spell"="Dispel" AND ("%SubJob"!="RDM" OR ("%SubJob"="RDM" AND %SubJobLVL&lt;32)))
  101.                     OR ("%Spell"="Sleep" AND (("%SubJob"!="BLM" AND "%SubJob"!="DRK" AND "%SubJob"!="RDM")
  102.                         OR (("%SubJob"="BLM" AND %SubJobLVL&lt;20)
  103.                         OR ("%SubJob"="DRK" AND %SubJobLVL&lt;30)
  104.                         OR ("%SubJob"="RDM" AND %SubJobLVL&lt;25))))
  105.                     OR ("%Spell"="Sleep II" AND (("%SubJob"!="BLM" AND "%SubJob"!="RDM")
  106.                         OR (("%SubJob"="BLM" AND %SubJobLVL&lt;41)
  107.                         OR ("%SubJob"="RDM" AND %SubJobLVL&lt;46))))))'>
  108.                     <if NotBuffActive="Dark Arts" Advanced="$ChangeArt=0">
  109.                         <action Type="Var" cmd="set ChangeArt 1"/>
  110.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  111.                         <action Type="Command">Dark Arts</action>
  112.                         <action Type="CancelSpell"/>
  113.                         <action Type="Return"/>
  114.                     </if>
  115.                     <action Type="Var" cmd="set ChangeAddendum 1"/>
  116.                     <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  117.                     <action Type="Command">Addendum: Black</action>
  118.                     <action Type="CancelSpell"/>
  119.                     <action Type="Return"/>
  120.                 </if>
  121.                 <!--Uses Stratagems if they have been added to the queue-->
  122.                 <if Advanced="$QueueStratagems=1">
  123.                     <action Type="Var" cmd="set StratagemPrep 1"/>
  124.                     <if Advanced="$StratagemConserveMP=1">
  125.                         <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
  126.                             <action Type="Var" cmd="set ChangeArt 1"/>
  127.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  128.                             <action Type="Command">Dark Arts</action>
  129.                             <action Type="CancelSpell"/>
  130.                             <action Type="Return"/>
  131.                         </if>
  132.                         <action Type="Var" cmd="set StratagemConserveMP 0"/>
  133.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  134.                         <action Type="Command">Parsimony</action>
  135.                         <action Type="CancelSpell"/>
  136.                         <action Type="Return"/>
  137.                     </if>
  138.                     <if Advanced="$StratagemFastCast=1">
  139.                         <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
  140.                             <action Type="Var" cmd="set ChangeArt 1"/>
  141.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  142.                             <action Type="Command">Dark Arts</action>
  143.                             <action Type="CancelSpell"/>
  144.                             <action Type="Return"/>
  145.                         </if>
  146.                         <action Type="Var" cmd="set StratagemFastCast 0"/>
  147.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  148.                         <action Type="Command">Alacrity</action>
  149.                         <action Type="CancelSpell"/>
  150.                         <action Type="Return"/>
  151.                     </if>
  152.                     <if Advanced="$StratagemAreaEffect=1" Spell="Absorb*|Aspir|Bind|Bio*|Blind|Dispel|Drain|Gravity|Klimaform|Poison|Sleep*|Stun|Kaustra">
  153.                         <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
  154.                             <action Type="Var" cmd="set ChangeArt 1"/>
  155.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  156.                             <action Type="Command">Dark Arts</action>
  157.                             <action Type="CancelSpell"/>
  158.                             <action Type="Return"/>
  159.                         </if>
  160.                         <action Type="Var" cmd="set StratagemAreaEffect 0"/>
  161.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  162.                         <action Type="Command">Manifestation</action>
  163.                         <action Type="CancelSpell"/>
  164.                         <action Type="Return"/>
  165.                     </if>
  166.                     <if Advanced="$StratagemPotency=1" Spell="Aero*|Aspir|Bio*|Blizzard*|Drain|Fire*|Stone*|Thunder*|Water*|*helix|Kaustra">
  167.                         <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
  168.                             <action Type="Var" cmd="set ChangeArt 1"/>
  169.                             <action Type="Command">wait 1.5;%Spell</action>
  170.                             <action Type="Command">Dark Arts</action>
  171.                             <action Type="CancelSpell"/>
  172.                             <action Type="Return"/>
  173.                         </if>
  174.                         <action Type="Var" cmd="set StratagemPotency 0"/>
  175.                         <action Type="Command">wait 1.5;%Spell</action>
  176.                         <action Type="Command">Ebullience</action>
  177.                         <action Type="CancelSpell"/>
  178.                         <action Type="Return"/>
  179.                     </if>
  180.                     <if Advanced="$Stratagem87=1">
  181.                         <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
  182.                             <action Type="Var" cmd="set ChangeArt 1"/>
  183.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  184.                             <action Type="Command">Dark Arts</action>
  185.                             <action Type="CancelSpell"/>
  186.                             <action Type="Return"/>
  187.                         </if>
  188.                         <action Type="Var" cmd="set Stratagem87 0"/>
  189.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  190.                         <action Type="Command">Immanence</action>
  191.                         <action Type="CancelSpell"/>
  192.                         <action Type="Return"/>
  193.                     </if>
  194.                     <action Type="Var" cmd="set StratagemPrep 0"/>
  195.                 </if>
  196.             </if>
  197.             <if Type="WhiteMagic">
  198.             <!--Uses to Light Arts if casting a White Magic spell-->
  199.                 <if NotBuffActive="Light Arts|Addendum: White" Advanced="$AutomaticArts=1 AND $ChangeArt=0">
  200.                     <action Type="Var" cmd="set ChangeArt 1"/>
  201.                     <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  202.                     <action Type="Command">Light Arts</action>
  203.                     <action Type="CancelSpell"/>
  204.                     <action Type="Return"/>
  205.                 </if>
  206.                 <!--Uses Addendum: White if required to cast spell-->
  207.                 <if Spell="Erase|Raise II*|Reraise*|*na" NotBuffActive="Addendum: White|Enlightenment" Advanced='$AutomaticAddendum=1 AND $ChangeAddendum=0
  208.                     AND ("%Spell"="Raise II" OR "%Spell"="Raise III" OR "%Spell"="Reraise II" OR "%Spell"="Reraise III" OR "%Spell"="Stona" OR ("%SubJob"!="WHM" OR ("%SubJob"="WHM"
  209.                     AND (("%Spell"="Blindna" AND %SubJobLVL&lt;14)
  210.                     OR ("%Spell"="Cursna" AND %SubJobLVL&lt;29)
  211.                     OR ("%Spell"="Erase" AND %SubJobLVL&lt;32)
  212.                     OR ("%Spell"="Paralyna" AND %SubJobLVL&lt;9)
  213.                     OR ("%Spell"="Poisona" AND %SubJobLVL&lt;6)
  214.                     OR ("%Spell"="Reraise" AND %SubJobLVL&lt;33)
  215.                     OR ("%Spell"="Silena" AND %SubJobLVL&lt;19)
  216.                     OR ("%Spell"="Viruna" AND %SubJobLVL&lt;34)))))'>
  217.                     <if NotBuffActive="Light Arts" Advanced="$ChangeArt=0">
  218.                         <action Type="Var" cmd="set ChangeArt 1"/>
  219.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  220.                         <action Type="Command">Light Arts</action>
  221.                         <action Type="CancelSpell"/>
  222.                         <action Type="Return"/>
  223.                     </if>
  224.                     <action Type="Var" cmd="set ChangeAddendum 1"/>
  225.                     <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  226.                     <action Type="Command">Addendum: White</action>
  227.                     <action Type="CancelSpell"/>
  228.                     <action Type="Return"/>
  229.                 </if>
  230.                 <!--Uses Stratagems if they have been added to the queue-->
  231.                 <if Advanced="$QueueStratagems=1">
  232.                     <action Type="Var" cmd="set StratagemPrep 1"/>
  233.                     <if Advanced="$StratagemConserveMP=1">
  234.                         <if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
  235.                             <action Type="Var" cmd="set ChangeArt 1"/>
  236.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  237.                             <action Type="Command">Light Arts</action>
  238.                             <action Type="CancelSpell"/>
  239.                             <action Type="Return"/>
  240.                         </if>
  241.                         <action Type="Var" cmd="set StratagemConserveMP 0"/>
  242.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  243.                         <action Type="Command">Penury</action>
  244.                         <action Type="CancelSpell"/>
  245.                         <action Type="Return"/>
  246.                     </if>
  247.                     <if Advanced="$StratagemFastCast=1">
  248.                         <if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
  249.                             <action Type="Var" cmd="set ChangeArt 1"/>
  250.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  251.                             <action Type="Command">Light Arts</action>
  252.                             <action Type="CancelSpell"/>
  253.                             <action Type="Return"/>
  254.                         </if>
  255.                         <action Type="Var" cmd="set StratagemFastCast 0"/>
  256.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  257.                             <action Type="Command">Celerity</action>
  258.                             <action Type="CancelSpell"/>
  259.                             <action Type="Return"/>
  260.                     </if>
  261.                     <if Advanced="$StratagemAreaEffect=1" Spell="Aquaveil|Bar*|Blink|Cure*|Deodorize|En*|Erase|Invisible|Phalanx|Protect*|Regen*|Shell*|Sneak|Stoneskin|*na|*storm|Animus*|Embrava|Adloquium" NotSpell="*ra">
  262.                         <if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
  263.                             <action Type="Var" cmd="set ChangeArt 1"/>
  264.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  265.                             <action Type="Command">Light Arts</action>
  266.                             <action Type="CancelSpell"/>
  267.                             <action Type="Return"/>
  268.                         </if>
  269.                         <action Type="Var" cmd="set StratagemAreaEffect 0"/>
  270.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  271.                         <action Type="Command">Accession</action>
  272.                         <action Type="CancelSpell"/>
  273.                         <action Type="Return"/>
  274.                     </if>
  275.                     <if Advanced="$StratagemPotency=1" Spell="Banish*|Cure*|Dia*">
  276.                         <if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
  277.                             <action Type="Var" cmd="set ChangeArt 1"/>
  278.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  279.                             <action Type="Command">Light Arts</action>
  280.                             <action Type="CancelSpell"/>
  281.                             <action Type="Return"/>
  282.                         </if>
  283.                         <action Type="Var" cmd="set StratagemPotency 0"/>
  284.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  285.                         <action Type="Command">Rapture</action>
  286.                         <action Type="CancelSpell"/>
  287.                         <action Type="Return"/>
  288.                     </if>
  289.                     <if Advanced="$Stratagem87=1">
  290.                         <if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
  291.                             <action Type="Var" cmd="set ChangeArt 1"/>
  292.                             <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  293.                             <action Type="Command">Light Arts</action>
  294.                             <action Type="CancelSpell"/>
  295.                             <action Type="Return"/>
  296.                         </if>
  297.                         <action Type="Var" cmd="set Stratagem87 0"/>
  298.                         <action Type="Command">wait 1.5;%Spell %SpellTargetRaw;</action>
  299.                         <action Type="Command">Perpetuance</action>
  300.                         <action Type="CancelSpell"/>
  301.                         <action Type="Return"/>
  302.                     </if>
  303.                     <action Type="Var" cmd="set StratagemPrep 0"/>
  304.                 </if>
  305.             </if>
  306.             <action Type="Var" cmd="set ChangeArt 0"/>
  307.             <action Type="Var" cmd="set ChangeAddendum 0"/>
  308.         </if>
  309.     </rules>
  310. </spellcast>[/code][/spoiler]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement