Skip to main content

TRIGGER_SPEECH

Keywords: TRIGGER_SPEECH
Syntax: SPEECH <string> The argument is a phrase, a text string, this is only activated when the phrase is contained in a message which has been said by a player character (PC) in the same room as the mobile, this doesn't work with 'yells'. The PC restriction is not necessary, but infinite loops between two talking mobiles is impossible. You can use only one word or a whole phrase, but to use a whole phrase you need enclose it between quotes (''). Be sure to choose a suitable word or phrase, because the trigger will be activated no matter if a PC has said the word/phrase to the mobile (to trigger the mobprog) or to another PC in the same room as the mobile, which who he is talking about something else using the same word/phrase. Examples: SPEECH hello This trigger will be activated when the mobile hears someone in the same room says the word hello. SPEECH 'please open the door!' This trigger will be activated when the mobile hears someone in the same room says the phrase 'please open the door!', this trigger checks the whole phrase, even the periods.