Someone was asking about how to set this up earlier, so I decided to make a post about it. This method works for sure on zMUD 3.62 32-bit, if anyone can verify it for later versions/CMUD that would be great. Also, if anyone can post methods for other clients, that could be cool too. Here's the method:
Create a new alias within your client, name it whatever you want, and for the command put "#VARIABLE tar" (without the quotes). Now create a new alias, say for example "kt", and for the command input "kill @tar". To set the target, all you need to do is type "t xxx" with xxx being your target. Now whenever you type kt, you will attempt to attack your target! t, tar, etc can be replaced with whatever you want, as long as you remain consistent. And that's it!
If you have any questions, feel free to post them here
Simple Variable Targetting with zMUD
Re: Simple Variable Targetting with zMUD
Yeah, that should work. You can also cut and paste this line in to your command line in Cmud :Lithium wrote:Someone was asking about how to set this up earlier, so I decided to make a post about it. This method works for sure on zMUD 3.62 32-bit, if anyone can verify it for later versions/CMUD that would be great. Also, if anyone can post methods for other clients, that could be cool too. Here's the method:
Create a new alias within your client, name it whatever you want, and for the command put "#VARIABLE tar" (without the quotes). Now create a new alias, say for example "kt", and for the command input "kill @tar". To set the target, all you need to do is type "t xxx" with xxx being your target. Now whenever you type kt, you will attempt to attack your target! t, tar, etc can be replaced with whatever you want, as long as you remain consistent. And that's it!
If you have any questions, feel free to post them here
#CLASS {targets}
#VAR target1 {} {}
#ALIAS t {#VAR target1 %1;#SHOW Target1 set to @target1}
#ALIAS kt {kill @target1}
#CLASS 0
Edit: I can't remember, but I think you might need the {} with cmud, in any event if if you don't need them they are usefull because you can make:
#CLASS {targets}
#VAR target1 {dark} {}
#ALIAS t {#VAR target1 %1;#SHOW Target1 set to @target1}
#ALIAS kt {kill @target1}
#CLASS 0
NB: This should mean if you log onto game and havn't yet set you target1 variable yet, then it will automatically be dark.