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

Replacements not working

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



Joined: 17 Sep 2007
Posts: 27

PostPosted: Wed Oct 10, 2007 3:13 pm    Post subject: Replacements not working Reply with quote

Ok I have this:

Code:
#alias {groupon} {
  #unact {group-says};
   #action {There were %0 coin} {split %0};
   #action {You stop following} {groupoff};
   #action {%0 group-says 'haste'} {has %0;log};
   #action {%0 group-says 'strength'} {str %0;log};
   #action {It's empty already.} {#3 #bell}
}
#alias {groupoff} {
   #act {group-says} {log};
   #unaction {There were %0 coin};
   #unaction {%0 group-says 'haste'};
   #unaction {%0 group-says 'strength'};
   #unaction {It's empty already.}
}


And the problem is that when this file is loaded, or when i type groupon these:

#action {%0 group-says 'haste'} {has %0;log};
#action {%0 group-says 'strength'} {str %0;log};

becomes these:

#action { group-says 'haste'} {has ;log};
#action { group-says 'strength'} {str ;log};

Which definitely doesn't work Smile Any ideas of what is going on?

Thanks!
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Wed Oct 10, 2007 3:43 pm    Post subject: Reply with quote

What happens is that the %0 belongs to the alias that creates the actions.

You could type: groupon %0 and groupoff %0 as one way to fix it.

Another way is to escape the %0 which is generally done by using %%90 instead of %0. When the alias executes it will see %9 inside the %%90, replace it with nothing (if you don't provide a 9th argument to the alias), which leaves %0.

So that'd make:

Code:

#alias {groupon} {
  #unact {group-says};
   #action {There were %%90 coin} {split %%90};
   #action {You stop following} {groupoff};
   #action {%%90 group-says 'haste'} {has %%90;log};
   #action {%%90 group-says 'strength'} {str %%90;log};
   #action {It's empty already.} {#3 #bell}
}


Coffee
Back to top
View user's profile Send private message Send e-mail
murlyn



Joined: 17 Sep 2007
Posts: 27

PostPosted: Wed Oct 10, 2007 4:53 pm    Post subject: Reply with quote

Awesome! Ill try it out. I would have never figured this out, so Im very happy that I posted Smile Thanks again!
Back to top
View user's profile Send private message
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