Messages, events, and shared state
Use direct script communication for a known recipient, an event when multiple listeners react to a broadcast, and state for deliberately shared data. This page teaches the choice; exact syntax remains in the upstream language reference.