Basic modal scripting