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


Joined: 03 Oct 2002
Posts: 2

PostPosted: 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?
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: 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.
Reply with quote
Plazgoth
Newbie


Joined: 03 Oct 2002
Posts: 2

PostPosted: 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?
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