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
Tarken Aurelius
Apprentice


Joined: 23 Oct 2008
Posts: 120
Location: Cincinnati, Ohio

PostPosted: Mon Nov 16, 2009 3:16 am   

Function like sscanf() in C
 
I'm going to be doing some heavy CMUD testing, developing an AI chatbot using triggers and a response database. There was a function similar to sscanf() that CMUD had but I can't remember it for the life of me. Can someone possibly shed some light for me?
_________________
Tarken Aurelius, quality triggers since 2004! Trigger consulting since 2008! Content Developer at BatMUD (www.bat.org)
Reply with quote
orphean
Apprentice


Joined: 21 Oct 2008
Posts: 147
Location: Olympia, WA

PostPosted: Mon Nov 16, 2009 4:59 am   
 
The only function that uses C style foof() codes would be %format() and that does pretty much the exact opposite of sscanf so isn't much help.

Your best bets are going to be %match() and %regex() which can store captured text into a variable.
Reply with quote
Tarken Aurelius
Apprentice


Joined: 23 Oct 2008
Posts: 120
Location: Cincinnati, Ohio

PostPosted: Mon Nov 16, 2009 5:06 am   
 
Ah yeah %match was the one that I wanted. Does perfectly. Thanks!
_________________
Tarken Aurelius, quality triggers since 2004! Trigger consulting since 2008! Content Developer at BatMUD (www.bat.org)
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