I’ve literally only just started learning scripting yesterday, so this is great for me to dissect and learn further!
The comments really help to break up the script, so I’ll definitely follow that structure in the future.
I think I’m making sense of what each bit does, the difficult part is understanding what elements you can and can’t use (though I have been following this https://expressions.aenhancers.com/ to help with that), as well well as what some other elements such as ‘[i]’ do etc.