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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Tue Dec 12, 2006 9:08 pm   

[1.22] Wrong class disabled by #T-
 
I have my new package for tracking gear, and I'm working out the kinks. Well, I have a class folder for updating a list of vials that is normally disabled. It's enabled by an alias and should be disabled at the end of my multi-state trigger. Instead of disabling the class in my package, however, it's creating a new class in my main package and disabling that.

Code:
#ALIAS psum {
   #T+ PotionList|Update
   fluid_names = %concat(@potion_names, "|", %replace(@poison_names, contortrin, contortri), "|", @salve_names, "|", @misc_names, "|empty")
   pl
}

#CLASS PotionList|Update disable
#CLASS PotionList|Update 0
#REGEX {^\*{79}$} {#gag}
#COND {^Id\s+Vial\s+Potion\s+Sips\s+Months\s+$} {
   #GAG
   #ADDKEY my_sips {%replace(@fluid_names, contortri, contortrin)} 0
   #ADDKEY my_vials {%replace(@fluid_names, contortri, contortrin)} 0
} {within|param=1|regex}
#COND {^\-{79}$} {#gag} {within|param=1|regex}
#COND {^\*{79}$} {#gag} {regex}
#COND {^Total Vials\: \d+$} {#gag;#T- PotionList|Update} {within|param=1|regex}
#CLASS 0


Please tell me that this is a bug and I'm not doing it wrong. :)
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Dec 12, 2006 9:17 pm   
 
It definitely sounds like a bug since #T+ and #T- shouldn't be creating classes at all. Makes me think it's more to do with the specific package setup you're using than the specific code you're running.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Tue Dec 12, 2006 9:30 pm   
 
I think you're right, Fang. I kept playing with the settings to clean up the packages and get an alias detection trick working, and now that same #T- command works as it should.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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