[{"data":1,"prerenderedAt":6},["ShallowReactive",2],{"docs:wiki\u002FSkills\u002FInline-Conditions":3},{"html":4,"title":-1,"frontmatter":5},"\u003Cp>In-Line conditions can be used on individual mechanics and targeters to save you from having to create an entire metaskill for more basic things and to give you more flexibility inside existing metaskills. You can use standard Conditions to check against the caster, TriggerCondtions to check against the trigger, and TargetConditions to check against the target.\u003C\u002Fp>\n\u003Cp>In-Line conditions can be used in mob files, skills files and if you have Crucible, they can be used in item files too.\u003C\u002Fp>\n\u003Chr>\n\u003Ch1>Conditions\u003C\u002Fh1>\n\u003Cp>These conditions will check against the caster itself, they go at the end of a mechanic line and begin with \u003Ccode>?\u003C\u002Fcode>. In the below example the message will only be sent if it is currently raining.\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">SkeletalKnight\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Type\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">WITHER_SKELETON\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Skills\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:message\">message\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">m\u003C\u002Fspan>=\u003Cspan class=\"yaml-string\">&quot;You hit me in the rain?&quot;\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> @\u003Ca class=\"mythic-ref\" data-mythic-ref=\"t:trigger\">trigger\u003C\u002Fa> ~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"tr:onDamaged\">onDamaged\u003C\u002Fa> ?\u003Ca class=\"mythic-ref\" data-mythic-ref=\"c:raining\">raining\u003C\u002Fa>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>For the condition to be true, you can use \u003Ccode>?\u003C\u002Fcode> and for the condition to be false you use \u003Ccode>?!\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>?raining\u003C\u002Fcode> - True, if it \u003Cem>is\u003C\u002Fem> raining\u003C\u002Fli>\n\u003Cli>\u003Ccode>?!raining\u003C\u002Fcode> - False, if it is \u003Cem>not\u003C\u002Fem> raining\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch1>TriggerConditions\u003C\u002Fh1>\n\u003Cp>You can also check against the trigger of the mechanic. It is the same process as above but you use a \u003Ccode>~\u003C\u002Fcode> after the ?. The below example will only send a message to the player who hit the mob, if that player is holding a wooden sword.\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">SkeletalKnight\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Type\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">WITHER_SKELETON\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Skills\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:message\">message\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">m\u003C\u002Fspan>=\u003Cspan class=\"yaml-string\">&quot;You hit me with a wooden sword?&quot;\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> @\u003Ca class=\"mythic-ref\" data-mythic-ref=\"t:trigger\">trigger\u003C\u002Fa> ~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"tr:onDamaged\">onDamaged\u003C\u002Fa> ?~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"c:holding\">holding\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">m\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">WOODEN_SWORD\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Just like the standard conditions, for true you can use \u003Ccode>?~\u003C\u002Fcode> and for the condition to be false you use \u003Ccode>?~!\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>?~holding{m=WOODEN_SWORD}\u003C\u002Fcode> - True, if the player \u003Cem>is\u003C\u002Fem> holding a wooden sword\u003C\u002Fli>\n\u003Cli>\u003Ccode>?~!holding{m=WOODEN_SWORD}\u003C\u002Fcode> - False, if the player is \u003Cem>not\u003C\u002Fem> holding a wooden sword\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Multiple Conditions\u003C\u002Fh3>\n\u003Cp>You are able to use as many In-line Conditions and TriggerConditions as you need in your mechanics. Just remember that \u003Cem>all\u003C\u002Fem> conditions have to be met for the mechanic to run, in this below example the message will only be sent if it is raining, \u003Cem>and\u003C\u002Fem> night, \u003Cem>and\u003C\u002Fem> the player who attacked the mob is holding a wooden sword.\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">SkeletalKnight\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Type\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">WITHER_SKELETON\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Skills\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:message\">message\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">m\u003C\u002Fspan>=\u003Cspan class=\"yaml-string\">&quot;You hit me with a wooden sword? in the rain?? at night???&quot;\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> @\u003Ca class=\"mythic-ref\" data-mythic-ref=\"t:trigger\">trigger\u003C\u002Fa> ~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"tr:onDamaged\">onDamaged\u003C\u002Fa> ?\u003Ca class=\"mythic-ref\" data-mythic-ref=\"c:raining\">raining\u003C\u002Fa> ?\u003Ca class=\"mythic-ref\" data-mythic-ref=\"c:night\">night\u003C\u002Fa> ?~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"c:holding\">holding\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">m\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">WOODEN_SWORD\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch1>TargetConditions\u003C\u002Fh1>\n\u003Cp>\u003Cstrong>In-Line TargetConditions are Premium Only!\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>In-line target conditions allow you to apply conditions to your targeters so that you only target the exact entity \u002F location you are looking for. First lets look at the formatting of it.\u003C\u002Fp>\n\u003Cp>In this example a mob would deal 1 damage to any players within 10 blocks that have the aura \u003Ccode>Plagued\u003C\u002Fcode> every second.\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">SkeletalKnight\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Type\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">WITHER_SKELETON\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Skills\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:damage\">damage\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">a\u003C\u002Fspan>=\u003Cspan class=\"yaml-number\">1\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> @\u003Ca class=\"mythic-ref\" data-mythic-ref=\"t:PIR\">PIR\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">r\u003C\u002Fspan>=\u003Cspan class=\"yaml-number\">10\u003C\u002Fspan>;\u003Cspan class=\"yaml-plain\">conditions\u003C\u002Fspan>=\u003Cspan class=\"yaml-punc\">[\u003C\u002Fspan>  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Cspan class=\"yaml-plain\">hasaura\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">aura\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">Plagued\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> \u003Cspan class=\"yaml-bool\">true\u003C\u002Fspan> \u003Cspan class=\"yaml-punc\">]\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> ~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"tr:onTimer\">onTimer:20\u003C\u002Fa>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The spacing is crucial for in-line target conditions. Notice that there is two spaces between \u003Ccode>conditions=[\u003C\u002Fcode> and \u003Ccode>- hasaura{aura=Plagued} true\u003C\u002Fcode>. You need to have that double space there.\nAlso notice that there is one space from \u003Ccode>true\u003C\u002Fcode> to \u003Ccode>]}\u003C\u002Fcode> and that space needs to be there as well.\u003C\u002Fp>\n\u003Cp>You can also use multiple conditions on a single targeter, there is 2 ways of doing this.\u003C\u002Fp>\n\u003Cp>Example of droping down a line and indenting:\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">SkeletalKnight\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Type\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">WITHER_SKELETON\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Skills\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:damage\">damage\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">a\u003C\u002Fspan>=\u003Cspan class=\"yaml-number\">1\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> @\u003Ca class=\"mythic-ref\" data-mythic-ref=\"t:PIR\">PIR\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">r\u003C\u002Fspan>=\u003Cspan class=\"yaml-number\">10\u003C\u002Fspan>;\u003Cspan class=\"yaml-plain\">conditions\u003C\u002Fspan>=\u003Cspan class=\"yaml-punc\">[\u003C\u002Fspan>\n                              \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:hasaura\">hasaura\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">aura\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">Plagued\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> \u003Cspan class=\"yaml-bool\">false\u003C\u002Fspan>\n                              \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:haspotioneffect\">haspotioneffect\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">type\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">WITHER\u003C\u002Fspan>;\u003Cspan class=\"yaml-plain\">d\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">1to999999\u003C\u002Fspan>;\u003Cspan class=\"yaml-plain\">l\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">0to254\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> \u003Cspan class=\"yaml-bool\">true\u003C\u002Fspan> \n                              \u003Cspan class=\"yaml-punc\">]\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> ~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"tr:onTimer\">onTimer:20\u003C\u002Fa>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Note that there is still a space after the true at the end of the second condition.\u003C\u002Fp>\n\u003Cp>Example of keeping multiple conditions on one line:\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">SkeletalKnight\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Type\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">WITHER_SKELETON\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Skills\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:damage\">damage\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">a\u003C\u002Fspan>=\u003Cspan class=\"yaml-number\">1\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> @\u003Ca class=\"mythic-ref\" data-mythic-ref=\"t:PIR\">PIR\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">r\u003C\u002Fspan>=\u003Cspan class=\"yaml-number\">10\u003C\u002Fspan>;\u003Cspan class=\"yaml-plain\">conditions\u003C\u002Fspan>=\u003Cspan class=\"yaml-punc\">[\u003C\u002Fspan>  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Cspan class=\"yaml-plain\">hasaura\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">aura\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">Plagued\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> \u003Cspan class=\"yaml-bool\">true\u003C\u002Fspan>  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Cspan class=\"yaml-plain\">haspotioneffect\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">type\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">WITHER\u003C\u002Fspan>;\u003Cspan class=\"yaml-plain\">d\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">1to999999\u003C\u002Fspan>;\u003Cspan class=\"yaml-plain\">l\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">0to254\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> \u003Cspan class=\"yaml-bool\">true\u003C\u002Fspan> \u003Cspan class=\"yaml-punc\">]\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> ~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"tr:onTimer\">onTimer:20\u003C\u002Fa>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Note that there is two spaces between \u003Ccode>conditions=[\u003C\u002Fcode> and the first condition, then there is also two spaces between the first condition and the second condition. Finally there is still one space after the true at the end of the second condition.\u003C\u002Fp>\n",{},1779063024337]