|
tekky Beginner
Joined: 08 Feb 2006 Posts: 25
|
Posted: Wed Feb 08, 2006 1:02 pm
general dbase functions.... (need help) |
I'm trying to recreate a old script in the new zMUD (was a script from a different client) before I decide to stick with zMUD or back to my original client... my problem is this
my mud allows 2 seperate characters and I want to track information for both characters whtout having to switch settings/files around...
zMUD's database makes thiis very feasible... however I'm not quite catching on to somethings...
I setup a really simple database with 3 columsn
skill_name skill_count and skill_owner
I populated this with some test data and all was great... I could #find someskillname and it would display the relevant information... I was even able to take a new variable using #addkey and inserting it into the database (once anyways... didnt work after that) and have it show up...
My question.... is there more precise methods to doing this stuff other than
#dbload dbname
#dbreset
#find somevalue
I cant get any values returned now when I try find... or anything else...
I've tried #dbclose and reloading... reseting... what am I missing?
Can someone explain this better? I tried searching, thats where I got some of the ideas from, but nothing that explained anything more really.
Thanks |
|
_________________ -Karl |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Feb 08, 2006 9:25 pm |
If you are not getting anything at all, perhaps you forgot to open the DB module window? None of the ZMud database commands do anything if it's not open, but they don't ever tell you that it's not open.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
tekky Beginner
Joined: 08 Feb 2006 Posts: 25
|
Posted: Thu Feb 09, 2006 3:21 am |
ahhh thanks that solved that problem :) kinda... odd that you have to have it open in that manner :(
now to return a single value instead of the record id... :) |
|
_________________ -Karl |
|
|
|
|
|