Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Everwood168
Newbie


Joined: 19 Mar 2006
Posts: 1

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net