Skip to reading
Adventure Mechanics & Effects

Teach the clerk to accept a receipt

Edition 0.86.3.4

Build authored boxing, camera moves, weather, attachments, inspectable objects, a radio and two-object puzzles using the existing adventure tools and scripts.

Download PDFView PDF page

TEXT PARSER / TWO OBJECTS

“Show receipt to clerk” has three working pieces. Show is the verb, the receipt is what the player shows, and the clerk is who receives it. PCA stores the special response on the first object. That same receipt can earn a different reply from the porter.

01. Make sure a Show verb exists under Verb Commands. Select it, enable Allow Preposition, and enter to in the Preposition field. Open the receipt’s inventory definition and its Verb Actions tab. Enable the option for using the Show verb with its preposition on this item.

02. Under Second-Target Responses, click Add Second-Target Response. Select Show. In Allowed Targets choose the clerk. Add Show Message with “That is my signature. You may pass.” Then add Set Variable for receipt_accepted with value true.

03. Save, enter the room with the receipt in inventory and the clerk present. First select Show, then the receipt, then the clerk. Next try typing “show receipt to clerk” in the parser box. If the click path works but typing fails, check the verb and object names or synonyms and look for a custom full command intercepting the same phrase.

04. Give the porter his own second-target response: “Tickets I understand. Receipts go to the clerk.” It tells the player where to go without handing them the solution. For other phrases, reserve full custom commands for a special sequence such as “knock three times.” Give ordinary objects everyday synonyms such as “pipe” and “steam pipe.”

Check it in play. Try the sentence with the receipt absent, with the wrong second target, and twice with the correct target. Only the clerk with the carried receipt should unlock this route. A second success should preserve the open door without paying a second reward.

Page 18 of 29Permalink
Go to page