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


Joined: 27 May 2008
Posts: 299

PostPosted: Thu Jun 12, 2008 1:04 am   

[2.26] Using #CLASS to disable/enable
 
when I type
#class "Class|subclass|subsubclass" 1

into command line or fire from a script even when its already there (just disabled) its creating a new class tree under my default session window instead of enabling the one thats already there...

I know I could use #T+ but the above should work... or at least I thought it would.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Jun 12, 2008 5:52 am   
 
No, that's the difference between the #CLASS command and the #T+ command. If the #CLASS command doesn't find an existing class, then it will create it. The #T+/- commands will not create it if it doesn't exist.

If the class isn't in the default session window, then you need to make sure it is in a Global module. If it's in some other window, then it's private to that other window, and then you need to use the full syntax of

#class "||WindowName|Class|Subclass" 1

So give us more detail on where the class already exists so that we can understand why CMUD isn't finding it.
Reply with quote
Toxic
Adept


Joined: 27 May 2008
Posts: 299

PostPosted: Thu Jun 12, 2008 12:51 pm   
 
Paste the following xml into a blank session and fire the alias changeclass... By your own words it should find the class and disable it, instead it recreates the class tree under the default window for the session.

Code:

<module name="test" id="4">
  <uid>{DB64B9DE-96AC-40C0-80F3-2142A7EF8E86}</uid>
  <class name="class" id="5">
    <class name="subclass" id="6"/>
    <alias name="changeclass" id="7">
      <value>#CLASS "class|subclass" 0</value>
    </alias>
  </class>
</module>
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Jun 12, 2008 5:19 pm   
 
Hmm, you are correct. That's definitely not working correctly. Thanks for the good test case...I'll add this to the bug list and try to fix it for v2.27.
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