I would use gains so when the reader clicks to take the blanket, use:
gain Blanket
And when you want to remember this choice you can do:
if (Blanket) {
CODE
} else {
}
This probably explains it better than I do:
And to only allow the reader to choose 3 items, I would use a point system so every time an object is claimed, use:
@CHAR +1
Could be any character it doesn’t really matter and then later:
if (CHAR>3) {
CODE FOR HAVING TOO MANY OBJECTS
} else {
goto THREE_SUPPLIES
}
Once again the link above should explain it better than I can, hope this helped!