Search found 8 matches
- Fri Jan 11, 2013 11:39 pm
- Forum: Help Forum
- Topic: local mydb = db:HELP ME!!
- Replies: 12
- Views: 7289
Re: local mydb = db:HELP ME!!
after that, I showed how the table is set up.
- Fri Jan 11, 2013 10:50 pm
- Forum: Help Forum
- Topic: local mydb = db:HELP ME!!
- Replies: 12
- Views: 7289
Re: local mydb = db:HELP ME!!
nifty.. I assume, though, that db:merge_unique(mydb, myhugetable) is still going to work after giving you a better idea of how the table is structured, since you didn't say otherwise?
- Fri Jan 11, 2013 10:36 pm
- Forum: Help Forum
- Topic: local mydb = db:HELP ME!!
- Replies: 12
- Views: 7289
Re: local mydb = db:HELP ME!!
If you have a nifty way to save tables (with subtables that have subtables) to disc in any format like yaml/xml that can loaded into a database and operated on, I would be happy with that solution to. Otherwise, I'm stuck trying to get mudlet's database to work and then hopefully I'll be able to SQL...
- Fri Jan 11, 2013 10:33 pm
- Forum: Help Forum
- Topic: local mydb = db:HELP ME!!
- Replies: 12
- Views: 7289
Re: local mydb = db:HELP ME!!
maybe.. here's what the table looks like myhugetable = {} myhugetable.elixirs = {} myhugetable.inks = {} myhugetable.bombs = {} etc. etc. and entries, in each subtable, are added (as tables) with table.insert so: display(myhubetable.bombs[1]) --> {location="The Twelve Tun Hub", item="...
- Fri Jan 11, 2013 10:26 pm
- Forum: Help Forum
- Topic: local mydb = db:HELP ME!!
- Replies: 12
- Views: 7289
Re: local mydb = db:HELP ME!!
Can I pass a whole table to db:merge_unique? the table has 9 subtables, each of which have key/value entries of 1/table, 2/table, 3/table, etc.. with the tables containing data like this, "location = "The Twelve Tun Hub", itemname="Star tarot", groupsize="10", cost...
- Thu Jan 10, 2013 11:07 pm
- Forum: Help Forum
- Topic: local mydb = db:HELP ME!!
- Replies: 12
- Views: 7289
Re: local mydb = db:HELP ME!!
Can you show me what that would look like? I thought what I'm adding is already in a table.
- Thu Jan 10, 2013 10:45 pm
- Forum: Help Forum
- Topic: local mydb = db:HELP ME!!
- Replies: 12
- Views: 7289
local mydb = db:HELP ME!!
I created a database in a script called 'database': db:create("worldstock", { elixirs={ type="", shop="", cost=0 }, tonics={ type="", shop="", cost=0 }, herbs={ type="", shop="", cost=0 }, minerals={ type="", shop="...
- Wed Nov 21, 2012 7:23 am
- Forum: Whatever
- Topic: What MUD(s) do you play?
- Replies: 27
- Views: 104331
Re: What MUD(s) do you play?
iQFTnjkc wrote:Aetolia since '03, Batmud and when I am angry some GW
I'm going to check out Project Bob and Two Towers from reading this thread. Thx!