From b793bb7e9eb87a9dddfb1f78c3ae0d795bdb14f8 Mon Sep 17 00:00:00 2001 From: brianluau Date: Tue, 20 Sep 2011 07:20:19 +0000 Subject: - Updated strnpcinfo documentation, following r14929. - Fixed some script typos. (bugreport:5047, bugreport:5049, bugreport:5056) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14960 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 30 +++++++++++++++++++++--------- npc/jobs/2-2/sage.txt | 3 ++- npc/quests/first_class/tu_archer.txt | 2 +- npc/quests/quests_hugel.txt | 18 +++++++++--------- 4 files changed, 33 insertions(+), 20 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 9328cfa56..1afff5377 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -577,7 +577,9 @@ Variables --------- The meat of every programming language is variables - places where you store -data. +data. + +In the eAthena scripting language, variable names are not case sensitive. Variables are divided into and uniquely identified by the combination of: prefix - determines the scope and extent (or lifetime) of the variable @@ -614,7 +616,9 @@ nothing - A permanent variable attached to the character, the default variable "." - A NPC variable. They exist in the NPC and disappear when the server restarts or the NPC is reloaded. Can be accessed from inside the NPC or by calling - 'getvariableofnpc'. + 'getvariableofnpc'. Function objects can also have .variables which + are accessible from inside the function, however 'getvariableofnpc' + does NOT work on function objects. ".@" - A scope variable. They are unique to the instance and scope. Each instance has it's own scope that ends when the script ends. Calling a function with @@ -1304,6 +1308,9 @@ Example(s): //This will set the .var variable of TargetNPC to 1. set getvariableofnpc(.var,"TargetNPC"),1; +Note: even though function objects can have .variables, +getvariableofnpc will not work on them. + --------------------------------------- *goto