! >WC A box of eight candles. ! ! This is a simple way to code up duplicate objects. For one thing, ! > take candles ! does not quite behave as we would hope: it'll only pick up one candle ! (though "> take four candles" will work). See the "Block" class ! below for a way to make good. ! ! If we had needed a much greater number of candles, we could have used ! object creation and destruction during play. See the "Ticket" class ! from the "Balances" example game. ! ---------------------------------------------------------------------------- Class Candle with name "wax" "candle" "candles", short_name "wax candle", plural "wax candles", description "It looks just like all the other candles.", before [; Burn: "Disappointingly, the wick refuses to burn."; ]; Object -> "grey tin box" with name "tin" "box" "grey", description "A grey tin box of ~Major's Candles~.", has container openable; Candle -> ->; Candle -> ->; Candle -> ->; Candle -> ->; Candle -> ->; Candle -> ->; Candle -> ->; Candle -> ->; Toyroom East_End "East End" with name "dolls" "nurses", description "The eastern end of the toyshop is pink, and dolls and nurses line the shelves right up to the high window. A dark doorway leads to a northern side chamber.", w_to Toyshop, n_to DarkRoom; ! ----------------------------------------------------------------------------