Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
golgepapaz
Beginner


Joined: 09 Sep 2010
Posts: 13

PostPosted: 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.
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: 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
--------------------------------
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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