If you want to learn the basics about how to create scripts, even if you are a complete beginner in coding, you can follow this suggested learning path:
- Start with this gentle tutorial that uses many practical examples: Tutorial
- Now that you are more familiar with the general idea of how scripts work, you can use this concise guide for revision and reference of the important points: Scripting concise guide