Page 1 of 1

Scripting

Posted: June 15th, 2009, 5:51 pm
by johnno56
I have been following the comments made to others about programming / scripting, and have notice something familiar. Most of you will advise to "edit" an existing piece of code instead of providing the code for us. That is when I recalled an old Chinese proverb: "Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime."

It's too easy for we noobs to use code that we did not create. Sure, it gets the job done. But how much do we learn?

Although I do not fully understand the syntax of cubescript, I do understand the flow and the logic from previous qbasic programming.

Now where did I put my text editor?

J

Re: Scripting

Posted: June 15th, 2009, 6:00 pm
by Dannyboi
Ha. Good one, well then you might be able to answer a question for me. Whats a good way to learn to script??

Re: Scripting

Posted: June 15th, 2009, 6:52 pm
by Obsidian
What we intend, when we say "edit this", is experiment with it. You learn from the errors, you know. ;)

Re: Scripting

Posted: June 15th, 2009, 7:21 pm
by Dannyboi
Ok.

Offtopic: I downloaded the coop edit patch does this mean the beta server for it is available now?

Re: Scripting

Posted: June 15th, 2009, 7:38 pm
by johnno56
Danny,

To answer your question of, "What's a good way to learn script?", can be both simplistic and complex.

The simple way is to read and practice the examples that you would find in documentation - Books or manuals of Cubescript. Wiki pages will give you a taste of the various commands etc.

The harder way, which I believe is the most beneficial way, is to do as suggested. Edit and existing script. For example, change the text that a character would say. Run it and see. Make changes to commands and conditions and see what errors that produces. It will be a steep learning curve (not easy) but will be the best teacher.

Note: BEFORE you make ANY changes, ALWAYS make a copy of the file you are about to change!!!! Will save many headaches.

Hope this helps.

J

ps: If I locate any books etc, I will let you know.

Re: Scripting

Posted: June 15th, 2009, 8:11 pm
by Dannyboi
Thanks for all the help J.

Thanks again

Danny