|
Santel Novice
Joined: 07 Feb 2003 Posts: 32
|
Posted: 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 :( |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
Hiryuu Newbie
Joined: 27 Dec 2002 Posts: 9
|
Posted: Thu Feb 20, 2003 2:03 am |
If they aren't firing, did you remember to go File->Save in the settings editor?
~Hiryuu |
|
|
|
Santel Novice
Joined: 07 Feb 2003 Posts: 32
|
Posted: 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 :) |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
Santel Novice
Joined: 07 Feb 2003 Posts: 32
|
Posted: 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 |
|
|
|
|
|