Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Crummy Incomplete Influencing Snippets Made In a Haste Without Proper Management of Memory or Coding But Hey They Work
- Script file. Call it whatever you want.
- inf_type = {
- ["charity"] = {"begging", "supplication", "wheedling"},
- ["empower"] = {"compliments", "admiration", "praise"},
- ["weaken"] = {"teasing", "mockery", "derision"},
- ["seduction"] = {"flattery", "charm", "beguiling"},
- ["paranoia"] = {},
- ["amnesty"] = {"amnesty"}
- }
- Triggers. Make a folder. Name it Influencing. YOU MUST NAME IT "Influencing"! Deactivate the folder. Put a new trigger in it.
- First trigger. Called mine Influence Prompt.
- The line (perl regex) : ^\d+h, \d+m, \d+e, \d+p ([Bex\-]+)$
- The code:
- if matches[2] == "Bex-" then
- send("influence " .. inf_tar .. " with " .. inf_type[inf_type_spec][inf_type_num])
- inf_type_num = inf_type_num + 1
- if inf_type_num > table.getn(inf_type[inf_type_spec]) then
- inf_type_num = 1
- end
- end
- Second trigger. Called mine Influence Target Missing.
- First line (exact match) : You detect nothing here by that name.
- Second line (exact match) : I do not recognize anything called that here.
- Third line (exact match) : You cannot see that being here.
- Fourth line (exact match) : Ahh, I am truly sorry, but I do not see anyone by that name here.
- Fifth line (exact match) : Nothing can be seen here by that name.
- The code:
- disableTrigger("Influencing")
- Third trigger. Called mine Influence Done.
- First line (perl regex) : ^.* keeps asking h(?:im|er)self why s?he considered giving so much away, and pays you no attention\.$
- Second line (perl regex) : ^.* is so caught up in admiring h(?:im|er)self that s?he barely notices you\.$
- The code:
- disableTrigger("Influencing")
- Lastly, the alias. Appropriate uses are "inf tar whatever", "inf type whatever", "inf on", and "inf off"
- The line: ^inf (on|off|(?:tar ([\d\w]+))|(?:type (charity|empower|weaken|seduction|paranoia|amnesty)))$
- The code:
- if matches[2] == "on" then
- enableTrigger("Influencing")
- inf_type_num = 1
- elseif matches[2] == "off" then
- disableTrigger("Influencing")
- elseif matches[2]:match("^tar") then
- echo("Influencing target: " .. matches[3])
- inf_tar = matches[3]
- else
- echo("Influencing type: " .. matches[4])
- inf_type_spec = matches[4]
- end
- send(" ")
- Hope this helps someone.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement