Difference between revisions of "CharID"

From Wiki
Jump to: navigation, search
(container for findItem sentence)
(replaced example)
Line 8: Line 8:
 
<pre>
 
<pre>
  
call specific_char_variables.txt
+
findItem *
if #charID <> %charID
+
for #findIndex 1 #findCnt
 
{
 
{
event sysmessage You are using this script for the wrong character!  Halting Script!
+
  if #findId <> #charId
halt
+
    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