Few question

Posted by Drauk on Mon 17 Nov 2003 07:52 AM — 9 posts, 34,105 views.

Russia #0
I'm recently decided to migrate to MUSHClient and in process of rewriting my scripts and have some questions.

1) Is there any way to enter speedwalk w/out a preceding speedwalk char? I dont need to enter special char to enter speedwalk in my current client, and im kinda very much used to this and if it possible would like to do so in MUSHClient

2) How do i configure alias that contain another alias for MUSHClient to parse it? Like i have

#alias {au} {gt all up;wa}
#alias {wa} {wake;stand}

How should i configure "au" alias in MUSHClient so it will send to mud

gt all up
wake
stand

instead of

gt all up
wa

3) How do i do thing like this - i have a variable and an alias that sends different strings to mud depending of value of variable. I guess its only posssible with scrpiting in MUSHClient, but whats the easiest way to do this? And a slight variation of this - i need to call different aliases depending of value of variable.

JScript example preferred.

Thanks in advance for help.



Amended on Mon 17 Nov 2003 07:57 AM by Drauk
Russia #1
Found an answer to #2 question

Send to execute
Canada #2
The default for any new alias is to Send to: World. Another option on the dropdown is to Send to: Execute.

The difference between them is that the former will send whatever is in the sendbox to the world, without processing the text. The latter acts as if whatever is in the send box was issued from the command box. In other words, any text that would be processed as an alias WILL be processed as an alias.

So, set your alias to Send to: Execute, and you will achieve the results you desire.
Australia Forum Administrator #3
Quote:

Is there any way to enter speedwalk w/out a preceding speedwalk char?


Send to speedwalk.
Russia #4
Thank you Nick, but i was asking is it possible to send speedwalk w/out preceding char from command window, not from alias.

Australia Forum Administrator #5
Oh I see. I thought you wanted to make an alias, like "shop" that was a speedwalk.

You could do an "automatic speedwalk" easily enough with an alias. You would need a regular expression that matches what a speedwalk would look like. Something like this:


<aliases>
  <alias
   match="([0-9]*[nsweud])+"
   enabled="y"
   regexp="y"
   send_to="11"
   sequence="100"
  >
  <send>%0</send>
  </alias>
</aliases>

Russia #6
Ohh. Thanks. I had an idea about something like that, but wasnt sure how to do this.

#7
Hi. I tried this speedwalk, but it didn't really work. If I was standing I could speedwalk, but once I rested or typed anthing with an NEWSUD in it, it automatically subbed in up/down/north etc. Help please?

Also, in the triggers section, I managed to make a variable and an alias so i could type:targ1 Teraz and it would set my variable target to teraz, but how do I get it to BASH targ1 (teraz in this instance) when targ1 flies in from the north. ?
Amended on Tue 25 Nov 2003 12:43 AM by Andrewm
Australia Forum Administrator #8
The concept can be made to work. You wanted it, have a play with different ideas. You probably need to modify it slightly to exclude other things on the line. For instance, add a "line begin" and "line end" to it:

Match: ^([0-9]*[nsweud])+$