Hi,
This is the beginning of what will be several posts. I hope to provid all needed information on the first pass... but may fail at that. ;)
prompts on nilgiri vary with class and current position. Here's one that works most of the time for my mage.
"^\< (.{1,3}h|.{1,3}hIt) (.{1,3}m|.{1,3}MaNa) (.{1,3}v|.{1,3}mOVe) (sitting \>|resting \>|sleeping \>|\>)" >
The prompt line itself is:
< ###h ###m ###v >
That is it's simplest form. When intoxicated it goes to the longer form:
< ###hIt ###mANa ###mOVe >
For non mana using classes the simple form is:
< ###h ###v >
Since intoxication does not help anything but mana regen, my non-mana using chars don't drink so I do not care about the intoxicated version and actually have never seen it ;)
Using the non-mana version I will now seek to show the other issues:< 100h 112v sitting > This is sitting in it's simplest form, which I have addressed above with the mana users.
< 100h 112v sitting on a bench > This is the longer form that I wished addressed.
So, my questions:
1. How best to address sitting/resting/sleeping on objects that may vary?
2. Is it possible to consolidate the regexp into a single case that handles both chars with and without mana and those drunken clerics of mine?
I use this to add a linefeed after the prompt so that everything processes nicely. Also, an example naming hp, mana, and move would be nice as well.
I do not foresee a need to know what i'm parked on so in non-regexp terms sit* > or rest* > or sleep* > would be great. Along with the imbedded mana that may or may not be present.
Thanks!
Cecil
This is the beginning of what will be several posts. I hope to provid all needed information on the first pass... but may fail at that. ;)
prompts on nilgiri vary with class and current position. Here's one that works most of the time for my mage.
"^\< (.{1,3}h|.{1,3}hIt) (.{1,3}m|.{1,3}MaNa) (.{1,3}v|.{1,3}mOVe) (sitting \>|resting \>|sleeping \>|\>)" >
The prompt line itself is:
< ###h ###m ###v >
That is it's simplest form. When intoxicated it goes to the longer form:
< ###hIt ###mANa ###mOVe >
For non mana using classes the simple form is:
< ###h ###v >
Since intoxication does not help anything but mana regen, my non-mana using chars don't drink so I do not care about the intoxicated version and actually have never seen it ;)
Using the non-mana version I will now seek to show the other issues:< 100h 112v sitting > This is sitting in it's simplest form, which I have addressed above with the mana users.
< 100h 112v sitting on a bench > This is the longer form that I wished addressed.
So, my questions:
1. How best to address sitting/resting/sleeping on objects that may vary?
2. Is it possible to consolidate the regexp into a single case that handles both chars with and without mana and those drunken clerics of mine?
I use this to add a linefeed after the prompt so that everything processes nicely. Also, an example naming hp, mana, and move would be nice as well.
I do not foresee a need to know what i'm parked on so in non-regexp terms sit* > or rest* > or sleep* > would be great. Along with the imbedded mana that may or may not be present.
Thanks!
Cecil