Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Targets

Targets

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1 2  

Posted by Kresslack   (70 posts)  Bio
Date Tue 29 Apr 2008 12:52 AM (UTC)
Message
What targeting system is used with Mush, or does it automaticly recognize and use internal targets for each mud? For instance, I play a mud where to target something, you type TT <target> and then any aliases you have set to act towards your current target will fire off as you initate them. Some clients require special targetting scripts however.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 29 Apr 2008 01:19 AM (UTC)
Message
See http://mushclient.com/faq points 21 and 22.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Kresslack   (70 posts)  Bio
Date Reply #2 on Sat 03 May 2008 08:51 PM (UTC)
Message
doesn't seem to be working. Can you walk me through how I would set up a system for @target, where everytime I type t <target> it will adjust and show up on my status bar and accutally recognize the target?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 04 May 2008 03:45 AM (UTC)
Message
Try searching the forum for something like "target alias" - this sort of question comes up every few months. This post, for example, show setting a target, and notifying you of what it is:

http://www.gammon.com.au/forum/bbshowpost.php?id=7357

Quote:

doesn't seem to be working


Well can you copy and paste what you have done, rather than just saying that some unspecified attempt doesn't work in a way which that you don't say.

See: http://mushclient.com/copying for how to do that.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Kresslack   (70 posts)  Bio
Date Reply #4 on Thu 08 May 2008 07:54 PM (UTC)
Message
Ok, I followed the steps in FAQ 21 and 22, I imported those settings, and got this error:

[string "Alias: "]:1: '=' expected near '@'

I am just trying to figure out how to set up a simple target script that will let me type TT <target>, then hit my jab jab alias which is J > jj !1.

!1 is the in game variable used for targets, but the client doesn't recognize it.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Thu 08 May 2008 08:55 PM (UTC)
Message
That FAQ item shows how to do that. You have two aliases, right? You would have if you followed the FAQ. Can you copy what you have and paste it here, like I asked?

See: http://mushclient.com/copying for how to do that.

Can you tell me what script language you are using? See world configuration -> scripting tab.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Kresslack   (70 posts)  Bio
Date Reply #6 on Thu 08 May 2008 11:20 PM (UTC)
Message
Language is Lua

It only gave me one alias:

Target * Sequence:100 Send: %1

The trigger is:

@target Sequence: 100 Send: @target
Top

Posted by Orangeist   (8 posts)  Bio
Date Reply #7 on Sat 10 May 2008 10:14 AM (UTC)

Amended on Sat 10 May 2008 10:18 AM (UTC) by Orangeist

Message
There's a better way to show us what your aliases/triggers look like. Highlight the alias/trigger from the Aliases window, and click copy. Then paste the XML format of your alias/trigger here. This will give everyone a complete look at what you're doing and will help everyone help you in a more expedient fashion. Like Nick mentioned, take a look at http://mushclient.com/copying to see how to do this.

Just looking at the error, it would seem to me as though you don't have 'Expand variables' checked in your alias. MUSHclient doesn't know what the heck the @ is for, so it's returning an error. Try checkmarking 'Expand variables'.

Top

Posted by Kresslack   (70 posts)  Bio
Date Reply #8 on Mon 12 May 2008 06:17 PM (UTC)
Message
<aliases>
<alias
match="j"
enabled="y"
send_to="12"
sequence="100"
>
<send>jj @target</send>
</alias>
</aliases>

this is what I have, I don't know what variable I am supposed to be using, I imported the ones in the FAQ 20 &21. Expanding variables still doesn't work, i get this error:

[string "Alias: "]:1: '=' expected near '@'
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #9 on Mon 12 May 2008 07:04 PM (UTC)
Message
It doesn't look like you copied the alias exactly. In particular, what is your "send_to" value and why is it different from what the alias has on the FAQ?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Kresslack   (70 posts)  Bio
Date Reply #10 on Mon 12 May 2008 09:02 PM (UTC)
Message
Sent To is set to Script, and I don't know why it is differant from the FAQ, copied it straight from there. :\
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #11 on Mon 12 May 2008 09:18 PM (UTC)
Message
I'm not sure why either, but in any case you don't want to send that to script, you want to send it to the MUD with variables expanded.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #12 on Tue 13 May 2008 12:04 AM (UTC)
Message
Whereabouts in the FAQ did it have send to script?

FAQ #21 had send to "9" which is variables, for setting the targetting variable. FAQ #22 did not have a send-to field, which means it defaults to sending to the world.

This should work, you need "expand variables" checked, after all "target" is a variable, and send to world, not send to script.


<aliases>
  <alias
   match="j"
   enabled="y"
   expand_variables="y"
   sequence="100"
  >
  <send>jj @target</send>
  </alias>
</aliases>


Once again, you need to use the method described in http://mushclient.com/copying to copy the above into the client, don't just copy and paste individual lines.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Kresslack   (70 posts)  Bio
Date Reply #13 on Fri 16 May 2008 01:20 AM (UTC)
Message
Ok, due to your extreme patience with my noobness, I have it figured out and it works! If I wanted to set it to where I could just type T <target> and have that work, instead of having to spell out Target, for speed purposes, how would I do that?
Top

Posted by Orangeist   (8 posts)  Bio
Date Reply #14 on Fri 16 May 2008 06:13 AM (UTC)
Message
Try changing your match line to something like this:

^t(arget)? (.*?)$


with Regular Expression checked.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


53,070 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.