Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Copying Global Variable to Player Variable Error


Senshuken

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/14/12
  • Last Seen:  

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/

Edited by Senshuken
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  291
  • Reputation:   4
  • Joined:  04/24/12
  • Last Seen:  

even toasty warper.. i got that error..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...