TrustedUser
2,147
edits
m |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{AGIWiki}} | {{AGIWiki}} | ||
{{AGIWiki/Test commands}} | |||
The '''said''' command is used to evaluate the input entered by the player. It returns TRUE if the player entered text that matches the pattern specified by the argument values. | The '''said''' command is used to evaluate the input entered by the player. It returns TRUE if the player entered text that matches the pattern specified by the argument values. | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="cpp"> | ||
said(WORDGRPNUM1, WORDGRPNUM2, ...) | said(WORDGRPNUM1, WORDGRPNUM2, ...) | ||
said("word1", "word2", ...) | said("word1", "word2", ...) | ||
</ | </syntaxhighlight> | ||
== Description == | == Description == | ||
Line 52: | Line 51: | ||
== Example == | == Example == | ||
< | <syntaxhighlight lang="cpp"> | ||
if (said(2124)) { //assume word number 2124 = "look") | if (said(2124)) { //assume word number 2124 = "look") | ||
print("You look around."); | print("You look around."); | ||
Line 69: | Line 68: | ||
print("Ignore that."); | print("Ignore that."); | ||
} | } | ||
</ | </syntaxhighlight> | ||
== Technical Information == | == Technical Information == | ||