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
TSM
Beginner


Joined: 12 Dec 2000
Posts: 21
Location: Canada

PostPosted: 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
Reply with quote
Vodoc
Apprentice


Joined: 11 Apr 2003
Posts: 119
Location: Sweden

PostPosted: 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.
Reply with quote
TSM
Beginner


Joined: 12 Dec 2000
Posts: 21
Location: Canada

PostPosted: Sat Jul 10, 2004 10:39 pm   
 
Thanks!
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