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
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Sun Mar 15, 2009 2:17 am   

[3.05] Is requiring trig sub-states to be unique from other trigs intentional?
 
In a class 'Test', create a trigger with pattern 'One'.
Create a second trigger with pattern 'Two'.
Create a trigger sub-state in 'Two' named 'One'.

The error window will now pop up telling you that it must be named something unique. Is this intentional? I see no reason why they can't have the same pattern as one is a sub-state.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sun Mar 15, 2009 9:50 pm   
 
I think you're are misunderstanding. The trigger IDs have to be unique the sub-state patterns do not have to be. By default CMUD makes the trigger pattern (up to 64 chars I believe) the ID. If you accept the proposed name you will see that the sub-state trigger has an ID of "One1" and a patter of "One" as indicated by "One1 : One" in the tree display. So yes, this is expected behavior. I believe CMUD has always operated like this (at least it should have been). Very Happy
_________________
Asati di tempari!
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Sun Mar 15, 2009 10:35 pm   
 
Hi Tech, I do understand what it is doing, but I still don't see why it want or cares about sub-states.

Trigger: One

Trigger: Two
Sub-Trigger: One

Why it should care if Trigger 'One' and Sub-Trigger 'One' have the same name?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Mar 16, 2009 5:56 am   
 
Because the sub-state trigger, like all triggers has a unique ID. Now if you questioning whether or not sub-states should have unique id's, then that's something else altogether. I know you can you set state's specifically using #SET or #STATE but I think that goes my the main trigger ID.

The more I think about, I can see your point. Zugg'll have to weigh in on this one.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Mar 16, 2009 5:53 pm   
 
Yes, right now all trigger states need to have unique ID values. This is because they are stored in a database and the ID field is a unique key value for the records. Not something that is easily changed, sorry.
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