add comments so everyone can understand the code does.
In my opinion if code needs comments to explain what it does, then coder should think about better names for his variables and functions instead of adding lines to source.
Well, zappa, these bracket in function names can be treated like your ";" characters at the end of statements, it doesn't make big difference, but it works for you and that's your style, so why not to use it? In my opinion and what works for me, it's a lot more readable to have code looking like this:
//=========================================================================
DoObjective1: {
//=========================================================================
// iprintln "Objective 1 started"
level.dasboxset = 0
level.dasdetonatorset = 0
thread DelayedTruckStart
$dastruck_escape triggerable
$dasdetonator triggerable
$dasdetonator setthread DasDetonatorSet
waitframe
$dastruck_a waittill drive
while (level.trucksgotaway == 1) {
wait 10
}
}end
instead of:
DoObjective1:
// iprintln "Objective 1 started"
level.dasboxset = 0
level.dasdetonatorset = 0
thread DelayedTruckStart
$dastruck_escape triggerable
$dasdetonator triggerable
$dasdetonator setthread DasDetonatorSet
waitframe
$dastruck_a waittill drive
while (level.trucksgotaway == 1)
wait 10
end
Or other weird creations.