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


Joined: 26 Oct 2005
Posts: 4

PostPosted: Wed Oct 26, 2005 4:01 pm   

equipment database tutor needed...
 
You feel informed:
Name 'a long stick'
Keyword 'stick long', Item type: STAFF
Item can be worn on: HOLD
Item will give you following abilities: NOBITS
Item is: MAGIC NOBITS
Weight: 6, Value: 7
Has 3 charges, with 2 charges left.
Level 1 spell of:
patience
AC-apply is 6
Damage dice is '2D8'
Can affect you as :
Affects : HITROLL By 1
Affects : DAMROLL By 1

That's what i have to work with. Cut and pasted different id's from different items to give whomever an idea of what fields... I don't need it done for me, but i do need some help gettin' started. As it stands now i just #say the stats whenever it sees the item, kinda spammy, yeah it's in a class I can turn off.

Have looked at other database scripts and I just don't get why they become so needlessly complicated.

Any help much appreciated.. runnin' on the newest zMud 7.21

thx!
_________________
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Oct 26, 2005 7:31 pm   
 
Well first you'll need to trigger off of the command and capture all the information you want stored in your EQ db. I'll assume you already defined it, and my example will show adding values to a variable record.

Code:

#TRIGGER {^You feel informed:} {}
#COND {Name '(*)'} {#ADDITEM CurEQItem Name "%1"}
#COND {Keyword '(*)', Item type: %w} {#ADDITEM CurEQItem Type "%2"; #ADDITEM CurEQItem Keywords"%1"}
...
#COND {Affects : (%w) By (%d) } {#ADDITEM CurEQItem %1  %2 }
#COND {^$} {#NEW Weapon @CurEQItem //Now store variable in DB.  I assume you've already loaded then all you have to do is }


This tutorial also serves as a great starting point.
_________________
Asati di tempari!
Reply with quote
Hsojy
Newbie


Joined: 26 Oct 2005
Posts: 4

PostPosted: Thu Oct 27, 2005 12:47 pm   
 
You assumed I alrdy defined it, what's it? I have defined nothing

#TRIGGER {^You feel informed:} {} identify ... for the class?

haven't seen #cond before, gonna read help file on it.

$ is for a blank line, right? is the ^ redundant then?

#new weapon, why weapon? this word is database name?
_________________
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Oct 27, 2005 4:01 pm   
 
I assumed you had already defined an equpment database. If not the zMud go to the DB tool, then File -> New and create one using the Equipment DB template. You can then customize it to suit your needs.

#COND is used for multi-state triggers. Very powerful and useful to know.

#NEW Weaopon @CurEQItem

It doesn't have to be weapon. 'Weapon' in this since references a particular view to the currently open database. If you did not specify 'Weapon' i.e. #NEW @CurEQItem then it would just add it to what ever the current view to the database is.
_________________
Asati di tempari!
Reply with quote
Hsojy
Newbie


Joined: 26 Oct 2005
Posts: 4

PostPosted: Thu Oct 27, 2005 4:48 pm   
 
what is the formula field for in the eq database template? is there a help file that explains that whole screen, i have been unable to find anything suitable.

Also, you're killing me w/ the it's and whatevers.

Hsojy is almost slain by Tech's lack of specifics!
Ouch! That seriously hurt!
_________________
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Oct 27, 2005 5:55 pm   
 
Sorry about that Hsojy. I keep assuming quite a bit. So let's get back to the basics. Go through the tutorials available here. If after reading those my advice still doesn't make sense, at the very least you'll be able to ask more specific questions and I can give you more relevant answers.

Tech recites tutorial. A white glow surrounds Hsojy.
Hsojy starts to feel better.
_________________
Asati di tempari!
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