---------------------------------------
*setd "<variable name>",<value>{,<char_id>};
Works almost identically as set, except the variable name is identified as a string
and can thus be constructed dynamically.
This command is equivalent to:
set getd("variable name"),<value>;
Examples:
setd ".@var$", "Poporing";
mes .@var$; // Displays "Poporing".
setd ".@" + .@var$ + "123$", "Poporing is cool";
mes .@Poporing123$; // Displays "Poporing is cool".
NOTE:
'char_id' only works for non-server variables.
Player with Character ID 'char_id' must be online.
---------------------------------------
*getd("<variable name>")
Returns a reference to a variable, the name can be constructed dynamically.
Refer to 'setd' for usage.
This can also be used to set an array dynamically:
setarray getd(".array[0]"), 1, 2, 3, 4, 5;
Examples:
set getd("$varRefence"), 1;
set .@i, getd("$" + "pikachu");
---------------------------------------
example:
setarray .@x,1,2;
setarray .@x1,10,20,30,40,50;
setarray .@x2,100,200,300,400,500;
for(.@i=0;.@i<getarraysize(.@x);.@i++){
for(.@m=0;.@m<getarraysize(getd(".@x" + .@x[.@i]));.@m++){
debugmes "" + getd(".@x" + .@x[.@i] + "[" + .@m + "]");
}
}