Running this
- script test -1,{
OnWhisperGlobal:
set var1, var2;
dispbottom "Set var1 to var2";
set var1, .var2;
dispbottom "Set var1 to .var2";
set var1, $var2;
dispbottom "Set var1 to $var2";
end;
}
Outputs this on the console
[Error]: script:copyarray: illegal scope
[Debug]: Data: variable name='var1'
[Debug]: Data: variable name='$var2' index=0
[Debug]: Source (NPC): test (invisible/not on a map)
And running this
- script test -1,{
OnWhisperGlobal:
set var1, var2;
dispbottom "Set var1 to var2";
set var1, .var2;
dispbottom "Set var1 to .var2";
set var1, $var2;
dispbottom "Set var1 to $var2";
end;
}
Outputs this
[Error]: script:copyarray: illegal scope
[Debug]: Data: variable name='var1'
[Debug]: Data: variable name='.var2' index=0
[Debug]: Source (NPC): test (invisible/not on a map)
Any idea why it's doing it? Am I not allowed to set different type of variables to player bounded variables?
Reported: http://rathena.org/board/tracker/issue-5675-copying-global-variable-to-player-variable-error/