Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I7: Conditional mistakes (using "Understand...as...mistake")?

0 views
Skip to first unread message

Roger

unread,
Nov 21, 2009, 12:08:04 PM11/21/09
to
I could have sworn I had this working at some point with a certain
syntax but maybe I'm wrong.

Basically, I want certain actions to be a mistake only when a
particular action is occurring, instead of defining the action and
using a check rule. That is, of course, an option, and it's how I had
it working in the first place, but I thought the "understand as
mistake" functionality might be a bit cleaner.

For instance, I have three commands that do nothing but invoke a "say"
phrase (similar to the Taking Inventory action).

[code]
To say credits:
some code.

To say player stats:
some code.

To say player skills:
some code.

Understand "credits" as a mistake ("[credits]").
Understand "stats" or "st" as a mistake ("[player stats]").
Understand "skills" or "sk" as a mistake ("[player skills]").
[/code]

But then I would also like the following:

[code]
Understand "stats" or "st" as a mistake during El Sceno Numero Uno
("You twiddle your thumbs.").
Understand "skills" or "sk" as a mistake ("You twiddle your thumbs.")
during El Sceno Numero Uno.
[/code]

Neither of the above work. And if this isn't possible, no problem, I
can obviously do it by defining an action. I'm just trying to figure
out if I had dreamt up the ability to use conditional mistakes, or
what.

Andrew Plotkin

unread,
Nov 21, 2009, 1:39:35 PM11/21/09
to
Here, Roger <roger.h...@gmail.com> wrote:
>
> But then I would also like the following:
>
> [code]
> Understand "stats" or "st" as a mistake during El Sceno Numero Uno
> ("You twiddle your thumbs.").
> Understand "skills" or "sk" as a mistake ("You twiddle your thumbs.")
> during El Sceno Numero Uno.
> [/code]
>
> Neither of the above work. And if this isn't possible, no problem, I
> can obviously do it by defining an action. I'm just trying to figure
> out if I had dreamt up the ability to use conditional mistakes, or
> what.

You can, but the conditional part doesn't accept "during SCENE" for
some reason. You can say:

Understand "stats" or "st" as a mistake ("You twiddle your thumbs.")
when El Sceno Numero Uno is happening.

--Z

--
"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."
*

Roger

unread,
Nov 21, 2009, 2:06:05 PM11/21/09
to
On Nov 21, 1:39 pm, Andrew Plotkin <erkyr...@eblong.com> wrote:

Ah ha! Thank you. I don't know why I didn't try that - it's funny,
because I usually use "is happening" as a preference to "during" in
most of my code but for some reason switched here AND didn't think to
try the other syntax.

Thanks, Andrew.

0 new messages