The Dink Network

Creating Scripts

March 12th 2006, 09:30 PM
sob_scorpb.gif
What's the best tutorial for creating scripts? The Rudiments of Scripting all it says at the start is "assuming you" "assuming you know" "assuming you've read". "assuming" is all it realy says and is not helpful at all.
March 12th 2006, 10:43 PM
duck.gif
wesley
Peasant He/Him United States
 
the Dink C Reference isn't really a tutorial, but very helpful
March 12th 2006, 11:18 PM
duckdie.gif
I'm going to assume you have no experience in scripting for Dmods...lol..had to assume.

Anyway..I'd recommend using the DinkC Reference. Theres a DinkC text file that explains all the commands in your development folder as well. Now as far as the makeup of a script..I'd suggest looking at some other scripts. There really isnt a good tutorial for those who don't know any programming languages prior to getting into DinkC...as they all assume you know at least something. Im not going to go into the extreme basics without knowing whether you know that already. If you want...message me on MSN, if you have MSN that is, and I'd be happy to help you out.
March 13th 2006, 01:34 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Yeah, you're right, there's no good absolute beginners tutorial. I'd recommend reading tut1.txt first. After that, just copy scripts and edit them, see what it does. That's the way I learnt it. (and I had no programming experience either...)
March 13th 2006, 01:57 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
The Rudiments of Scripting (TROS) ís a good beginners tutorial.

I assume you have already read and studied Develop, DinkC, Readme and Tut1. I also assume you have downloaded some D-mods from the Dink Network and played them and that you have downloaded all the tutorials and files available from the network. And I also assume the basics of creating a map using an editor hold no secrets for you anymore. If you have not done that, please do, because that really is essential and you need to know the basics before you can proceed. The files and tutorials I’ve mentioned are very good but study is involved!

readme.txt and develop.txt aren't really interesting, though it's an introduction to what you'll be able to do. The former DinkC.txt (now DinkC.chm, since 1.08), is a helpful reference, but not something necessary to TROS. Following tut1.txt is good practice and once you've done this, TROS will not seem as daunting, but should even be follow-able without doing it.

Those files mentioned are, in this case, meant only as an introduction to what is possible. But generally, if you really want to learn to script, you'll absorb any tutorial you have. TROS is a good one for starters, right after tut1.txt.