Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- target = {
- name = "None",
- shield = false,
- aura = false,
- }
- Trigger Name: Aura Up
- 0: ^You suddenly perceive the vague outline of an aura of rebounding around (\w+)\.$ TYPE: perl regex
- Code Box:
- --matches[2] is what the (\w+) is in our trigger. The first capture group is always matches[2]
- --And it can go on until 99 I believe. Matches[1] is the entire matched line, it is rarely ever used.
- if (matches[2] == target.name) then
- target.aura = true
- end
- Trigger name: Shield Up
- 0: ^A numbing energy runs up your limbs as your attack rebounds off of (\w+)'s shield\.$ TYPE: perl regex
- 1: ^A shimmering translucent shield forms around (\w+)\.$ TYPE: perl regex
- Code Box:
- if (matches[2] == target.name) then
- target.shield = true
- end
- Trigger name: Shield Down
- 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
- Code Box:
- if (matches[2] == target.name) then
- target.shield = false
- end
- Trigger name: Aura Down
- 0:^A coruscating tendril of flame bursts forth from your Seraphic guardian's eyes and shreds (\w+)'s rebounding aura.$ TYPE: perl regex
- Code Box:
- if (matches[2] == target.name) then
- target.aura = false
- end
- Alias Name: Smite
- Alias: ^smite$
- Code Box:
- if (not target.shield and not target.aura) then
- send("smite " .. target.name)
- elseif (target.shield) then
- send("touch hammer " .. target.name)
- elseif (target.aura) then
- send("seraph raze " .. target.name)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement