RegEx pattern matching - any command beginning with punctuation (or: Please, help me transition from Inform 7) [SOLVED]

Hello everyone!

I am transitioning from Inform 7 to Quest, and I'm attempting to set up common commands testers use to make notes.

In Inform 7, I can match the RegEx pattern ^\p, then print "Noted."

I can't figure out how to pull this off. I've read the regular expressions documentation, which led me to research .NET regular expressions. So far, I've found nothing.

Anyone have the link to the forum post or documentation that I'm overlooking?


Eureka!

^\p{P}

(I asked 1 minute before I found it!)


Quest will ignore any command that starts with a *, allowing testers to add comments to a transcript.

I am curious what commands? inform has?


If you release for testing, there are numerous extra commands included when using Inform 7.

SHOWME lists EVERYTHING in the location.

SHOWME (object) tells you what location said object is in, and lists all of its statistics/attributes.

ACTIONS prints everything that happens "behind the scenes" upon entering a command.

I have a game on this site (currently unlisted, pending testing/feedback) which was released for testing using Inform 7.

http://textadventures.co.uk/games/view/ogj8kixyx0emjknru3nckg/they-call-ya-mister

You can check out everything that's included.

Here's the documentation. (There are quite a few testing commands I didn't list and many more of which I'm unaware.)

INFORM 7 - high-level debugging commands: http://inform7.com/learn/man/WI_24_3.html

INFORM 7 - low-level debugging commands: http://inform7.com/learn/man/WI_24_4.html

(The RegEx I was inquiring about has to be entered manually, it's not included when you release for testing.)

PS
I'm currently porting the game I linked to above, They Call Ya' Mister, to Quest. (This is the game to which my recent inquiries have pertained.)


WARNING:

If you use the code I mentioned above, it matches any command that begins with any punctuation.

So, if you have it set where the player can separate commands with ".", this will cause major problems.

Probably best to stick with the default Pixie just posted about. I'll just make a note on the opening screen that you can do that.

Thanks, Pixie!


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums