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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Sun Oct 18, 2009 2:09 am   

Line Variable Trigger...????
 
This Is The line:
Encumbrance: 58% Quest Points: 6024 (0 quests completed)

Iam trying to:
#trigger Encumbrance: %1
#var holdvar %1

#trigger Gold: %1
#var goldvar %1

Its returning the whole line on the trigger and not jsut the stat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Oct 18, 2009 6:18 am   
 
%1 when used in a trigger pattern is the same thing as *. Change your pattern per the Pattern Matching help.

#trigger {Encumbrance: &%dholdvar~%} {}

If you would prefer to have the % in the variable, change &%dholdvar~% to (%d~%) and use the #var you had before.
_________________
EDIT: I didn't like my old signature
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Oct 18, 2009 5:50 pm   
 
Using %1 as a pattern is never recomended, and has been considered pretty much a bug. You need to stick with the pattern matching symbols (%x, %d, %w, %n, etc) and not use %1, %2, etc. Just a heads up.

Charneus
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Sun Oct 18, 2009 6:50 pm   
 
When useing this pattern matching...

Encumbrance: 58% Quest Points: 6024 (0 quests completed)

This Works For The Encumber but I cant seem to get it for the qps, does the qps need to be %dd?
or my gold for that matter...
*FIXED*

END THREAD
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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