TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

variables in #actions - 1.9(5)?

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
lazloth



Joined: 05 Dec 2004
Posts: 6

PostPosted: Sun Feb 12, 2006 9:20 am    Post subject: variables in #actions - 1.9(5)? Reply with quote

Something broke in one of the ~recent releases. If this is by design, would you help in discovering the syntax? [I'm OSX if that makes a difference.]

With the following bits in my rc:
Code:
#ALIAS            {COBJ}                  {#var cobj %1}
#ALIAS            {craft}                 {COBJ %1;craf $cobj}
#ALIAS            {ctarg}                 {#var ctarget %0}
#ACTION           {You could make a %0 from that.}  {ctarg %0}                   {5}


In 1.93 -
> craft bulb
#Ok. $cobj is now set to {bulb}.
#Ok. $ctarget is now set to {roasted ocotillo bulb}.
You could make a roasted ocotillo bulb from that.

In 1.95 (both precompiled and user-built; wasn't sure if I maybe missed a library) -
> craft bulb
#OK. $cobj IS NOW SET TO {bulb}.
You could make a roasted ocotillo bulb from that.

It should be evident that the %0 variable which was being given a value in the trigger no longer is processed.
Any insight would be appreciated! Thanks.
Back to top
View user's profile Send private message
lazloth



Joined: 05 Dec 2004
Posts: 6

PostPosted: Sun Feb 12, 2006 10:01 am    Post subject: Reply with quote

Some further #debugging: it looks like it's related to the simple echo to the user.

Sometimes with 1.95.7 I get:
#OK. $ctarget IS NOW SET TO {banana sandwich} and sometimes I don't. The variable is set correctly in my #actions however (with no echo to me); will incorporate a #show for consistency's sake.

Thanks for reading.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3844

PostPosted: Sun Feb 12, 2006 2:22 pm    Post subject: Reply with quote

I changed that because the spam generated by complex aliasses was rather annoying. You'll get all spams when using #debug all on.

An alias showing only one out of two assignments is confusing though, I'll look into that.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group