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
Santel
Novice


Joined: 07 Feb 2003
Posts: 32

PostPosted: Wed Feb 19, 2003 11:33 pm   

6.40 DB Field Option List
 
Creating an eq database. Have a field called Align. Basicly it tells you what aligns are allowd to use this kind of eq.
Created the options field with values Good, Neutral, Evil.

Now an eq can have any combinations of Good, Neutral and Evil.

Here is an exaple mud output:
Alignments allowed: good neutral

Here is my trigger:
#TRIGGER {^Alignments allowed: &Item.Align} {} identify

Now this captures "good neutral"
How do i add this to the db so that this eq can be good and neutral? I can always use a text field, but I want to sort the db on what kind of eq i can use.. (Paladin can only use good - Gith can only use evil)


Santel

btw what is it with the trigger window.. i just loaded in 40 triggers and they worked well.. then i turned off zMud and when i started zMud again all the triggers were gone :(
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Feb 20, 2003 12:30 am   
 
Convert the alignment into a stringlist and then give that to the DB:
#TRIGGER {^Alignments allowed: (*)} {#ADDKEY Align %replace("%1", " ", "|")} identify

As for the disappearing triggers, if they keep firing although they are not visible, then you need to delete the settings.dok file in your zMUD directory.

Kjata
Reply with quote
Hiryuu
Newbie


Joined: 27 Dec 2002
Posts: 9

PostPosted: Thu Feb 20, 2003 2:03 am   
 
If they aren't firing, did you remember to go File->Save in the settings editor?

~Hiryuu
Reply with quote
Santel
Novice


Joined: 07 Feb 2003
Posts: 32

PostPosted: Thu Feb 20, 2003 4:45 pm   
 
quote:

Convert the alignment into a stringlist and then give that to the DB:
#TRIGGER {^Alignments allowed: (*)} {#ADDKEY Align %replace("%1", " ", "|")} identify

As for the disappearing triggers, if they keep firing although they are not visible, then you need to delete the settings.dok file in your zMUD directory.

Kjata




Thanks Kjata.. it worked well.
Do you know how, in the option list, i can make an option "Empty". When i sort on this option now. I can select any of these tree:good, neutral, evil but i would also like to have non of the above.

A good char can use any items that align good or that has no align. Evil can use evil alig or items that have no align etc


BTW: No i didnt go file -> save but I will in the future :)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Feb 20, 2003 4:53 pm   
 
Untested, but first add a dummy option to the list, and then click on the Edit button and delete its name so it is blank.

Kjata
Reply with quote
Santel
Novice


Joined: 07 Feb 2003
Posts: 32

PostPosted: Thu Feb 20, 2003 5:56 pm   
 
quote:

Untested, but first add a dummy option to the list, and then click on the Edit button and delete its name so it is blank.

Kjata



I did a work around. Told my #new command that if the @Item.Align were empty put it to = "All"

Then in the option list i added "All". It works well.

Santel
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