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
Nabisco
Newbie


Joined: 14 Feb 2003
Posts: 6
Location: Australia

PostPosted: Mon Nov 24, 2003 3:16 am   

oninput trigger help
 
i have a command being caught by the command input trigger type, so that it can disable 1 class and enable another, and then send the command to the mud,
the trigger command is inscribe (*)
and when triggered ive got it to do this
|class impreporter 0
|class impstorage 1
inscribe %1

will this result in a loop or is it safe to enable the trigger ? :o
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Nov 24, 2003 4:21 am   
 
This will result in a loop. I suggest an alias for what your doing. Read the help on #ALIAS and Predeifined Variables to understand the differences.

I guess you are using | as you command character (default of #). It is not recommended to use | as a special character of any kind as it is already used internally for 3 other things. I will assume you didn't change the seperator character (default of ;).
|ALIAS inscribe {|CLASS impreporter 0;|CLASS impstorage 1;~inscribe %-1}

As a side note if you must change the special characters to your tastes please note what changes you made at the beginning of your post so we don't have to guess. Also most scripts written in these forums use the default special characters, your at a disadvantage when using a non-defualt set. I remember many years ago in high school telling my French teacher, "This is my 5th language after all." I proceeded to list off a number of programming languages as well as English, each has its own idosyncracies (he didn't think them languages, but then he never tried to use them). Generally it is better to adapt to the language then try to adapt the language to yourself.
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