What you learn today
- Quiz on style, documentation and updates
This week was about making your scripts work for others too – and for you in half a year. For review:
- Guide: define and alias consistently, sections, labels,
Average,yield, comments without special characters, ASCII names inHASH("…"). - Documentation: header with purpose, version and device list, settings with unit, range and effect. Long version in the library, game version in the chip.
- Sharing: instruction.xml under
scripts\<Title>, version in three places, a self-test for other people's bases. - Updates: deprecated LogicTypes return nothing, wrong prefab names return NaN, strict mode and test cases expose it.
- Code golf:
select, comparisons as numbers andclampsave without harm, safety is never cut.
You pass from 60 %.
Weekly quiz
10 questions. You pass from 60 % – the server does the grading.
Complete the day
- Passed the quiz with at least 60 %
Without an account progress is saved in this browser only.
Report a mistake in this lesson
Please sign in to report. Sign in