What I wish for is to have nodes that will gain completely unique behaviors in unique circumstances. I want them to reform their own functions or create new ones when those circumstances are met. I wish to keep these circumstances along with whole code lines in JSON. This is because I plan to have hundreds of various behaviours and I don't think it is convenient to have single ready script with all of them being switched with booleans.
For example : when blue node collides with red node I want the nodes script to expand ( create new script dynamically based on originals script copy ) and add whole line of code from JSON containing whole new Input event() function in form of string.
Is this possible in Godot ??