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

tintin 2.01 wildcard become invalid on macos sierra

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



Joined: 28 May 2017
Posts: 4

PostPosted: Sun May 28, 2017 9:06 pm    Post subject: tintin 2.01 wildcard become invalid on macos sierra Reply with quote

cat test.tt
----------------
#nop test.tt
#debug action on
#al test {
#ac {==AAA%*==}{ #showme =act1=%*=;} ;
#ac {==%1BBB%2==}{ #showme =act2=%1=%2= };
}
----------------
>#read test.tt
> test
#OK. {==AAA%*==} NOW TRIGGERS { #showme =act1=%*=;} @ {5}.
#OK. {==BBB==} NOW TRIGGERS { #showme =act2===;} @ {5}.

%* is correct,but wildcards %1 %2 not be supported.
why? thanks.


Last edited by fabletang on Sun May 28, 2017 9:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
PowerGod



Joined: 04 Aug 2014
Posts: 339

PostPosted: Mon May 29, 2017 8:40 am    Post subject: Reply with quote

If parameters for a command are declared inside another command, you must add another "%", so this should be what you need:

Code:

#al test {
#ac {==AAA%%*==}{ #showme =act1=%%*=;} ;
#ac {==%%1BBB%%2==}{ #showme =act2=%%1=%%2= };
}


With a single "%" it was using the parameters passed to "test"
Back to top
View user's profile Send private message
fabletang



Joined: 28 May 2017
Posts: 4

PostPosted: Mon May 29, 2017 7:31 pm    Post subject: Reply with quote

PowerGod wrote:
If parameters for a command are declared inside another command, you must add another "%", so this should be what you need:

Code:

#al test {
#ac {==AAA%%*==}{ #showme =act1=%%*=;} ;
#ac {==%%1BBB%%2==}{ #showme =act2=%%1=%%2= };
}


With a single "%" it was using the parameters passed to "test"


Thank you very much!
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