Glad all this came up because I learned something cool!
Reading some forum posts and doing some testing I have found that if you set your trigger as case sensitive whenever possible it helps to speed up your triggers and optimize speed, this is because ZMUD doesn't have to test for both lower and upper case on each letter in a string. Also using the idea above I found that setting the case will force pattern matching to work like this:
[A-Z]%w with case set will only trigger on a Capitalized word
[a-z]%w with case set will only trigger on a word not capitalized.
Without case set both [A-Z] and [a-z] trigger for either upper or lower case.
You can use {case} at the end of a trigger (trigger option) to set case sensitive.
Taziar
Zmud - Saving a pattern into a variable.
Re: Zmud - Saving a pattern into a variable.
Hey,
Unfortunately haven't got it working yet. Will look into it again tomorrow or the day after. I do appreciate the work you guys put in. Still trying to find my way around zmud.
Unfortunately haven't got it working yet. Will look into it again tomorrow or the day after. I do appreciate the work you guys put in. Still trying to find my way around zmud.
Re: Zmud - Saving a pattern into a variable.
Got a version of this to work and added functionality to my prompt script located here:
http://www.wotmudarchives.org/forum/vie ... 2581#p2581
Variable names to use in target script:
promptPlayerName
promptPlayerCondition
Works in all forms of prompt, solo, assisting pc or mob.
Any questions or help for any of my zMud scripts shoot me a mail or post here in help.
http://www.wotmudarchives.org/forum/vie ... 2581#p2581
Variable names to use in target script:
promptPlayerName
promptPlayerCondition
Works in all forms of prompt, solo, assisting pc or mob.
Any questions or help for any of my zMud scripts shoot me a mail or post here in help.