Battle Condenser |
Post Reply | Page <123 |
Author | |
gnome power
Sergeant Major Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
Post Options
Thanks(0)
|
It would just require changing the regex.
Do you know how to do so?
|
|
Elathan
Corporal Joined: 23 July 2012 Status: Offline Points: 226 |
Post Options
Thanks(0)
|
Reply do you mean changing it from Pearl Regex to something else?
|
|
Elathan
Corporal Joined: 23 July 2012 Status: Offline Points: 226 |
Post Options
Thanks(0)
|
lol I typed reply...
|
|
Jor'Mox
First Sergeant Joined: 29 July 2004 Status: Offline Points: 8575 |
Post Options
Thanks(0)
|
No. He means changing the regular expression so that it will match your prompt.
Oh, and colors don't matter. So I think I stripped color codes out properly, this is what I'm seeing for your prompt: prompt (%h/%Hhp %m/%Mm %v/%Vmv)-%e-%c(%r|%S)(%d)%t>%c Edited by Jor'Mox - 28 March 2013 at 7:51am |
|
No price is too high to pay for the privilege of owning yourself. - Friedrich Nietzsche
|
|
gnome power
Sergeant Major Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
Post Options
Thanks(0)
|
Unfortunately I don't have the time at this point to customize the prompt for people, I think a few things would have to change in the SmartPrompt code as well to display it properly. You'll have to comb through it yourself or use the standard prompt until I get time (which may not be for awhile, work is hectic).
|
|
Jor'Mox
First Sergeant Joined: 29 July 2004 Status: Offline Points: 8575 |
Post Options
Thanks(0)
|
Hey GP, think you can throw the parts you think will break here, so I don't have to dig them out? I have a feeling I'll have better luck fixing things than most people would.
Edit: And, yes, I know, I should try and smash this apart and reconstruct it in the framework I have been building, but my time isn't limitless, and I've been working on other stuff for now. Edited by Jor'Mox - 28 March 2013 at 8:48am |
|
No price is too high to pay for the privilege of owning yourself. - Friedrich Nietzsche
|
|
gnome power
Sergeant Major Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
Post Options
Thanks(0)
|
Hi Jor'mox, thanks!
The regex would have to change to capture the room exits. Also, in the Parse Prompt trigger folder it would need a new variable for directions, and the cecho would need to change to reflect it. It's not very much actually.
|
|
Jor'Mox
First Sergeant Joined: 29 July 2004 Status: Offline Points: 8575 |
Post Options
Thanks(0)
|
So, I get the regex bit, but I'm looking at the parse prompt trigger stuff... and I don't see why you are saying I would need to create a new variable for the directions. You seem to have one there already, is there some reason that this would need to change? (I know I need to change the assignment to match with the regex, but that is different.)
|
|
No price is too high to pay for the privilege of owning yourself. - Friedrich Nietzsche
|
|
Jor'Mox
First Sergeant Joined: 29 July 2004 Status: Offline Points: 8575 |
Post Options
Thanks(0)
|
So, first, the new regex needed to capture your prompt as specified:
Pattern 0: ^[Quiet\s]*\(([\d\?]+)/(\d+)hp (\d+)/(\d+)m (\d+)/(\d+)mv\)\-([\w\-]+)\- Pattern 1: \([\w\s\'\-]+\|(\w+)\)\([\w\s]+\)(\d+)\:(\d+)([ap]m)\> Check the "multiline / AND Trigger" check box, and set "line delta" to 1. And here are the new variable assignments to match your prompt for the Prompt Parsing trigger. Note that Name and both XP variables are dummy values as they are not in your prompt.
Edited by Jor'Mox - 28 March 2013 at 11:20am |
|
No price is too high to pay for the privilege of owning yourself. - Friedrich Nietzsche
|
|
gnome power
Sergeant Major Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
Post Options
Thanks(0)
|
Thanks, j. I forgot that it was already there. Really, i could and should make it universal by parsing number labels in any order. That will go on the to-do list.
I think the battle condenser has a minor break if name is set to "you." It will no longer know how to identify personal actions and distinguish from others, so for instance he would lose background highlighting of personal injuries. I would suggest to him to stick it in there and just leave it off the cecho. |
|
Jor'Mox
First Sergeant Joined: 29 July 2004 Status: Offline Points: 8575 |
Post Options
Thanks(0)
|
So... it specifically checks to be sure it isn't "You" after it replaces "You" and "Your" with the person's name? Why? Seems excessive.
|
|
No price is too high to pay for the privilege of owning yourself. - Friedrich Nietzsche
|
|
gnome power
Sergeant Major Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
Post Options
Thanks(0)
|
Hm, on second thought, I think you're right.
|
|
Post Reply | Page <123 |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |