Guest User

Untitled

a guest
Jan 23rd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. Party Targetting
  2. ================
  3.  
  4. The following was provided so we can all be on the same page when
  5. coordinating defense parties. On a very basic level, implementing this
  6. will allow you to recognize a designated party leader and the targets
  7. they call out. This will enable the defense group to work together
  8. easily against the same target without having to manually change.
  9.  
  10. If you work with clients other than these and have implemented something
  11. that works in a similar manner, please feel free to submit them to us so
  12. we can add it to this scroll for all to see.
  13.  
  14. ........................................................................
  15. o ZMUD
  16.  
  17. 1) Create a variable called raidleader.
  18. 2) Create this trigger:
  19.  
  20. Trigger: ^~(Party~)~: (%w) says, ~"I am calling targets, focus your fire
  21. on my command.~"
  22.  
  23. Command: raidleader=%1
  24.  
  25. 3) Create this trigger:
  26.  
  27. Trigger: ^~(Party~)~: @raidleader says, ~"Changed target to (*).~"$
  28.  
  29. Command: target=%1
  30.  
  31.  
  32. ........................................................................
  33. o MUSHClient
  34. Trigger: ^\(Party\)\: (\w+) says\, \"I am calling targets, focus your
  35. fire on my command."(.*?)$
  36.  
  37. Command: world.SetVariable('raidleader',"%1")
  38.  
  39. NOTE: Remember to check Enabled, Regular expression and Expand
  40. variables. Also remember to change 'Send to:', to SCRIPT
  41.  
  42. 3) Set this new trigger
  43.  
  44. Trigger: ^\(Party\)\: @raidleader says\, \"Changed target to
  45. (\w+)\.\"(.*?)$
  46.  
  47. Command: t %1
  48.  
  49. NOTE: Remember to check Enable, Expand variables, ignore case, keep
  50. evaluating regular expression. Also remember to change 'Send to:' to
  51. EXECUTE
  52. ........................................................................
  53. o NEXUS
  54.  
  55. 1) Create a variable called raidleader.
  56.  
  57. 2) Create this trigger:
  58.  
  59. Trigger: (Party): {w} says, "I am calling targets, focus your fire on my
  60. command."
  61.  
  62. Command: #set raidleader $1
  63.  
  64.  
  65. 3) Then create this trigger:
  66.  
  67. Trigger: (Party): {w} says, "Changed target to {w}."
  68.  
  69. Command: #if $raidleader = $1{
  70. #set target $2
  71. ........................................................................
  72. o Mudlet
  73.  
  74. 1) Create a trigger, and in the pattern put:
  75. \(Party\): (\w+) says\, \"I am calling targets\, focus your fire on my
  76. command\.\"
  77. and change the pattern type to perl regex
  78.  
  79. For the command, put:
  80. raidleader = matches[2]
  81.  
  82. 2. Create another trigger, and for the pattern put:
  83. \(Party\)\: (\w+) says\, \"Changed target to (\w+)\.\"
  84. and change the pattern type to perl regex
  85.  
  86. For the command, put:
  87. if matches[2] == raidleader then target = matches[3] end
  88.  
  89. The new mudlet does not need to escape commas (\,) to resolve a comma.
  90. ........................................................................
  91. o Kongregate.com (Flash)
  92.  
  93. 1) CONFIG SCREENWIDTH 0(zero)
  94. This is not neccesary, but if you don't have it, the reflex might go
  95. wrong with long names.
  96.  
  97.  
  98. 2) Recognize the raid leader. Make a new trigger/reflex.
  99.  
  100. Pattern:
  101. \(Party\): * says, "I am calling targets, focus your fire on my
  102. command."
  103.  
  104. Send:
  105. raidleader = this[1]
  106. echo('Raidleader is now: ' + raidleader)
  107.  
  108. > This sets the leader (who calls out this message over a party channel)
  109. to the raidleader variable. Make sure both the "Enabled" and "Script"
  110. boxes have been checked to "True".
  111.  
  112.  
  113. 3) Recognize new targets leader calls. Make another new trigger/reflex.
  114.  
  115. Pattern:
  116. \(Party\): * says, "Changed target to *."
  117.  
  118. Send:
  119. if(raidleader == this[1]){
  120. target = this[2]
  121. echo('Target is now: ' + target)}
  122.  
  123. Make sure both the "Enabled" and "Script" boxes have been checked to
  124. "True".
  125.  
  126. IMPORTANT FLASH NOTES-
  127. A- the \\ from both \(party\) DISAPPEAR EVERY TIME you leave realms.
  128. You'll have to add them manually every time you log in (annoying but
  129. can't do anything about it)
  130. B- Side note, doubleclick the screen to be able to copy things, this
  131. could be very helpfull!
  132. C- If you need help coding for this particular client, direct any
  133. questions to Diath or message him if he's not here.
Add Comment
Please, Sign In to add comment