lua:getval
Differences
This shows you the differences between two versions of the page.
| lua:getval [2015/09/03 04:23] – created vodur | lua:getval [2015/09/03 04:38] (current) – vodur | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | See also setval | + | <font inherit/ |
| + | |||
| + | <font inherit/ | ||
| + | |||
| + | Syntax2: getval(" | ||
| + | |||
| + | The first argument is the string/name of the value. The second argument is the value of the string you're checking. | ||
| + | |||
| + | Example: | ||
| + | |||
| + | <code lua> | ||
| + | if ch: | ||
| + | sendtochar( ch , " | ||
| + | end | ||
| + | </ | ||
| + | |||
| + | In this example, the mprog could be attached to just about anything, using any trigger. The result would be the player getting a message that they' | ||
| + | |||
| + | See also [[: | ||
lua/getval.1441254180.txt.gz · Last modified: 2015/09/03 04:23 by vodur