Let Kit power the remote line
09 / SCRIPT 1 OF 5
Make one script per page for the next five pages. Use Adventure Database › Add › GDScript. Enter the Script ID and Name shown. In the code editor select the starter text, replace it with the whole block, then click Validate › Apply Changes › Save Project. Keep the indentation. Leave the event checkboxes clear. Only the final script needs Keep global instance alive.
1. Script ID: gate_breaker. Name it Gate Breaker. The first click powers the line. A later click charges the reserve, but only after Pip has fitted the pin.
func run(): if ActivePlayer() != "player": return if QuestState("behind_wall") != "completed": await ShowMessage({"text": "Kit: I need to know which line to feed."}) return match int(Runtime.variables.get("lift_stage", 0)): 0: await SetVariable({"name": "lift_stage", "value": 1}) await ShowMessage({"text": "Kit: Auxiliary feed on. Pip, check the relay!"}) 1, 2: await ShowMessage({"text": "Kit: I have power. Pip needs to seat the pin."}) 3: if Runtime.variables.get("lift_seconds", 0) <= 0: await SetVariable({"name": "lift_seconds", "value": 30}) await ShowMessage({"text": "Kit: Charged! Tab to Pip and press the relay."}) else: await ShowMessage({"text": "Kit: The reserve is already charged."}) 4: await ShowMessage({"text": "Kit: The lift is back in service."})2. Wire the breaker. Open Gatehouse › Scene Objects › Auxiliary Breaker › Verb Actions. Set Default Verb to Use. Under Use Verb — Step 1, choose Run Visual Script (or Run Script) and select Gate Breaker. Apply and save. The selector accepts the GDScript you just wrote.
[1] What the click does. [2] Which script to run. The stage check keeps a second click from refilling a live reserve.
