Skip to content

Instantly share code, notes, and snippets.

@Limiana
Created September 6, 2021 09:52
Show Gist options
  • Save Limiana/8788c387bfc5fcfd76499ef4e46d37d9 to your computer and use it in GitHub Desktop.
Save Limiana/8788c387bfc5fcfd76499ef4e46d37d9 to your computer and use it in GitHub Desktop.
Show radius of steps while dancing
<?xml version="1.0"?>
<TriggernometryExport Version="1">
<ExportedFolder Id="36458808-db13-433d-b261-4e47ea27803b" Name="Step radius" Enabled="true">
<Folders />
<Triggers>
<Trigger Enabled="true" Name="Show" Id="782353f8-a23a-45ca-a7ce-4f6a6c6495f5" RegularExpression="(?&lt;timestamp&gt;(?:^.{14})) 1A:(?&lt;targetId&gt;(?:[0-9A-F]{8})):(?&lt;target&gt;(?:.*?)) gains the effect of (Standard|Technical) Step from (?&lt;source&gt;(?:.*?)) for (?&lt;duration&gt;(?:-?[0-9]+(?:[.,][0-9]+)?(?:E-?[0-9]+)?)) Seconds\.">
<Actions>
<Action OrderNumber="1" JsonEndpointExpression="http://127.0.0.1:47774/?namespace=stepRadius&amp;destroyAt=15000" JsonPayloadExpression="{&#xD;&#xA; &quot;type&quot;: 1,&#xD;&#xA; &quot;refX&quot;: 101.507187,&#xD;&#xA; &quot;refY&quot;: -144.548019,&#xD;&#xA; &quot;refZ&quot;: 57.0827446,&#xD;&#xA; &quot;radius&quot;: 15.0,&#xD;&#xA; &quot;color&quot;: 3355508735,&#xD;&#xA; &quot;refActorType&quot;: 1&#xD;&#xA;}" LogLevel="-1" MouseX="" MouseY="" TextAuraFontSize="8.25" TextAuraFontName="Microsoft Sans Serif" ActionType="GenericJson">
<Condition Enabled="false" Grouping="Or" />
<Conditions />
</Action>
</Actions>
<Condition Enabled="true" Grouping="And">
<ConditionSingle Enabled="true" ExpressionL="${_ffxivplayer}" ExpressionTypeL="String" ExpressionR="${target}" ExpressionTypeR="String" ConditionType="StringEqualCase" />
</Condition>
<Conditions />
</Trigger>
<Trigger Enabled="true" Name="Remove" Id="97a97cb1-0569-4d88-a591-e5f6461caa3c" RegularExpression="(?&lt;timestamp&gt;(?:^.{14})) 1E:(?&lt;targetId&gt;(?:[0-9A-F]{8})):(?&lt;target&gt;(?:.*?)) loses the effect of (Standard|Technical) Step from (?&lt;source&gt;(?:.*?))\.">
<Actions>
<Action OrderNumber="1" JsonEndpointExpression="http://127.0.0.1:47774/?destroy=stepRadius" LogLevel="-1" MouseX="" MouseY="" TextAuraFontSize="8.25" TextAuraFontName="Microsoft Sans Serif" ActionType="GenericJson">
<Condition Enabled="false" Grouping="Or" />
<Conditions />
</Action>
</Actions>
<Condition Enabled="true" Grouping="And">
<ConditionSingle Enabled="true" ExpressionL="${_ffxivplayer}" ExpressionTypeL="String" ExpressionR="${target}" ExpressionTypeR="String" ConditionType="StringEqualCase" />
</Condition>
<Conditions />
</Trigger>
</Triggers>
</ExportedFolder>
</TriggernometryExport>
@Elypha
Copy link

Elypha commented Nov 12, 2022

if the one above isn't working on your side, or you are playing on CN server, try the following one (regex updated)

<?xml version="1.0"?>
<TriggernometryExport Version="1">
  <ExportedFolder Id="36458808-db13-433d-b261-4e47ea27803b" Name="Step radius" Enabled="true">
    <Folders />
    <Triggers>
      <Trigger Enabled="true" Name="Show" Id="782353f8-a23a-45ca-a7ce-4f6a6c6495f5" RegularExpression="^.{14} StatusAdd 1A:(71A|1E):.+?:15\.00:.{8}:.+?:.{8}:(?&lt;target&gt;(?:.*?)):">
        <Actions>
          <Action OrderNumber="1" JsonEndpointExpression="http://127.0.0.1:47774/?namespace=stepRadius&amp;destroyAt=15000" JsonPayloadExpression="{&#xD;&#xA;  &quot;type&quot;: 1,&#xD;&#xA;  &quot;refX&quot;: 101.507187,&#xD;&#xA;  &quot;refY&quot;: -144.548019,&#xD;&#xA;  &quot;refZ&quot;: 57.0827446,&#xD;&#xA;  &quot;radius&quot;: 15.0,&#xD;&#xA;  &quot;color&quot;: 3355508735,&#xD;&#xA;  &quot;refActorType&quot;: 1&#xD;&#xA;}" TextAuraFontSize="8.25" TextAuraFontName="Microsoft Sans Serif" ActionType="GenericJson">
            <Condition Enabled="false" Grouping="Or" />
          </Action>
        </Actions>
        <Condition Enabled="true" Grouping="And">
          <ConditionSingle Enabled="true" ExpressionL="${_ffxivplayer}" ExpressionTypeL="String" ExpressionR="${target}" ExpressionTypeR="String" ConditionType="StringEqualCase" />
        </Condition>
        <Conditions />
      </Trigger>
      <Trigger Enabled="true" Name="Remove" Id="97a97cb1-0569-4d88-a591-e5f6461caa3c" RegularExpression="^.{14} StatusRemove 1E:(71A|1E):.+?:0\.00:.{8}:.+?:.{8}:(?&lt;target&gt;(?:.*?)):">
        <Actions>
          <Action OrderNumber="1" JsonEndpointExpression="http://127.0.0.1:47774/?destroy=stepRadius" TextAuraFontSize="8.25" TextAuraFontName="Microsoft Sans Serif" ActionType="GenericJson">
            <Condition Enabled="false" Grouping="Or" />
          </Action>
        </Actions>
        <Condition Enabled="true" Grouping="And">
          <ConditionSingle Enabled="true" ExpressionL="${_ffxivplayer}" ExpressionTypeL="String" ExpressionR="${target}" ExpressionTypeR="String" ConditionType="StringEqualCase" />
        </Condition>
        <Conditions />
      </Trigger>
    </Triggers>
  </ExportedFolder>
</TriggernometryExport>

@Limiana
Copy link
Author

Limiana commented Nov 12, 2022

This is a little obsolete and can be done within the plugin fully nowadays, without requiring external tool.

~Lv2~{"Name":"DNC step radius","Group":"","ElementsL":[{"Name":"Standard","type":1,"radius":15.0,"refActorRequireBuff":true,"refActorBuffId":[1818],"refActorType":1},{"Name":"Technical","type":1,"radius":15.0,"color":3355503359,"refActorRequireBuff":true,"refActorBuffId":[1819],"refActorType":1}],"JobLock":274877906944}

@Elypha
Copy link

Elypha commented Nov 12, 2022

Ah yeah I just first saw the link to your gist in the readme, and when I was done and I moved on to the repo and then I realised that there's a built-in method lol

maybe a PR to update the readme

@Limiana
Copy link
Author

Limiana commented Nov 12, 2022

well this trigger serves as an example how to use triggernometry with the plugin so maybe it can stay for the time being

@Elypha
Copy link

Elypha commented Nov 12, 2022

okay fair enough
thanks for providing that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment