|
Plazgoth Newbie
Joined: 03 Oct 2002 Posts: 2
|
Posted: Thu Oct 24, 2002 1:39 am
Question about Database |
Here is the trigger I am trying to use:
#PROMPT location Location?
#VARIABLE NewShortItems ""
#ADDKEY NewShortItems Item "_2"
#ADDKEY NewShortItems Cost _3
#ADDKEY NewShortItems Index _1
#ADDKEY NewShortItems Location @location
#NEW Sh @NewShortItems
I have the special character % redefined as _
The database stays empty. This is what I see on the mud when I have the triggers turned on:
#VARIABLE NewShortItems ""
#ADDKEY NewShortItems Item "a bowl of spicy gurth stew"
#ADDKEY NewShortItems Cost 15
#ADDKEY NewShortItems Index 07
#ADDKEY NewShortItems Location @location
#NEW Sh @NewShortItems
So I know my pattern is working but why is the record not inserted? |
|
|
|
doomfyre Apprentice
Joined: 03 Jan 2002 Posts: 152 Location: USA
|
Posted: Thu Oct 24, 2002 4:44 am |
Make sure the database window is open, and also, you may have to manually enter the first record.
|
|
|
|
Plazgoth Newbie
Joined: 03 Oct 2002 Posts: 2
|
Posted: Fri Oct 25, 2002 6:29 am |
Thanks. I guess I had to manualy enter a dummy item. Is that a bug or a feature?
|
|
|
|
|
|