|
OmegaDeus Apprentice
Joined: 14 Sep 2005 Posts: 121
|
Posted: Sat Oct 01, 2005 12:37 am
god i'm such a n00b *SOLVED again w00t* |
i've got an interesting dilemma. this is my prompt:
<3640(H)3640 1938(V)1946 2464(M)2482 909 10am |10 0|94| [NESWDNeSeSwNw-Bastion] (Scrt|Excl)>
Where the variables i want in order are like this:
<hp(H)hpmax mv(V)mvmax mn(M)mnmax etl time |ttq tqe|qp| [exits-area] (opponent|health)>
i want to figure out how to make this into a trigger pattern so that i may get the variables so i can design myself a much fancier version of my prompt. How can i make the mud realize this and capture it right? |
|
Last edited by OmegaDeus on Wed Oct 12, 2005 3:14 am; edited 5 times in total |
|
|
|
Moorthon Newbie
Joined: 29 Sep 2005 Posts: 5
|
Posted: Sat Oct 01, 2005 12:38 am |
You needing help with a trigger?
|
|
|
|
OmegaDeus Apprentice
Joined: 14 Sep 2005 Posts: 121
|
Posted: Sat Oct 01, 2005 12:52 am |
that's the plan anyways, i just clicked submit early when i meant to preview, but it should be all there now. i just need the syntax to get that upper prompt to cause my trigger to hit and take those variables
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Oct 01, 2005 2:27 am |
Quote: |
<3640(H)3640 1938(V)1946 2464(M)2482 909 10am |10 0|94| [NESWDNeSeSwNw-Bastion] (Scrt|Excl)>
|
~<(%d)~(H~)(%d) (%d)~(V~)(%d) (%d)~(M~)(%d) (%d) (%d{am|pm}) ~|(%d) (%d)~|(%d)~| ~[([NESWDUewsn])-(*)~] ~(~(*)|(*)~)
That's your pattern. I figure you would want to mess around with the info (fancier prompt and all), so I'll leave the assignment to variables for you. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
OmegaDeus Apprentice
Joined: 14 Sep 2005 Posts: 121
|
Posted: Sat Oct 01, 2005 11:22 pm |
Thanks Matt, that wasn't exactly it, you'd made a little mistake with a ~ placement, but once i figured out what that was, problem solved.
|
|
_________________
Look at me I've got zSKILLS |
|
|
|
OmegaDeus Apprentice
Joined: 14 Sep 2005 Posts: 121
|
Posted: Sat Oct 01, 2005 11:59 pm |
Hrm, now i've got another question. Is there someway to setup so that no matter the size of the variable, the entire line will stay a certain width?
example:
Code: |
| Health: 123/123 Body: 123/123 Mind: 123/123 |
| Health: 12345/12345 Body: 12345/12345 Mind: 12345/12345 |
|
had to use the code block to ensure that it didn't drop any spaces :P |
|
|
|
Slaem Apprentice
Joined: 20 Sep 2005 Posts: 135
|
Posted: Sun Oct 02, 2005 7:01 am |
%format allows you to set field widths.
|
|
|
|
OmegaDeus Apprentice
Joined: 14 Sep 2005 Posts: 121
|
Posted: Wed Oct 12, 2005 2:29 am |
I've got a new issue with this trigger pattern. I've set up the trigger to draw the information straight into variables, the problem with this is that when i try to get the &[NESWUDewsn]exits to work the test says it's looking for "abc 123 xyzNESWUDewsnexits" and the help i found on capturing straight to variables said using a range like this should work. another thing is when it gets the the final part (the (Scrt|Excl)) when capturing straight into a variable it decides that it MUST have the (Scrt| part, it can't just be (|Excl) when not putting the information directly into variables, it would work the latter way. What am I doing wrong?
[edit] I replaced the &enemy with &%*enemy and now it works for that part, but still can't get the damned exits one to work right.
[re-edit] i took out the range and just used &exits, problem solved. |
|
_________________
Look at me I've got zSKILLS |
|
|
|
|
|