Difference between revisions of "CharID"
From Wiki
(container for findItem sentence) |
(replaced example) |
||
| Line 8: | Line 8: | ||
<pre> | <pre> | ||
| − | + | findItem * | |
| − | + | for #findIndex 1 #findCnt | |
{ | { | ||
| − | + | if #findId <> #charId | |
| − | + | event ExMsg #findId 3 0 This is someone or something else. | |
| + | if #findId = #charId | ||
| + | event ExMsg #charID 3 0 This is me! | ||
} | } | ||
| + | halt | ||
</pre> | </pre> | ||
{{footer}} | {{footer}} | ||
Revision as of 07:34, 29 December 2005
| ⇒ | The #charID system variable determines the id of your character. This is a unique identifier, so it can be used to identify different characters and make specific actions depending on what character it is. This variable can also be used as a container for findItem. |
Example
findItem *
for #findIndex 1 #findCnt
{
if #findId <> #charId
event ExMsg #findId 3 0 This is someone or something else.
if #findId = #charId
event ExMsg #charID 3 0 This is me!
}
halt
See also
| Main Page | Documentation |