I'm trying my hand at Hugo and I already found a default response I don't quite understand.
The code is this (based on shell.hug):
Code: Select all
#include "verblib.g"
#include "hugolib.h"
routine init
{
prompt = ">"
player = you
location = yard
move player to location
FindLight(location)
DescribePlace(location)
location is visited
CalculateHolding(player)
}
routine main
{
PrintStatusLine
run location.each_turn
runevents
RunScripts
if parent(speaking)~=location
speaking = 0
}
player_character you "you"
{
}
room yard "Mansion Courtyard"
{
}
object car "car"
{
nouns "car"
in yard
is container, enterable, openable, not open
}
Where did the "Nothing is closed" come from? Does the game think I'm trying to exit the "nothing" object? Is the code missing something?Mansion Courtyard
Car is here.
>enter car
Car is closed.
>open car
Opened.
>enter car
You get into car.
Mansion Courtyard, in car
>close car
Closed.
>out
Nothing is closed.