It doesn't work even though there are no errors, please tell me.

Right off the bat this code is very repetitive and messy, which will give you many errors down the line. I recommend learning about how to create classes to store data instead of repeating variables over and over again, this will save you tons of work and bugs. Something like this:

CapturePoint := class<concrete>(): #Concrete so you can make editable
     @editable device : capture_area_device = capture_area_device{}
     var CaptureWeight : int = 0
     var PlayerWeight : float = 0.0
     var Weight : float = 0.0
#store these in an array or map
@editable CapturePoints : []CapturePoint = array{}
#you can also use multidimensional arrays to store multiple capture points under one index
CapturePoints : [][]CapturePoint = array{array{}}
2 Likes