Changed Implicit Action by Emily Short begins here. "Modifying the way implicit taking is handled so that the author has more control over the way in which this is narrated to the player, and so that the parser makes better decisions in ambiguous situations." Understand the command "wear" as something new. Understand the command "eat" as something new. Understand the command "remove" as something new. Understand the command "shed" as something new. Understand the command "give" as something new. Understand the command "show" as something new. Understand the command "blow" as something new. Understand the command "open" as something new. Understand the command "put" as something new. Understand the command "drop" as something new. Understand the command "throw" as something new. Understand the command "discard" as something new. Include Version 2 of Locksmith by Emily Short. Definition: a thing is possessed if the person asked has it. Definition: a thing is currently being worn if the person asked wears it. Understand "drop [things held]" as dropping. Understand "put down [things held]" as dropping. Understand "put [things held] down" as dropping. Understand the command "throw" as "drop". Understand "discard [things held]" as dropping. Understand "put [other things] on/onto [something]" as putting it on. Understand "put [things] on/onto [something]" as putting it on. Understand "put [other things] on/onto [supporter]" as putting it on. Understand "put [things] on/onto [supporter]" as putting it on. Understand "put [other things] in/inside/into [something]" as inserting it into. Understand "put [other things] in/inside/into [container]" as inserting it into. Understand "put [things] in/inside/into [something]" as inserting it into. Understand "put [things] in/inside/into [container]" as inserting it into. Understand "wear [something]" as wearing. Understand "wear [something wearable]" as wearing. Understand "wear [a possessed wearable thing]" as wearing. Understand "put on [something]" as wearing. Understand "put on [something wearable]" as wearing. Understand "put on [a possessed wearable thing]" as wearing. Understand the command "don" as something new. Understand "don [something wearable]" as wearing. Understand "don [a possessed wearable thing]" as wearing. Understand "don [something]" as wearing. Understand the command "disrobe" as something new. Understand "disrobe [something currently being worn]" as taking off. Understand "disrobe [something]" as taking off. Understand the command "doff" as something new. Understand "doff [something currently being worn]" as taking off. Understand "doff [something]" as taking off. Understand "take off [something currently being worn]" as taking off. Understand "eat [something]" as eating. Understand "eat [something edible]" as eating. Understand "eat [a possessed edible thing]" as eating. Understand "give [something] to [someone]" as giving it to. Understand "give [something possessed] to [someone]" as giving it to. Understand "give [someone] [something possessed]" as giving it to (with nouns reversed). Understand "give [someone] [something]" as giving it to (with nouns reversed). Understand the command "feed" as something new. Understand the command "feed" as "give". Understand the command "offer" as something new. Understand the command "offer" as "give". Understand the command "pay" as something new. Understand "pay [something] to [someone]" as giving it to. Understand "pay [something possessed] to [someone]" as giving it to. Understand "pay [someone] [something possessed]" as giving it to (with nouns reversed). Understand "pay [someone] [something]" as giving it to (with nouns reversed). Understand "show [something] to [someone]" as showing it to. Understand "show [something possessed] to [someone]" as showing it to. Understand "show [someone] [something possessed]" as showing it to (with nouns reversed). Understand "show [someone] [something]" as showing it to (with nouns reversed). Understand the commands "present" and "display" as something new. Understand the command "present" as "show". Understand "drop [something] at [something]" as throwing it at. Understand "blow [something possessed]" as blowing. Understand "blow [something]" as blowing. Understand "open [a closed openable thing]" as opening. Understand "open [something]" as opening. Understand "close [an open openable thing]" as closing. Understand "open [an openable thing]" as opening. Understand "close [an openable thing]" as closing. Understand the command "switch" as something new. Understand "switch [device] on" as switching on. Understand "switch on [device]" as switching on. Understand "switch [something] on" as switching on. Understand "switch on [something]" as switching on. Understand "turn [device] on" as switching on. Understand "turn on [device]" as switching on. Understand "switch [device] off" as switching off. Understand "switch off [device]" as switching off. Understand "switch [something] off" as switching off. Understand "switch off [something]" as switching off. Understand "turn [device] off" as switching off. Understand "turn off [device]" as switching off. Understand "switch [device]" as toggling. Understand "switch [something]" as toggling. Understand "toggle [device]" as toggling. Understand "toggle [something]" as toggling. Toggling is an action applying to one thing. Check toggling (this is the can't toggle what's not a device rule): if the noun is not a device, say "[The noun] cannot be switched." instead. Check someone trying toggling (this is the someone can't toggle what's not a device rule): if the noun is not a device, stop the action. Carry out toggling (this is the divert to switching rule): if the noun is switched on, try switching off the noun instead; otherwise try switching on the noun instead. Carry out someone trying toggling (this is the divert someone to switching rule): if the noun is switched on, try the person asked trying switching off the noun instead; otherwise try the person asked trying switching on the noun instead. Procedural rule: substitute the new can't wear what's not held rule for the can't wear what's not held rule. This is the new can't wear what's not held rule: abide by the must hold the noun rule. Procedural rule: substitute the must hold the noun rule for the can't insert what's not held rule. Procedural rule: substitute the must hold the noun rule for the can't put what's not held rule. Check eating (this is the can't eat what is not held rule): abide by the must hold the noun rule. Check giving (this is the can't give what is not held rule): abide by the must hold the noun rule. Check showing (this is the can't show what is not held rule): abide by the must hold the noun rule. Check blowing (this is the can't blow what is not held rule): abide by the must hold the noun rule. Check throwing it at (this is the can't throw what is not held rule): abide by the must hold the noun rule. Changed Implicit Action ends here. ---- Documentation ---- By default, Inform uses the something held token in locking and unlocking (for the second noun) and for wearing, eating, giving, and showing (for nouns). This means that the object is automatically taken, and a message such as "(first taking the... )" is automatically printed. Unfortunately, this overrides other kinds of parser defaulting (such as preferring to wear wearable items and eat edible items). It also means that the implicit take occurs even when there is no logical reason for it; e.g., we will attempt to take something to eat before printing "that's plainly inedible". It might therefore be preferable to do the edibility check before the attempted take action. Changed Implicit Action removes "[something held]" from almost all of the grammar lines in which it appears ("dropping" is not interfered with). Instead, it adds check rules to those actions which have been changed. The must hold the noun rule attempts to take the noun if necessary, and then fails if the player is not holding it. The must hold the second noun rule does the same with the second noun. The author may also use these rules to add checks to his own actions, which will then behave in a uniform way. Changed Implicit Action also affects the behavior of "switch on", "switch off", and "switch" alone. Whereas Inform by default reads "switch thing" as "switch on thing", Changed Implicit Action understands this as an instruction to toggle the state of the device: it translates to switch on if the device is switched off, and to switch off if the device is switched on. This new action is called "toggling", and is defined both for the player and for other characters. Additional grammar lines also improve the defaulting of "switch" to prefer devices. Changed Implicit Action requires Locksmith by Emily Short. It shares with Locksmith the "sequential action" use option, which means that if the author includes the line Use sequential action. the usual (first taking the chicken marsala) You eat the chicken marsala. line will be replaced instead by the normal report rule for automatic taking, which might look like this: Taken. You eat the chicken marsala. This may not be desirable in itself, but it allows us to add custom descriptions for taking actions, if desired. The extension also defines the adjective "possessed" for things had by the person asked. This is useful for defining grammar lines that are meant to prefer held things, without forcing an implicit take at that point. Example: * Ebony - Disambiguating sensibly for wear, eat, lock, and unlock, with implicit taking re-assigned to the before rule. "Ebony" Include Changed Implicit Action by Emily Short. The player is in a room called the Room of Ambiguous Choices. Choices contains a black box, a black forest cake, and a black robe. The black robe is wearable. The black box is a lockable container. It is openable, closed, and locked. The cake is edible. The black chest is a lockable openable open unlocked container. The black key unlocks the black box. It unlocks the black chest. It is a passkey. The black table is a supporter in Choices. The player carries the key. The black cookie is an edible thing carried by the player. The black switch is a device in Choices. Test me with "wear black / eat black / g / take off black / unlock black / put robe on black / get all / open black / put all in black / switch black on / switch black". Note that this chooses the wearable clothing; eats the food that the player carries, and then the other food in scope; then unlocks the locked box rather than the unlocked chest.