Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Party Targetting
- ================
- The following was provided so we can all be on the same page when
- coordinating defense parties. On a very basic level, implementing this
- will allow you to recognize a designated party leader and the targets
- they call out. This will enable the defense group to work together
- easily against the same target without having to manually change.
- If you work with clients other than these and have implemented something
- that works in a similar manner, please feel free to submit them to us so
- we can add it to this scroll for all to see.
- ........................................................................
- o ZMUD
- 1) Create a variable called raidleader.
- 2) Create this trigger:
- Trigger: ^~(Party~)~: (%w) says, ~"I am calling targets, focus your fire
- on my command.~"
- Command: raidleader=%1
- 3) Create this trigger:
- Trigger: ^~(Party~)~: @raidleader says, ~"Changed target to (*).~"$
- Command: target=%1
- ........................................................................
- o MUSHClient
- Trigger: ^\(Party\)\: (\w+) says\, \"I am calling targets, focus your
- fire on my command."(.*?)$
- Command: world.SetVariable('raidleader',"%1")
- NOTE: Remember to check Enabled, Regular expression and Expand
- variables. Also remember to change 'Send to:', to SCRIPT
- 3) Set this new trigger
- Trigger: ^\(Party\)\: @raidleader says\, \"Changed target to
- (\w+)\.\"(.*?)$
- Command: t %1
- NOTE: Remember to check Enable, Expand variables, ignore case, keep
- evaluating regular expression. Also remember to change 'Send to:' to
- EXECUTE
- ........................................................................
- o NEXUS
- 1) Create a variable called raidleader.
- 2) Create this trigger:
- Trigger: (Party): {w} says, "I am calling targets, focus your fire on my
- command."
- Command: #set raidleader $1
- 3) Then create this trigger:
- Trigger: (Party): {w} says, "Changed target to {w}."
- Command: #if $raidleader = $1{
- #set target $2
- ........................................................................
- o Mudlet
- 1) Create a trigger, and in the pattern put:
- \(Party\): (\w+) says\, \"I am calling targets\, focus your fire on my
- command\.\"
- and change the pattern type to perl regex
- For the command, put:
- raidleader = matches[2]
- 2. Create another trigger, and for the pattern put:
- \(Party\)\: (\w+) says\, \"Changed target to (\w+)\.\"
- and change the pattern type to perl regex
- For the command, put:
- if matches[2] == raidleader then target = matches[3] end
- The new mudlet does not need to escape commas (\,) to resolve a comma.
- ........................................................................
- o Kongregate.com (Flash)
- 1) CONFIG SCREENWIDTH 0(zero)
- This is not neccesary, but if you don't have it, the reflex might go
- wrong with long names.
- 2) Recognize the raid leader. Make a new trigger/reflex.
- Pattern:
- \(Party\): * says, "I am calling targets, focus your fire on my
- command."
- Send:
- raidleader = this[1]
- echo('Raidleader is now: ' + raidleader)
- > This sets the leader (who calls out this message over a party channel)
- to the raidleader variable. Make sure both the "Enabled" and "Script"
- boxes have been checked to "True".
- 3) Recognize new targets leader calls. Make another new trigger/reflex.
- Pattern:
- \(Party\): * says, "Changed target to *."
- Send:
- if(raidleader == this[1]){
- target = this[2]
- echo('Target is now: ' + target)}
- Make sure both the "Enabled" and "Script" boxes have been checked to
- "True".
- IMPORTANT FLASH NOTES-
- A- the \\ from both \(party\) DISAPPEAR EVERY TIME you leave realms.
- You'll have to add them manually every time you log in (annoying but
- can't do anything about it)
- B- Side note, doubleclick the screen to be able to copy things, this
- could be very helpfull!
- C- If you need help coding for this particular client, direct any
- questions to Diath or message him if he's not here.
Add Comment
Please, Sign In to add comment