Unknown2006-12-30 22:14:28
Can someone pleeeeeease tell me how? I've tried everything in the world and nothing seems to work properly. A friend told me to try this...
alias name t
command target = %1
Then, make a variable with the name target and nothing in the value
Which doesn't seem to work.
I MUST be doing something wrong.
alias name t
command target = %1
Then, make a variable with the name target and nothing in the value
Which doesn't seem to work.
I MUST be doing something wrong.
Unknown2006-12-30 22:59:50
Have you tried #var target %1 or target=%1?
EDIT: And do you have a varible called target?
EDIT: And do you have a varible called target?
Forren2006-12-30 23:04:46
Make a variable called target.
Make an alias called t, with the value:
@target = %1
Make an alias called t, with the value:
@target = %1
Anisu2006-12-31 01:40:44
QUOTE(Forren @ Dec 31 2006, 12:04 AM) 367887
Make a variable called target.
Make an alias called t, with the value:
@target = %1
never ever use @target = %1, it will give you very annoying results, all var changes should be done by #var varname value (infact last time i tried cmud the = method was scrapped)
CODE
#var target none
#alias t {#var target %1}
is what you need
t (name) does the trick then
Elysiana2006-12-31 01:41:47
Err. Don't use "@target = %1", use "target = %1" or "#var target %1". The first form really is intended to create indirect variable references.
Unknown2006-12-31 01:48:48
I figured it out. There was something else interfering with what I was trying to do.
Thanks everyone for the help.
Thanks everyone for the help.
Shorlen2006-12-31 04:13:33
Contact me next time you see me around - I'll show you how to make far better targetting triggers
Unknown2006-12-31 05:49:37
QUOTE(Shorlen @ Dec 30 2006, 10:13 PM) 367943
Contact me next time you see me around - I'll show you how to make far better targetting triggers
My hero!
Unknown2007-01-02 19:21:02
I use..
Sets up 4 targets usings using t1 t2 t3 t4 and the shift key plus an arrow switches.
I've used this for about 2 years on achaea and it's never gone wrong.
CODE
#CLASS {Lusternia|targets}
#ALIAS targets {i_i Primary target : @tar, Targets : @tar1 @tar2 @tar3 @tar4}
#ALIAS t1 {tar1=%1;i_i Target1 : %1}
#ALIAS t2 {tar2=%1;i_i Target2 : %1}
#ALIAS t3 {tar3=%1;i_i Target3 : %1}
#ALIAS t4 {tar4=%1;i_i Target4 : %1}
#ALIAS t {tar=%1;i_i Target : %1;}
#VAR Tar1 {}
#VAR tar2 {}
#VAR tar3 {}
#VAR tar4 {}
#VAR tar {}
#TRIGGER {@tar} {#cw (hi,red)}
#KEY SHIFT-LEFT {tar=@tar1;i_i Target : @tar1}
#KEY SHIFT-DOWN {tar=@tar2;i_i Target : @tar2}
#KEY SHIFT-RIGHT {tar=@tar3;i_i Target : @tar3}
#KEY SHIFT-UP {tar=@tar4;i_i Target : @tar4}
#CLASS 0
#ALIAS targets {i_i Primary target : @tar, Targets : @tar1 @tar2 @tar3 @tar4}
#ALIAS t1 {tar1=%1;i_i Target1 : %1}
#ALIAS t2 {tar2=%1;i_i Target2 : %1}
#ALIAS t3 {tar3=%1;i_i Target3 : %1}
#ALIAS t4 {tar4=%1;i_i Target4 : %1}
#ALIAS t {tar=%1;i_i Target : %1;}
#VAR Tar1 {}
#VAR tar2 {}
#VAR tar3 {}
#VAR tar4 {}
#VAR tar {}
#TRIGGER {@tar} {#cw (hi,red)}
#KEY SHIFT-LEFT {tar=@tar1;i_i Target : @tar1}
#KEY SHIFT-DOWN {tar=@tar2;i_i Target : @tar2}
#KEY SHIFT-RIGHT {tar=@tar3;i_i Target : @tar3}
#KEY SHIFT-UP {tar=@tar4;i_i Target : @tar4}
#CLASS 0
Sets up 4 targets usings using t1 t2 t3 t4 and the shift key plus an arrow switches.
I've used this for about 2 years on achaea and it's never gone wrong.
Anisu2007-01-02 19:40:36
QUOTE(Newplayer @ Jan 2 2007, 08:21 PM) 368683
I use..
CODE
#CLASS {Lusternia|targets}
#ALIAS targets {i_i Primary target : @tar, Targets : @tar1 @tar2 @tar3 @tar4}
#ALIAS t1 {tar1=%1;i_i Target1 : %1}
#ALIAS t2 {tar2=%1;i_i Target2 : %1}
#ALIAS t3 {tar3=%1;i_i Target3 : %1}
#ALIAS t4 {tar4=%1;i_i Target4 : %1}
#ALIAS t {tar=%1;i_i Target : %1;}
#VAR Tar1 {}
#VAR tar2 {}
#VAR tar3 {}
#VAR tar4 {}
#VAR tar {}
#TRIGGER {@tar} {#cw (hi,red)}
#KEY SHIFT-LEFT {tar=@tar1;i_i Target : @tar1}
#KEY SHIFT-DOWN {tar=@tar2;i_i Target : @tar2}
#KEY SHIFT-RIGHT {tar=@tar3;i_i Target : @tar3}
#KEY SHIFT-UP {tar=@tar4;i_i Target : @tar4}
#CLASS 0
#ALIAS targets {i_i Primary target : @tar, Targets : @tar1 @tar2 @tar3 @tar4}
#ALIAS t1 {tar1=%1;i_i Target1 : %1}
#ALIAS t2 {tar2=%1;i_i Target2 : %1}
#ALIAS t3 {tar3=%1;i_i Target3 : %1}
#ALIAS t4 {tar4=%1;i_i Target4 : %1}
#ALIAS t {tar=%1;i_i Target : %1;}
#VAR Tar1 {}
#VAR tar2 {}
#VAR tar3 {}
#VAR tar4 {}
#VAR tar {}
#TRIGGER {@tar} {#cw (hi,red)}
#KEY SHIFT-LEFT {tar=@tar1;i_i Target : @tar1}
#KEY SHIFT-DOWN {tar=@tar2;i_i Target : @tar2}
#KEY SHIFT-RIGHT {tar=@tar3;i_i Target : @tar3}
#KEY SHIFT-UP {tar=@tar4;i_i Target : @tar4}
#CLASS 0
Sets up 4 targets usings using t1 t2 t3 t4 and the shift key plus an arrow switches.
I've used this for about 2 years on achaea and it's never gone wrong.
i use something similar
Unknown2007-01-02 21:37:02
lydin2007-01-03 04:02:41
This is a bit more automatic. And has the very nice benefit of targeting numbers rather than types. That's useful if you're fighting one alligator and another swims in. You don't end up hitting him and suddenly having two alligators attacking you.
When you type INFO HERE (or IH), you see a list of everything in the room. The trigger targets the number of the first creature it sees that's on your target list.
EDIT: Example to make it clear: type IH and see two finks, fink91 and fink92. The trigger targets 91. When you kill him, tar is set to 0 and IH will grab another target. Note that IH while you have a target doesn't grab a new one. You can of course manually set target to nothing with #VAR tar 0.
With two macros, one for IH and another for @attack @tar, you'll be targeting and attacking with two keystrokes.
I.E.
#KE {alt-i} {info here}
#KE {alt-k} {@attack @tar}
Just edit the list if you need to so that you're not hitting things too strong for you by accident!
CODE
#CLASS {combat|targeting}
#VAR tar {0} {0}
#VAR tarlist {crab|seagull|moose|pelican|mongrel|turtle|snake|dashro|sandojin|alligator|stoat|starsucker|rockeater|krokani|aslaran|guard|gravedigger|wolf|cobra|gila|sabretooth|gorgog|goat|cheuped|opossum|bull|fesix|abhorrence|lindwyrm|grub|gargoyle} {crab|seagull|moose|pelican|mongrel|turtle|snake|dashro|sandojin|alligator|stoat|starsucker|rockeater|krokani|aslaran|guard|gravedigger|wolf|cobra|gila|sabretooth|gorgog|goat|cheuped|opossum|bull|fesix|abhorrence|lindwyrm|grub|gargoyle}
#TRIGGER {^~"{@tarlist}&%d{tar}~"} {}
#TRIGGER {You have slain} {#var tar 0}
#CLASS 0
#VAR tar {0} {0}
#VAR tarlist {crab|seagull|moose|pelican|mongrel|turtle|snake|dashro|sandojin|alligator|stoat|starsucker|rockeater|krokani|aslaran|guard|gravedigger|wolf|cobra|gila|sabretooth|gorgog|goat|cheuped|opossum|bull|fesix|abhorrence|lindwyrm|grub|gargoyle} {crab|seagull|moose|pelican|mongrel|turtle|snake|dashro|sandojin|alligator|stoat|starsucker|rockeater|krokani|aslaran|guard|gravedigger|wolf|cobra|gila|sabretooth|gorgog|goat|cheuped|opossum|bull|fesix|abhorrence|lindwyrm|grub|gargoyle}
#TRIGGER {^~"{@tarlist}&%d{tar}~"} {}
#TRIGGER {You have slain} {#var tar 0}
#CLASS 0
When you type INFO HERE (or IH), you see a list of everything in the room. The trigger targets the number of the first creature it sees that's on your target list.
EDIT: Example to make it clear: type IH and see two finks, fink91 and fink92. The trigger targets 91. When you kill him, tar is set to 0 and IH will grab another target. Note that IH while you have a target doesn't grab a new one. You can of course manually set target to nothing with #VAR tar 0.
With two macros, one for IH and another for @attack @tar, you'll be targeting and attacking with two keystrokes.
I.E.
#KE {alt-i} {info here}
#KE {alt-k} {@attack @tar}
Just edit the list if you need to so that you're not hitting things too strong for you by accident!
Unknown2007-01-03 12:38:04
It was fixed a long time ago that a mobile entering a room now appears on the number list after the current mobiles, so you don't end up hitting multiple mobiles unless the one you're hitting wanders out and another wanders in.
lydin2007-01-04 05:56:37
Sweet! I guess I'm just old. Good to know though.