|
Hsojy Newbie
Joined: 26 Oct 2005 Posts: 4
|
Posted: 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! |
|
_________________
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Hsojy Newbie
Joined: 26 Oct 2005 Posts: 4
|
Posted: 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? |
|
_________________
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Hsojy Newbie
Joined: 26 Oct 2005 Posts: 4
|
Posted: 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! |
|
_________________
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
|
|