- 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?
Question
Senshuken
Running this
Outputs this on the console
And running this
Outputs this
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/
Edited by SenshukenLink to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.