 |
chris74269 Novice
Joined: 26 Mar 2003 Posts: 40
|
Posted: Thu May 08, 2003 2:11 am
trigger |
i tried to make a status bar for my prompt, but it wont work, this is what i tried:
mud output:
|HP[441/441] SP[61/144] ST[77.55%] PP[90.72%] CF[1/22%] FF[46.25%] E[50%] B P (coyote)
what i did:
|HP[(@hpcur)/(@hpmax)] SP[(@spcur)/(@spmax)] ST[(&stamina)%] PP[(&pp)%] CF[(&relinquish)/(&cfreset)%] FF[(&familiarity)%] E[(&enemy)%] (&flux) * ((&form))
doen't work, any ideas, i think the [] might have someying to do with it |
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu May 08, 2003 7:40 am |
To create variables directly from the pattern, use & instead of @. These are automatically assigned numbers, so don't put parentheses around them. And yes, the ['s will cause problems. You'll also want to use the appropriate wildcard types if you want to make sure you get numbers instead of strings.
#TR {~|HP~[&%dhpcur/&%dhpmax~] SP~[~&%dspcur/&%dspmax~] ST~[&{stamina}~%~] PP~[&{pp}~%~] CF~[&relinquish/&{cfreset}~%~] FF~[&{familiarity}~%~] E~[&{enemy}~%~] &flux ~(&form~)}
Personally, I find it much easier to make a pattern and then use the #VAR command in the trigger's Value section.
LightBulb
Advanced Member |
|
|
|
 |
chris74269 Novice
Joined: 26 Mar 2003 Posts: 40
|
Posted: Thu May 08, 2003 8:44 pm |
that string u gave didn't work
thanks for replying tho |
|
|
|
 |
TonDiening GURU

Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Fri May 09, 2003 1:24 am |
quote:
Extra ~ typo:
#TR {~|HP~[&%dhpcur/&%dhpmax~] SP~[~&%dspcur/&%dspmax~] ST~[&{stamina}~%~] PP~[&{pp}~%~] CF~[&relinquish/&{cfreset}~%~] FF~[&{familiarity}~%~] E~[&{enemy}~%~] &flux ~(&form~)}
Just a minor ~ issue
#TR {~|HP~[&%dhpcur/&%dhpmax~] SP~[&%dspcur/&%dspmax~] ST~[&{stamina}~%~] PP~[&{pp}~%~] CF~[&relinquish/&{cfreset}~%~] FF~[&{familiarity}~%~] E~[&{enemy}~%~] &flux ~(&form~)}
Ton Diening |
|
|
|
 |
chris74269 Novice
Joined: 26 Mar 2003 Posts: 40
|
Posted: Wed May 21, 2003 5:20 am |
still no luck with it, is there some setting ihave that could be causing problems
|
|
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed May 21, 2003 12:07 pm |
What do you mean that it does not work? Does it not fire?
For the sample text output you gave, the pattern given here does make the trigger fire. You can test it out for yourself. Just copy and paste this into the comamnd line:
#TRIGGER {~|HP~[&%dhpcur/&%dhpmax~] SP~[&%dspcur/&%dspmax~] ST~[&{stamina}~%~] PP~[&{pp}~%~] CF~[&relinquish/&{cfreset}~%~] FF~[&{familiarity}~%~] E~[&{enemy}~%~] &flux ~(&form~)} {#SAY trigger fired}
#SH ~|HP~[441/441~] SP~[61/144~] ST~[77.55%~] PP~[90.72%~] CF~[1/22%~] FF~[46.25%~] E~[50%~] B P (coyote)
You should see the message "trigger fired". If it does not fire when the message comes from your MUD, what you need to do first is to check the Trigger on Prompt option for this trigger, since the line you posted is a prompt. Then, look carefully for any difference between what you posted and what the MUD shows.
Kjata |
|
|
|
 |
chris74269 Novice
Joined: 26 Mar 2003 Posts: 40
|
Posted: Fri May 23, 2003 12:01 am |
it finally went, thanks
|
|
|
|
 |
|
|
|