Script simplified to illustrate problem of state at _init:
export(int) var i
var x = 0 + i
x is always 0 even if i is set to a value other than 0 in the Inspector pane of the editor for that resource. How do we get the set value during initialization of the resource?