Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
chris74269
Novice


Joined: 26 Mar 2003
Posts: 40

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
chris74269
Novice


Joined: 26 Mar 2003
Posts: 40

PostPosted: Thu May 08, 2003 8:44 pm   
 
that string u gave didn't work
thanks for replying tho
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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
Reply with quote
chris74269
Novice


Joined: 26 Mar 2003
Posts: 40

PostPosted: Wed May 21, 2003 5:20 am   
 
still no luck with it, is there some setting ihave that could be causing problems
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
chris74269
Novice


Joined: 26 Mar 2003
Posts: 40

PostPosted: Fri May 23, 2003 12:01 am   
 
it finally went, thanks
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net