|
GelRoos Beginner
Joined: 12 Jun 2002 Posts: 13 Location: Canada
|
Posted: Sat Feb 21, 2004 5:19 am
Database Confussion |
Hey All,
Well i finaly decided to sit down and play with the database thingy here on zmud but i can not get it to work here for some reason.
I made a database called test and loaded it it has three fields name kind (weapon armor etc etc) and weight.
The item i am IDing is this:
Object 'the Crystal Lens' is infused with your magic...
It is a level 44 armor, weight 1.
Locations it can be worn: eyes
Special properties: glow magic
This armor has a gold value of 25000.
Armor class is 14 of 14.
Affects save vs paralysis by -3.
Affects intelligence by 1.
Affects affected_by by detect_invis scrying
and here is what i have written for alias triggers etc etc
#ALIAS identify {#T+ identify;#VAR Item "";cast identify %1}
#trigger {Object '(*)' is infused with your magic...} {#ADDKEY Item {Name="%1"}} identify
#trigger {It is a level 44 (%w), weight (%d).}{#Var ItemType %1;#ADDKEY Item {Weight=%2}} identify
#TRIGGER {$} {#T- identify;#IF (!%null(@Item)) {#NEW @ItemType @Item}} identify
not sure what i am doing wrong here but it will not record into the database
Hope somebody can get me back on the right direction
GelRoos |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Feb 21, 2004 6:39 pm |
You left out a required space in the second trigger.
#ALIAS identify {#T+ identify;#VAR Item "";cast identify %1}
#trigger {Object '(*)' is infused with your magic...} {#ADDKEY Item {Name="%1"}} identify
#trigger {It is a level 44 (%w), weight (%d).} {#Var ItemType %1;#ADDKEY Item {Weight=%2}} identify
#TRIGGER {$} {#T- identify;#IF (!%null(@Item)) {#NEW @ItemType @Item}} identify
I'm assuming you have a separate view for each Kind of item. If not, then your #NEW command is wrong. |
|
|
|
|
|
|
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
|
|