Move the letter between the two hands
07 / THE HANDOFF
1. Open pass_letter in the GDScript Designer. Paste the whole block, validate, apply and save. Stand Pip near Nell for their conversation. The script reads both hand positions at the instant Nell offers the letter. The transfer lasts eight-tenths of a second.
pass_letter / GDSCRIPT
func run():
if Runtime.variables.get("letter_read", false):
return
var paper = Runtime.entity_nodes.get("folded_note")
var a = await GetAttachPoint({"entityId":"nell", "point":"offer"})
var b = await GetAttachPoint({"entityId":"new_character", "point":"take"})
if paper == null or a.is_empty() or b.is_empty():
await ShowMessage({"text":"Check the paper and both hand points."})
return
var p = a.position
var q = b.position
paper.global_position = Vector3(p[0], p[1], p[2])
await SetObjectVisible({"entityId":"folded_note","visible":true})
var slide = paper.create_tween()
slide.tween_property(paper, "global_position", Vector3(q[0],q[1],q[2]), 0.8)
await slide.finished
await SetObjectVisible({"entityId":"folded_note","visible":false})
await SetVariable({"name":"letter_read","value":true})
await ShowMessage({"text":"Three bells. One bell. Two bells. Keep the long key."})The two GetAttachPoint calls return positions in the room. A tween moves the paper smoothly from the first position to the second. Once it arrives, the paper disappears into Pip’s pocket and letter_read turns on. Pip can read the clue again by talking to Nell.
If the paper stays put, check the two bone names, the point names and the placed paper’s ID. If the camera sees only its edge, make the paper a little thicker or angle the box slightly. The stored clue is awarded after a successful transfer.
Pip receiving the folded paper in the Relay Room. Keeping the characters close makes this short move easier to read.
