What you learn today
- Quiz on slots, storage and plants
This week you looked inside devices. The key points:
- Slots count from 0.
lsreads one slot of a device,lbsthe same slot of all devices of a type. - Storage:
Quantityis the item count,MaxQuantitythe stack limit. An empty slot reports both as 0. For amountsSumis right. - Free slots: count used slots via
Occupied, devices withCount(using a LogicType every device can read, e.g.PrefabHash). - Battery charger:
ChargeRatiofrom 0 to 1. An empty slot reports 0, so checkOccupiedfirst. - Plants: only the hydroponics device has logic. Slot 0 is the plant, without a plant the values report −1.
Maximumasks for “any”. - Daylight:
Activateis 1 in sunlight. You build schedules with a counter andmod, not withsleep. - Restart in the game: registers keep their value. Set counters to 0 before the start label.
You pass from 60 %, the explanations appear after handing in.
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