Too many conditions?

Is this too many conditions for one line/

Every turn when player carries purse: if purse is open and player is in Mustang and Mustang is in motion: say "You neglected to close your purse and all the money inside it flies away with the wind."; now money is off-stage; otherwise: continue the action.

You can have as many conditions joined by “and” or “or” as you like. Though I would point out that “continue the action” is for action rules, not Every Turn rules. I think it’s doing the same thing here as “make no decision” but it might have other side effects in certain rulebooks, and isn’t necessary.

What is appears to be doing is ignoring the “Mustang is in motion” condition. I don’t know why. The Mustang can be either stationary or in motion.

The Mustang is a vehicle in Driveway. The Mustang can be either stationary or in motion. The Mustang is stationary.

Check your World index. Do you have any object with a name containing the word “motion”?

no

Here’s the code:

[code]Indoors is a region. Bedroom, Closet, Dressing Room, Living Room, Merchandise Area, Counter, Back Room and Booth are in Indoors.

Outdoors is a region. Porch, Path, Driveway and Parking Lot are in Outdoors.

Every turn when player carries purse:
if purse is open and player is in Outdoors:
say “[if player is in Porch]You neglected to close your purse and all the money inside it flies away with the wind.”;
now money is off-stage;
otherwise:
continue the action.

The Mustang is a vehicle in Driveway. The Mustang can be either stationary or in motion. The Mustang is stationary.

Every turn when player carries purse:
if purse is open and player is in Mustang and Mustang is in motion:
say “You neglected to close your purse and all the money inside it flies away with the wind.”;
now money is off-stage;
otherwise:
if purse is open and player is in Mustang and Mustang is stationary:
continue the action.[/code]

And here’s the result (keeping in mind that the purse originally contains keys and some money):

Living Room
A place for entertaining. There’s a poster on one wall.
You can go north to the Dressing Room through the purple-colored door or south to the Porch through the pink door.

You can see a purple-colored door, a pink-colored door, a poster and a table (on which is a purse (closed)) here.

Watcha’ wanna do next?

take purse
Taken.

Watcha’ wanna do next?

s

Porch
It’s a bright, sunny day! Just right for getting nasty at the gloryhole! You can go back into the house to the north, or take the path to the east to get to the driveway.

You can see a pink-colored door here.

Watcha’ wanna do next?

e
East you go.

Path
You can see your car parked in the driveway to the east. You could also go back west to the Porch.

Watcha’ wanna do next?

e

Driveway
Your Mustang convertible is parked here. The top is down. Yours will be, too, soon.

You can see a Mustang (in which is an ignition (empty)) here.

Watcha’ wanna do next?

enter car
You slide your fabulous tushy into the driver’s seat and close the door behind you.

Driveway (in the Mustang)
Your Mustang convertible is parked here. The top is down. Yours will be, too, soon.

In the Mustang you can see an ignition (empty).

Watcha’ wanna do next?

open purse
You open the purse, revealing some keys and some money.

Watcha’ wanna do next?

i
You are carrying:
a purse (open)
some keys
a thong (being worn)
a pair of six-inch heels (being worn)
a skimpy halter (being worn)
a wickedly-short miniskirt (being worn)
a tampon (being worn)

((Note: purse does not now contain money))

The Mustang is in the Driveway, which is in Outdoors. So the first Every Turn rule fires, not printing anything (because the player isn’t in the Porch) but removing the money from play. Now the money is not in the purse, but the second Every Turn rule’s conditions are not met (the Mustang isn’t in motion), so it doesn’t print anything either.

I solved it this way:

[code]Every turn when player carries purse:
if purse is open and player is in Outdoors and player is not in Mustang:
say “[if player is in Porch]You neglected to close your purse and all the money inside it flies away with the wind.”;
now money is off-stage;
otherwise:
continue the action.

Thanks all for responding!

No, now the same thing will happen if you’re in the Driveway and not in the Mustang. You should make it always print the text if it removes the item from play.

You don’t need to say “continue the action” at the end of an every turn rule. That’s the default exit behavior for every turn rules.

(However, “stop the action” will abort the every turn rulebook and prevent later rules from running.)

The difficulty with this code (which I don’t think anyone has mentioned) is that it will continue to print the message every turn, even though the money has already flown away. You need to be very careful about testing whether all of the necessary conditions are true before printing anything or changing the world.