Advertisement
Guest User

Untitled

a guest
Feb 8th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. Crummy Incomplete Influencing Snippets Made In a Haste Without Proper Management of Memory or Coding But Hey They Work
  2.  
  3. Script file. Call it whatever you want.
  4.  
  5. inf_type = {
  6. ["charity"] = {"begging", "supplication", "wheedling"},
  7. ["empower"] = {"compliments", "admiration", "praise"},
  8. ["weaken"] = {"teasing", "mockery", "derision"},
  9. ["seduction"] = {"flattery", "charm", "beguiling"},
  10. ["paranoia"] = {},
  11. ["amnesty"] = {"amnesty"}
  12. }
  13.  
  14.  
  15. Triggers. Make a folder. Name it Influencing. YOU MUST NAME IT "Influencing"! Deactivate the folder. Put a new trigger in it.
  16.  
  17. First trigger. Called mine Influence Prompt.
  18.  
  19. The line (perl regex) : ^\d+h, \d+m, \d+e, \d+p ([Bex\-]+)$
  20.  
  21. The code:
  22.  
  23.  
  24. if matches[2] == "Bex-" then
  25. send("influence " .. inf_tar .. " with " .. inf_type[inf_type_spec][inf_type_num])
  26. inf_type_num = inf_type_num + 1
  27. if inf_type_num > table.getn(inf_type[inf_type_spec]) then
  28. inf_type_num = 1
  29. end
  30. end
  31.  
  32. Second trigger. Called mine Influence Target Missing.
  33.  
  34. First line (exact match) : You detect nothing here by that name.
  35. Second line (exact match) : I do not recognize anything called that here.
  36. Third line (exact match) : You cannot see that being here.
  37. Fourth line (exact match) : Ahh, I am truly sorry, but I do not see anyone by that name here.
  38. Fifth line (exact match) : Nothing can be seen here by that name.
  39.  
  40. The code:
  41.  
  42.  
  43. disableTrigger("Influencing")
  44.  
  45.  
  46. Third trigger. Called mine Influence Done.
  47.  
  48. First line (perl regex) : ^.* keeps asking h(?:im|er)self why s?he considered giving so much away, and pays you no attention\.$
  49. Second line (perl regex) : ^.* is so caught up in admiring h(?:im|er)self that s?he barely notices you\.$
  50.  
  51. The code:
  52.  
  53.  
  54. disableTrigger("Influencing")
  55.  
  56.  
  57. Lastly, the alias. Appropriate uses are "inf tar whatever", "inf type whatever", "inf on", and "inf off"
  58.  
  59. The line: ^inf (on|off|(?:tar ([\d\w]+))|(?:type (charity|empower|weaken|seduction|paranoia|amnesty)))$
  60.  
  61. The code:
  62.  
  63.  
  64. if matches[2] == "on" then
  65. enableTrigger("Influencing")
  66. inf_type_num = 1
  67. elseif matches[2] == "off" then
  68. disableTrigger("Influencing")
  69. elseif matches[2]:match("^tar") then
  70. echo("Influencing target: " .. matches[3])
  71. inf_tar = matches[3]
  72. else
  73. echo("Influencing type: " .. matches[4])
  74. inf_type_spec = matches[4]
  75. end
  76.  
  77. send(" ")
  78.  
  79.  
  80.  
  81. Hope this helps someone.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement