![](templates/Classic/images/spacer.gif) |
golgepapaz Beginner
Joined: 09 Sep 2010 Posts: 13
|
Posted: Thu Dec 23, 2010 9:22 pm
strange bug |
the trigger that is part of my identify script
Code: |
<trigger priority="690" id="84">
<pattern>It is made of (*) and weighs (%d) pounds (%d) ounces</pattern>
<value>#addkey item {material=%1|weight=%2 lb %3 oz}
#echo @item</value>
</trigger> |
when run with a
#echo It is made of leather and weighs 0 pounds 14 ounces
only prints
material=leather
I can alleviate the problem by separate the #addkey into two parts
but that was working before , I am at a loss where the problem might
be, any insights would be greatly appreciated. |
|
|
![](templates/Classic/images/spacer.gif) |
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: Thu Dec 23, 2010 10:35 pm |
It's not an usual String Variable, you can't merely #echo it. As you're creating DB Variable, you'd be better off using #showdb instead?
|
|
_________________ The Proud new owner of CMud.
--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
-------------------------------- |
|
|
![](templates/Classic/images/spacer.gif) |
|
|