|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Sun Apr 29, 2007 1:44 pm
CPPIG help |
I can not get the triggers to go to make this work
here is my hp/mp/mv line as it is displayed
(Hp:287/287)(Mp:235/237)(Mv:248/289)
again any help would rock
ps I emailed the creator no response |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Sun Apr 29, 2007 4:09 pm |
If anyone has this up and working copy the entire pattern to here I'll try and get mine to work from that the help files that came with it do no thelp me at all :(
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sun Apr 29, 2007 7:37 pm |
#TR {~(Hp:(%d)/(%d)~)~(Mp:(%d)/(%d)~)~(Mv:(%d)/(%d)~)} {do whatever}
should work |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Sun Apr 29, 2007 8:48 pm |
I thank you for trying but still nothing...
Setup Example
So for example. If you have a status line that looks like this: [ hp: 20/20 mana: 10/15 ] you might set up a script like this: #TRIGGER {[ hp: (%d)/(%d) mana: (%d)/(%d)} {#VA HP %1; #VA HPMAX %2; #VA MANA %3; #VA MAXMANA %4;} Stats I feel I should expand on this a little since many people are having trouble with what is said here. The #TRIGGER function can be found in the Zugg Help Files. The short of it is you just need to map (%d)'s to numbers you wish to capture. So if you want the 20/20 (for the HP) and the 10/15 (for the mana) you make a replica of the command line (or any line) with (%d) replacing the numbers. Now with this method the first number captured becomes %1, the second %2, etc. So in the second part of the #TRIGGER you can then issue commands to ZMudd. The #VA command sets variables. So you set the first to HP, second to HPMAX, etc. The last part is a group catagory you can use to mass turn on or off these variables. As a general rule it is not needed. Another quick example: [*]<932hp 960sp 920st> Your trigger line would look like this: #TRIGGER {*<(%d)hp (%d)sp (%d)st>} {#VA HP %1; #VA SP %2; #VA ST %3;} Stats Now, in this example the Max is not shown so you would have to set this yourself (or use another trigger) for the guages to work properly.
thats from his help file :( its all jibberish to me I tried doing just like he said :( |
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: Sun Apr 29, 2007 9:03 pm |
Code: |
#trigger {~[hp~: (%d)/(%d) mana~: (%d)/(%d)~]} {#va HP %1;#va HPMAX %2;#va Mana %3;#va MaxMana %4}
|
This captures the info about hp/mana into variables. Hopefully that is what you wanted. As an explanation as I don't know exactly what wasn't working for you, using ~ helps to interact the certain symbols with the code, [ and : are one of those symbols.
Prog |
|
_________________ The Proud new owner of CMud.
--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
-------------------------------- |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Apr 29, 2007 9:11 pm |
#trigger {~(Hp:(%d)/(%d)~)~(Mp:(%d)/(%d)~)~(Mv:(%d)/(%d)~)} {variable assignments go here} {nocr|prompt}
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Sun Apr 29, 2007 9:13 pm |
when I put the tilda ~ in these it fails the check
hewre is my displayed prompt
(Hp:203/287)(Mp:39/257)(Mv:292/292)
I have only 3 thing to display in the graphic HP MP MV
I have them labeled hp and hpmax mp and mp max and mv and mvmax
how should I make it
I have this in it now
#TR { (Hp:(%d)/(%d) ) (Mp:(%d)/(%d) ) (Mv:(%d)/(%d) ) } { #VA HP %1; #VA HPMAX %2; #VA MP %3; #VA MPMAX %4; #VA MV %5; #VA MVMAX %6; }
and its not working |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Tue May 01, 2007 5:30 pm |
any other ideas?
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue May 01, 2007 7:44 pm |
There are certain characters that are special characters in trigger patterns. Some of them are *?[]()"% - there's a full list in the Pattern Matching reference. If those characters appear in the pattern, you have to tell zMUD that they're part of the pattern rather than special characters - you do that by putting a ~ before them. Since brackets are special characters, when they actually appear in the pattern, you need to put ~ before them. Your pattern
~(Hp:(%d)/(%d)~)~(Mp:(%d)/(%d)~)~(Mv:(%d)/(%d)~)
It's also very important that you don't add spaces to the trigger pattern where there aren't any in the text. You'd added some before the brackets. |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Tue May 01, 2007 9:30 pm |
this is still not working is there anyone out there that has this up and running and working at all?
and if you do what is checked/unchecked under pref, script parsar and pretty printing.
maybe I do not have something on that I need on |
|
Last edited by Mr. Sasavicz on Tue May 01, 2007 10:12 pm; edited 1 time in total |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Tue May 01, 2007 9:36 pm |
If I put a tilda ~ anywhere in the trigger it says pattern does not match
I check that pref he said theres no ~ to turn on or check |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Tue May 01, 2007 10:09 pm |
also if I put this
#TR {(Hp:(%d)/(%d))}
in it does not match if I put
#TR { (Hp:(%d)/(%d)) }
with those 2 spaces it matches |
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: Tue May 01, 2007 10:16 pm |
The point is to make the code understand that not all the "(" belong to a code but are just symbols. For that, you need "~".
Code: |
#trig {~(Hp:(%d)/(%d)~)}
|
Doing so, it SHOULD work.
Prog |
|
_________________ The Proud new owner of CMud.
--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
-------------------------------- |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Tue May 01, 2007 10:17 pm |
testing it now
{~(Hp:(%d)/(%d)~)}
pattern does not match |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed May 02, 2007 12:43 am |
You may need to check your Special Characters preferences. ZMud inherently knows what a ~ does in a trigger pattern, but it also allows you to change this character. If it is telling you that the pattern doesn't match, it's possible this setting may have been changed. If it has, then ZMud forgets what a ~ is for.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Wed May 02, 2007 1:10 am |
ok I checked in there the one with ~ was checked it is labeled quote char.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed May 02, 2007 1:26 am |
Is it possible there's two or more spaces separating items? ZMud doesn't let you put consecutive literal spaces in a trigger pattern, so if you need to match something like that you need to use %s.
The trigger pattern for the above would be:
this%sis a test. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Wed May 02, 2007 1:29 am |
from what I read in the help file I posted here this is what it should look like
my prompt
(Hp:337/337)(Mp:206/206)(Mv:346/346)
the trigger to make the grafix work
#TR { (Hp:(%d)/(%d))(Mp:(%d)/(%d))(Mv:(%d)/(%d)) } { #VA HP %1; #VA HPMAX %2; #VA MP %3; #VA MPMAX %4; #VA MV %5; #VA MVMAX %6; }
so I still cant get anything to go
under patter , states , options is there anything I need to check/uncheck?
all those are just as zmud put them by default I have not changed anything |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed May 02, 2007 2:18 am |
If this doesn't work please paste the output of your prompt (copy and paste it from your mud) between some [ code] tags [ /code].
First delete and previous prompt triggers even if they don't work then copy and paste this into your command line and hit enter to create it.
#TR "prompt" {~(Hp:(%d)/(%d)~)~(Mp:(%d)/(%d)~)~(Mv:(%d)/(%d)~)} {#VAR HP %1;#VAR HPMAX %2;#VAR MP %3;#VAR MPMAX %4;#VAR MV %5;#VAR MVMAX %6} "" {prompt|nocr} |
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Wed May 02, 2007 2:21 am |
I have 0 triggers in my zmud now
I copy pasted that line into trigger line, saved it, tested it, nothing :(
#TR "prompt" {~(Hp:(%d)/(%d)~)~(Mp:(%d)/(%d)~)~(Mv:(%d)/(%d)~)} {#VAR HP %1;#VAR HPMAX %2;#VAR MP %3;#VAR MPMAX %4;#VAR MV %5;#VAR MVMAX %6} "" {prompt|nocr}
is the last set of "" supposed to be blank?
I did uncheck the ~ under that special charcters menu and the command line for the triggers now lets me put them in the trigger command line |
|
Last edited by Mr. Sasavicz on Wed May 02, 2007 2:28 am; edited 2 times in total |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed May 02, 2007 2:27 am |
You need to have the ~ checked for it to work correctly the ~ is important!!!!, Please see my post above about putting your EXACT prompt output between some code tags on the forum. (code tags preserve spacing)
|
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Wed May 02, 2007 2:30 am |
nexela wrote: |
You need to have the ~ checked for it to work correctly the ~ is important!!!!, Please see my post above about putting your EXACT prompt output between some code tags on the forum. (code tags preserve spacing) |
I alread said if it is checked it wont pass the pattern test :(
what do u mean put my exact prompt output between some code tags?
(Hp:337/337)(Mp:154/206)(Mv:351/351)[---SW-]{-6702589}
[none:none]*[none:none]
<Ali:-1000><Ac:-33>
thats my entire prompt.
I am only using the
(Hp:337/337)(Mp:154/206)(Mv:351/351)
part of it |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed May 02, 2007 2:42 am |
The pattern I gave you should work with your prompt with the default zmud settings. What version of Zmud are you using?
|
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Wed May 02, 2007 2:46 am |
newest one that I know of 7.21
|
|
|
|
Mr. Sasavicz Novice
Joined: 11 Mar 2002 Posts: 37 Location: USA
|
Posted: Wed May 02, 2007 11:41 pm |
I am going to officially say this plug in does not work :(
it's sad too caus it would be a verry cool one!! |
|
|
|
|
|