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
dratcha
Newbie


Joined: 26 Sep 2002
Posts: 8

PostPosted: Fri Oct 04, 2002 5:47 pm   

Classes problem
 
I have some classes which have sub-classes. In these sub classes, I have aliases and triggers set up. The problem I am having is that when I do this, they no longer work. Here is a simple trigger I am trying to do:

#CLASS {AfflictionTriggers} {enable}
#CLASS 0
#CLASS {AfflictionTriggers|Stand}
#TRIGGER {^You must first raise yourself from the floor and stand up.} {stand}
#CLASS 0

This trigger will work if it is not in a class. Is there something I am missing here? Are sub-classes even a good idea to use?

Thanks!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Oct 04, 2002 7:44 pm   
 
I tried your script. It works. The problem must be something else.

Make sure you have both classes (AfflictionTriggers and Stand) active. You can check this by using the editor, if they are inactive their folders will be grayed out. Make sure the trigger itself is active. You can check this by selecting the trigger, if it's active it will have a green dot at the bottom of the edit screen. Make sure you don't have any typo's in the trigger.

I can't see any real need for a subclass in this particular case, in fact I usually put similar triggers for my characters in the None class. In the rare instance that I want to continue resting instead of whatever else I tried to do, I just sit back down.

Subclasses are an excellent idea in many cases though, both for organization and to provide multiple levels of control over which settings are active. I've never had any problem using them, including this time.

LightBulb
Senior Member
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