
Tutorial Discussion
#31
Posted 26 September 2008 - 09:35 PM
#32
Posted 26 September 2008 - 09:41 PM

#33
Posted 28 September 2008 - 09:55 AM
#34
Posted 28 September 2008 - 02:08 PM

#35
Posted 02 October 2008 - 02:44 AM
#36
Posted 13 October 2008 - 01:48 PM
Scripting has been around for what, a year now? Perhaps more? Dunno, don't care. (It doesn't matter.

Perhaps we should make some tutorials where skilled people write a fairly simple script, then we try to comment it up on our own? Just for practice, at first. Because there are things that the skilled people will take for granted that the casual users don't understand as outright. Kinda like a Math Teacher who can't understand how someone can't multiply fractions.
#37
Posted 13 October 2008 - 03:15 PM
#38
Posted 13 October 2008 - 03:26 PM
[Egotrip] Something like This (Even more fleshed out.) would be useful for starters, [/egotrip] which would also include FAQ articles, such as
Then, another area for people to actually practice coding. I think that they may need to be separated, because what if someone who is learning scripting wanders into the "Practicing scripting" area, and accidentally learns a mistake before someone's had the chance to correct that mistake? They could adopt it, thinking it's right, having copied it off his/her fellow peers, and could harbor an affection of sorts for that line, mentally. Could be dangerous.
#39
Posted 13 October 2008 - 04:48 PM
Yeah, that looks like a good way to go about it. Start a thread with a first draft and update it based on comments and questions, then submit it as a tutorial when it's generally agreed to be satisfactory.
Hm, like a subforum of the scripting forum, you mean? Not a bad idea.
#40
Posted 13 October 2008 - 05:57 PM
#41
Posted 13 October 2008 - 10:01 PM
#42
Posted 15 October 2008 - 11:17 AM
Some other forums have a special [ code ] style tag that not only does what [ code ] usually does - fixed width font - but also automatically does the colouring. Also, they don't remove spaces at the beginning of a line. We could, if it's possible with the new IPB, call it [ zscript ] or something like that.
I'm thinking - taking up the idea of commented scripts that tell you what each part does that someone proposed in the scripting forum, that colouring would make them even more accessible to newbies. (And to more experienced scripters.)
#43
Posted 16 October 2008 - 02:00 PM
Basic tutorial:
Comments, whitespace, and coding style
Getting started
* ffc script and void run()
* Valid script names
Using built-in pointers and variables
* Changing properties of Link, Game, Screen, and this
Arithmetic
Using functions
Constants and std.zh
Intermediate tutorial:
Global and item scripts
Built-in arrays
User-defined variables
Conditional epxressions and comparisons
Loops
User-defined pointers
User-defined functions and script arguments
Advanced tutorial:
Break and continue
Bitwise operators
User-defined arrays
Scope and function overloading
Miscellaneous
Technical details
It's a bit different from the usual order of doing things. In particular, I think variables and flow control should wait until the intermediate tutorial because lots of people have trouble with them, and because it's possible to write useful (albeit simple) scripts without them. I want to get people writing functional scripts as soon as possible, putting off the more abstract and difficult concepts until later. Too many people give up because they're overwhelmed by technicalities before they're able to write anything functional.
I think it would also be a good idea to have sort of a "walkthrough" between the intermediate and advanced tutorials, showing the complete process of creating a fairly complex script.
#44
Posted 16 October 2008 - 02:24 PM
... Bleh.
Scripting has been around for what, a year now? Perhaps more? Dunno, don't care. (It doesn't matter.

Perhaps we should make some tutorials where skilled people write a fairly simple script, then we try to comment it up on our own? Just for practice, at first. Because there are things that the skilled people will take for granted that the casual users don't understand as outright. Kinda like a Math Teacher who can't understand how someone can't multiply fractions.
If I saw a chunk of code, and saw what effect it had on the game, I would be able to comment it fairly unbiasedly using simple deduction (as I am like the math teacher who CAN'T multiply fractions

#45
Posted 16 October 2008 - 06:30 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users