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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Wed Jul 14, 2010 3:11 am   

3.22 BUG Error with #ADDKEY inputting improper keys
 
Code:

<class name="Test" id="1583">
  <var name="test_db" type="Record" id="1584">
    <json>{}</json>
  </var>
  <trigger priority="15850" regex="true" id="1585">
    <pattern>([\w ,'-]+) glows all shiny</pattern>
    <value>$var=%trim(%1)
$var=%concat(%lower(%left($var, 1)), %right($var, 1))
#show "Captured: "$var
#ADDKEY test_db $var @test_time.shiny</value>
  </trigger>
  <alias name="test" id="1586">
    <value>#show %params" glows all shiny."</value>
  </alias>
  <var name="test_time" type="Record" id="1587">
    <value>shiny=12</value>
    <json>{"shiny":12}</json>
  </var>
</class>


To test this, use the alias "test" with some sort of item string after it, for instance:
test A brilliant sword

You will notice that the key in the variable is "a" as opposed to "a brilliant sword" which is what it should be.

Now, if you take out the variable @test_time.shiny
it works just fine.

Unfortunately, for the purposes of my script, I need to be able to use a variable there.

Is this a bug, or am I hitting upon something I was able to do in the past that I wasn't supposed to be able to do?
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Wed Jul 14, 2010 6:04 am   
 
http://forums.zuggsoft.com/forums/viewtopic.php?t=35444
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Wed Jul 14, 2010 6:12 am   
 
>.> Oops, I was looking for different thread titles when looking for similar threads.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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