SHOW:
|
|
- or go back to the newest paste.
| 1 | target = {
| |
| 2 | name = "None", | |
| 3 | shield = false, | |
| 4 | aura = false, | |
| 5 | } | |
| 6 | ||
| 7 | Trigger Name: Aura Up | |
| 8 | 0: ^You suddenly perceive the vague outline of an aura of rebounding around (\w+)\.$ TYPE: perl regex | |
| 9 | ||
| 10 | Code Box: | |
| 11 | --matches[2] is what the (\w+) is in our trigger. The first capture group is always matches[2] | |
| 12 | --And it can go on until 99 I believe. Matches[1] is the entire matched line, it is rarely ever used. | |
| 13 | if (matches[2] == target.name) then | |
| 14 | target.aura = true | |
| 15 | end | |
| 16 | ||
| 17 | Trigger name: Shield Up | |
| 18 | 0: ^A numbing energy runs up your limbs as your attack rebounds off of (\w+)'s shield\.$ TYPE: perl regex | |
| 19 | 1: ^A shimmering translucent shield forms around (\w+)\.$ TYPE: perl regex | |
| 20 | ||
| 21 | Code Box: | |
| 22 | if (matches[2] == target.name) then | |
| 23 | target.shield = true | |
| 24 | end | |
| 25 | ||
| 26 | Trigger name: Shield Down | |
| 27 | 0:^You touch your tattoo and a massive, ethereal hammer rises up and shatters the translucent shield surrounding (\w+) for the hammer.$ TYPE: perl regex | |
| 28 | ||
| 29 | Code Box: | |
| 30 | if (matches[2] == target.name) then | |
| 31 | target.shield = false | |
| 32 | end | |
| 33 | ||
| 34 | Trigger name: Aura Down | |
| 35 | 0:^A coruscating tendril of flame bursts forth from your Seraphic guardian's eyes and shreds (\w+)'s rebounding aura.$ TYPE: perl regex | |
| 36 | ||
| 37 | Code Box: | |
| 38 | if (matches[2] == target.name) then | |
| 39 | target.aura = false | |
| 40 | end | |
| 41 | ' | |
| 42 | ||
| 43 | Alias Name: Smite | |
| 44 | Alias: ^smite$ | |
| 45 | ||
| 46 | Code Box: | |
| 47 | if (not target.shield and not target.aura) then | |
| 48 | send("smite " .. target.name)
| |
| 49 | elseif (target.shield) then | |
| 50 | send("touch hammer " .. target.name)
| |
| 51 | elseif (target.aura) then | |
| 52 | send("seraph raze " .. target.name)
| |
| 53 | end |