0 Usuarios y 1 Visitante están viendo este tema.
nothing - A permanent variable attached to the character, the default variable type. They are stored with all the account data in "save\athena.txt" in TXT versions and in the SQL versions in the `global_reg_value` table using type 3."@" - A temporary variable attached to the character. SVN versions before 2094 revision and RC5 version will also treat 'l' as a temporary variable prefix, so beware of having variable names starting with 'l' if you want full backward compatibility."$" - A global permanent variable. They are stored in "save\mapreg.txt" or database table `mapreg`, depending on server type."$@" - A global temporary variable. This is important for scripts which are called with no RID attached, that is, not triggered by a specific character object."." - 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'.".@" - 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 callsub/callfunc starts a new scope, returning from the function ends it. When a scope ends, it's variables are converted to values ('return .@var;' returns a value, not a reference)."#" - A permanent local account variable. They are stored with all the account data in "save\accreg.txt" in TXT versions and in the SQL versions in the 'global_reg_value' table using type 2."##" - A permanent global account variable stored by the login server. They are stored in "save\account.txt" and in the SQL versions in the 'global_reg_value' table, using type 1. The only difference you will note from normal # variables is when you have multiple char-servers connected to the same login server. The # variables are unique to each char-server, while the ## variables are shared by all these char-servers.Postfix: integer or stringnothing - integer variable, can store positive and negative numbers, but only whole numbers (so don't expect to do any fractional math)'$' - string variable, can store textExamples: name - permanent character integer variable name$ - permanent character string variable @name - temporary character integer variable @name$ - temporary character string variable $name - permanent global integer variable $name$ - permanent global string variable$@name - temporary global integer variable$@name$ - temporary global string variable .name - NPC integer variable .name$ - NPC string variable.@name - scope integer variable.@name$ - scope string variable #name - permanent local account integer variable #name$ - permanent local account string variable##name - permanent global account integer variable##name$ - permanent global account string variable
Iniciado por Celsius