lua:ch:getval
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lua:ch:getval [2014/12/27 07:39] – created vodur | lua:ch:getval [2015/09/03 04:45] (current) – vodur | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Getval works similar to qstatus, but with the setval command. Immortals can look up values on a player with the " | + | See [[:lua:getval|getval]]. |
| - | + | ||
| - | Syntax: getval(" | + | |
| - | + | ||
| - | The first argument is the string/name of the value. The second argument is the value of the string you're checking. | + | |
| - | + | ||
| - | Example: | + | |
| - | + | ||
| - | ifch:getval(" | + | |
| - | 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' | + | |
lua/ch/getval.1419665985.txt.gz · Last modified: 2014/12/27 07:39 by vodur