|
Everwood168 Newbie
Joined: 19 Mar 2006 Posts: 1
|
Posted: Sun Mar 19, 2006 9:01 pm
a question about #all command in alias |
well i'm very new to this program, and i need some help on a problem that bothers me for very long time.
I am playing 2 characters at the same time, so i'm try to make an alias like #alias N {#all n},#alias W {#all w}. My plan is walk around 2 characters(2 windows) with upper-case letters like N W S E, and using lower-case letters like n w s e to do normal walking (no #all). However, i receive a error message Error : Access Violation at 0x0040C2F6 (tried to write to 0x00EE0FF8), program terminated.
So my question is, is there a possible way to make my plan work?
if yes, how?
Thank you very much |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Mar 19, 2006 11:40 pm |
Yes, very possible. Use #ALL to send the commands to each window (or do it separately with #window or :windowname:), and for each character include a trigger to match what you send. The trigger will need to be set for case sensitive AND you will want to make sure what you send is unique enough to not match any other trigger you have for that character (for instance, a trigger that only matches on a direction itself will also match on the same directions as they appear in game text like room descriptions and action messages).
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Mar 20, 2006 1:33 am |
The problem you were having is that aliases are not case sensitive. So the use of #ALL was causing an undetected infinite loop, resulting in the crash. You should use this instead of your aliases.
#ONINPUT {^({N|S|W|E|U|D})$} {#GAG;#ALL %lower(%1)} "" {notrig|case}
That creates a case sensitive input trigger that blocks the sending of the upper case directions and sends a lower case direction instead through all windows. That makes it safe to use in both windows. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|