Parse (Kernel)¶
-
Parse
(text event)¶ Parses the specified text and creates a parse event, returning it in the event object specified. It returns TRUE if the text is successfully parsed, otherwise, FALSE.
Important
This is SCI0 only.
Parameters: - text (string) – The text to parse (generally input by the player).
- event (heapPtr) – An
Event
object.
Returns: TRUE if the text is successfully parsed.
Example:
(= hEvent (Event new:)) (if (Parse "open door" hEvent) (if (Said 'open/door') (Display "The door is now open") ) )