00:00:00.00 I'm going to show today how to make a targeting alias 00:00:03.63 which lets you target mobs in MUSHclient 00:00:06.86 and that lets you just type in the name once to target them 00:00:10.86 and then do other actions such as kicking them, punching them 00:00:14.83 without having to type their name all the time 00:00:17.38 like, for example, "minotaur" is a fairly lengthy name to have to type 00:00:22.66 on every command 00:00:24.63 to do that I'll go into the Alias configuration 00:00:27.03 one way of doing that is to go up to here, Aliases, on the world action bar 00:00:33.33 or I could go to the Game -> Configuration menu, and go down to Aliases 00:00:39.60 or, what I usually do, is just press Alt + Enter to bring up my World configuration, 00:00:47.50 find the spot I want, and then I need to add a new alias 00:00:53.03 Since this is a targeting alias, I'll call it "t" 00:00:56.56 to keep it short 00:00:58.23 and now I need to put a space, and an asterisk 00:01:01.96 the asterisk is a wildcard, which is going to represent the name of the mob 00:01:07.13 The simplest thing to do is just send that name to a variable 00:01:13.10 so, %1 is going to be replaced by the mob's name 00:01:20.43 so that wildcard there (the asterisk) 00:01:22.90 will become %1 00:01:24.70 and I'll click on "Send to: Variable" 00:01:32.16 because I want that to be sent to the variable 00:01:34.70 and I'll call the variable "target" 00:01:36.36 so now if I type in "t minotaur" it will send "minotaur" to the "target" variable 00:01:43.60 I'll close that, and close that, ... 00:01:45.70 and type in "t minotaur" ... 00:01:53.26 I'll use tab-completion to save me typing out the whole name 00:01:56.10 to do that I just typed in "mino" and pressed 00:02:02.80 "t minotaur" - that has set up the target variable 00:02:07.00 but ... how do we know for sure? 00:02:08.46 we don't have any confirmation, so I'll click on the Variables button up here 00:02:14.16 and have a look down here under Variables 00:02:17.00 and we see there is a variable set up: target -> minotaur 00:02:20.80 so that shows that we did, in fact, set the "target" variable up 00:02:24.13 I'll show in a minute how you can do that as part of changing the target 00:02:29.03 so that you know, immediately, that it worked. 00:02:31.56 Now, the next thing we need to do is: kill the minotaur! 00:02:36.40 To do that, I'll click on the Alias configuration again 00:02:40.40 and add a new alias 00:02:44.53 I'll click on the Add button, and then type in "k" 00:02:48.16 now, "k" is a very easy thing to type, and I'll replace that by: 00:02:52.73 "kill @target" 00:02:56.53 It will now substitute "minotaur" for "@target" 00:03:00.35 providing I go over here and click "Expand Variables" 00:03:05.13 so we can close that. We now have two aliases on the list 00:03:09.10 one that kills the current target, and one that sets the current target up. 00:03:13.86 Close that, and I now type in "k" 00:03:18.23 and as you can see, it has attacked the minotaur! 00:03:24.16 I have attacked the minotaur 00:03:27.10 and I have beaten it! (sounds surprised) ... 00:03:30.36 The second minotaur has also attacked me ... 00:03:37.56 And I have defeated him too! 00:03:39.16 Now, the only problem with this is, we never got any confirmation 00:03:44.20 ... that we changed our target. 00:03:46.13 So, I'll change the targeting alias ... 00:03:49.23 to work a bit differently. 00:03:50.96 I'll select it in the list, and click Edit. 00:03:56.13 Or, I could have just double-clicked it. 00:03:58.96 Instead of sending to "Variable" I'll now send to "Script" 00:04:03.70 This lets me put in script commands 00:04:07.33 The first command I'll do is SetVariable 00:04:13.80 Notice the capitalization - that has to be done correctly 00:04:16.56 or it won't work. 00:04:17.66 open brackets, quote "target", comma, quote "%1", close brackets 00:04:27.36 That will set the variable "target" to whatever the current mob's name is 00:04:34.66 Now to get some visual feedback, I'll now type in: 00:04:38.00 ColourNote (again, notice the capitalization and spelling) 00:04:42.96 I think I'll display it in white-on-blue colour 00:04:51.50 "Target is now: %1" 00:04:56.16 We will now see writing on the screen saying what the new target is. 00:05:02.43 And, just to set the status line, which is the little line at the bottom of the window 00:05:08.23 That will remind us over the next few minutes what our target is 00:05:12.90 So I'll say: SetStatus ("Target: %1") 00:05:21.93 That is being sent to Script, so we don't need that variable name there any more 00:05:26.26 That's not relevant 00:05:28.23 Say OK, and close that 00:05:31.60 Now if I say "t minotaur" 00:05:34.73 We now see "Target is now: minotaur" 00:05:39.13 And also down on the status line, there. 00:05:41.60 So that's the important thing. 00:05:44.70 We can see the target wherever we move around 00:05:47.73 So if we change rooms, and if all this stuff is scrolled off the screen 00:05:51.16 we can still see our current target. 00:05:52.73 So let's see if the minotaur has respawned - yes it has 00:05:57.13 so I'll type in "k" again and I'm attacking the minotaur again 00:06:01.13 So that shows how you can set up a targeting alias 00:06:07.20 and see the confirmation on the screen, both when you type it in 00:06:13.43 and on the status line, when you change targets 00:06:18.00 Now, as soon as this fight is over ... 00:06:21.53 I'll just change to a different room and show how we can 00:06:24.10 target a different mob. 00:06:27.26 So, um, change out of that room, and I think we go North ... 00:06:33.03 There's a naga, so I say "t naga" 00:06:38.10 Target is now naga, and the status line is updated 00:06:42.16 Type in "k" again and I'm now fighting the naga. 00:06:45.40 ... and the second naga! 00:06:49.50 Now, once we've set up a target variable, we can do more than just kill it ... 00:06:55.96 we could also backstab it, or - um - kick it, or do other things 00:07:01.96 so to do that I'll go back into Alias configuration 00:07:04.96 and since I've got "k" for "kill @target" I might make another alias ... 00:07:09.13 "p" and make that "punch @target" 00:07:16.53 ... and check "Expand Variables" ... 00:07:17.43 OK. And, maybe I want to do "backstab @target" as well. 00:07:23.50 Now, to save typing everything in again (not that there was much to type) 00:07:28.40 I'll copy that alias and paste it 00:07:31.80 Now I have two aliases "punch target" 00:07:34.46 Now I can just edit one of them, since they'll both be identical 00:07:37.93 I might change that to "bs" for backstab 00:07:41.53 "backstab @target" 00:07:44.06 We've still got "Expand Variables" checked ... 00:07:46.63 So, click OK 00:07:48.73 ... and close that. 00:07:51.90 I'll just save my world file so I haven't lost all my hard work ... 00:07:55.16 ... and I'm done! 00:07:57.10 That shows how you can set up a targeting alias in MUSHclient 00:08:02.20 and use the targeting alias to do various actions, like 00:08:06.46 kicking, backstabbing, punching, and whatever you want to do with it. 00:08:10.20 Thank you for watching.