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
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Sat Apr 24, 2004 5:14 am   

Matching wierd EQ descs
 
can anyone match both these in a single zmud trig and put text after Desc: in a variable??

Desc: <*><|Modi's Courage|><*>
or
Desc: [****NO-PK****] Leggings of l33tn3$$

trying to auto-pop database and the special characters in eq
keep messing with %* or %1 or &eqdesc...

what pattern do i use?
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Sat Apr 24, 2004 6:02 am   
 

#TRIGGER {Desc: (*)} {VARIABLE = "%1"}

Ok that will store them correctly, now the ones with a | in them will be displayed by zmud in the settings as a list but this isn't a big deal, they'll still be able to be used as the complete string they are.

Now when you want to display the value in the variable use %quote(@VARIABLE)

Jesse
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Sat Apr 24, 2004 7:03 am   
 
found a partial solution using %expand or %quote:

Trigger pattern: ^| Desc%s:%s&%*item_realname%s|

#show %expand(@item_realname,1)
shows
<*><|Modi's Courage|><*>

#ADDITEM item_full_info %expand(@item_realname,1)
or
#ADDITEM item_full_info %quote(@item_realname)
adds

* Sash of Jord *

how do i make it work with #ADDITEM? :(
Reply with quote
Pega
Magician


Joined: 08 Jan 2001
Posts: 341
Location: Singapore

PostPosted: Sat Apr 24, 2004 9:55 am   
 
The string contains | characters and they are reserved characters for zMUD's string lists.

I think it would be much simpler to use database-record variables to store these descs, especially when the information is going to be transferred into the database. However, that was not a simple matter either. I came across a problem with EQ descs containing ()s around them eg. (-)Magician's Restitution(-), (Green Aura), but it was resolved in another thread http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=15895.
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