I have several clocks in-game that are set at the right time. One puzzle has the player resetting the clocks to 2:30. After that the player can reset the clock back to the real time. I want to prevent the player from setting the clock to any other time other than 2:30, but I’m not so sure how would I do that without the message sounding ridiculous. Right now attempting to set the time to anything other than 2:30 results in “No, you can’t set that to anything.”
[code]Setting is an action applying to one visible thing. Understand “set [something] to half past two” and “set [something] to2:30” and “set [something]” as setting.
Resetting is an action applying to one visible thing. Understand “reset [something]” as resetting.
Carry out resetting:
now the noun is not set;
say “Now the clock is set to [the time of day in words].”
Check resetting:
if the noun is not a clock,
say “You can’t reset that!” instead;
if the clock is not set,
say “The clock is already set at the right time.” instead.
Check setting:
if the noun is not a clock,
say “Why would you set that?” instead.
Carry out setting:
now the noun is set;
say “Now the clock is set to half past two.”[/code]
Also is there anyway to allow the player to type
> set clock to 2:30
without having an error popping up?