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
demoneyoungblood
Apprentice


Joined: 16 Dec 2002
Posts: 114
Location: USA

PostPosted: Thu Jul 21, 2005 6:21 pm   

Comprehensive DB Tutorial
 
Hey all, anyone out there thats *extremely* familiar with the DB mind writing a comprehensive tutorial with sample exampling? If so, then when its written, maybe I can put it into the new help file that I am working on for zmud. (I dont know how long the new hlp file is going to take, as im still learning the software im using, but its looking pretty good so far).

Just figured I would ask :)

On the downside, you are right zugg, ForeHelp was replaced by Help Magician Elite, and sadly not worth the price and whatnot. So, ive found a worthwhile solution in Shalom Help, its 100% free :-D. Will keep everyone updated on progress of the new help file. I know zugg pointed out that you can view the help file online, but figured it might still be a good idea to have an actual updated help file. :)
_________________
-Demone YoungBlood
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Jul 25, 2005 8:50 am   
 
I started a DB tutorial from the perspective of the most common usage for the DB is identified item storage, and that a person would have already created the DB; the tutorial was meant as more of an advanced programming topic. I posted the rough body of it about a year ago for comments. Feel free to look it up for ideas.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
StonedMOFO
Beginner


Joined: 22 Sep 2004
Posts: 28

PostPosted: Mon Jul 25, 2005 10:12 pm   different way of accessing db
 
I am running a bot where I have the trigger control where I will go next,
basically the bot will start from a fix location, and proceed down a variable string -> for example a string name "hell" would have something like "w|w|w|w|n|e|e|e|n|fastgo|w|n|w|nw|stopfastgo" and I have a command call "nextmove" that essentially do
Code:
#var operation %pop(currentmovelist);#if (%empty(operation) {-=shift to next variable for more route=-} {@operation}
this would eventually rinse and repeat.

Recently I moved the variable to the DB, because it was easier for me to work with (because I get a horse in the MUD that goes by #) so currently I have it set up where I have two column, one name "movelist" one is "killlist" and I have a variable name "currentroute" which cordinate to a location remembered by the horse, which can be reach by typing in "move #". When I detect my currentmove list is empty, I would increment the "currentroute" and run #var currentmovelist %db(@currentroute, movelist) <-- this was good cause then when I add new route, I only need to modify the DB, and not having the modify the ALIAS (before I was running @currentroute through #CASE, which mean I have to write it personally, defining the exact variable name to use for each case).

My problem now is, do I always have to have my DB window open? is there better way of accessing the DB for my need? What are all the way I can access DB? I know the help file has all the function listed, but I can't exactly figure out what they all mean, as far as I see it %db and %dbget sounds like it does the exact same thing!
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