|
TSM Beginner
Joined: 12 Dec 2000 Posts: 21 Location: Canada
|
Posted: Sat Jul 10, 2004 9:54 pm
Trigger / database question |
I'm trying to use some triggers to log all the items I identify into a database, but for some reason, when an item affects both hit roll, and dam roll by 1, it only stores the value for the dam roll in the database.
here is a sample Identify:
----------------------------------------
This object, an orcish scimitar can be referred to as 'sword scimitar'.
It is made of steel and weighs 10 pounds 10 ounces.
It can cause 2d10 points of damage, at average 11.
When worn, it affects your damage roll by 1 points and your hit roll by 1 points.
here is the trigger I'm currently using:
#TRIGGER {your (%w) (%w) by (%n) points} {#addkey NewItem "%1 %2" "%3"}
thanks for any help |
|
|
|
Vodoc Apprentice
Joined: 11 Apr 2003 Posts: 119 Location: Sweden
|
Posted: Sat Jul 10, 2004 10:02 pm |
A trigger will only be applied once per line, you will have to make a second trigger to take care of the case when you have both hit-n-dam.
|
|
|
|
TSM Beginner
Joined: 12 Dec 2000 Posts: 21 Location: Canada
|
Posted: Sat Jul 10, 2004 10:39 pm |
Thanks!
|
|
|
|
|
|
|
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
|
|