12-15-2019, 11:46 AM
(12-15-2019, 05:12 AM)DerVVulfman Wrote: Hrm. There is an issue with your error message. Not that it is wrong, but because that the configuration for the Skill Trees is also within the script. The more lines you put into the configuration, the more the change line line numbers.
However, I would suspect that the issue is with the coding of your skill tree. Perhaps a copy of it here could help? AND a copy of the line number in the script could help.
Alright, here is a copy of the script: https://gofile.io/?c=Iqgx9E
Error takes place in here:
Code:
def update_cursor_rect
if self.active
@line = $data_skills[@item_used[@index]].line(@switch_id, @tree) # This line
@position = $data_skills[@item_used[@index]].position(@switch_id, @tree)
new_x = $data_skills[@item_used[@index]].x
new_y = $data_skills[@item_used[@index]].y
self.cursor_rect.set(new_x, new_y, 24, 24)
else
self.cursor_rect.empty
end
end