I’m having some trouble disambiguating between similarly named objects in beta. This has been driving me bananas in a lengthy game, but stripped down to the essentials, it’s this:
######################################
# Adventuron #
######################################
start_at = my_location
######################################
# Locations #
######################################
locations {
my_location : location "You are in a room." ;
}
######################################
# Connections #
######################################
connections {
from, direction, to = [
]
}
######################################
# Objects #
######################################
objects {
cupboard : scenery "a cupboard" at = "my_location" container_type="bag";
green_banana : object "a green banana"at = "my_location" ;
yellow_banana : object "a yellow banana";
black_banana : object "a black banana" ;
}
######################################
# On Command #
######################################
on_command {
: match "put _" {
: if (noun2_is "cupboard") {
: if (s1_location() == "inventory") {
: insert_in_container "cupboard";
}
: else {
: print "You don't have it." ;
}
}
}
}
…in classroom, GET BANANA
and PUT BANANA IN CUPBOARD
== You put the green banana inside the cupboard.
in beta, it doesn’t work == You don't have it.
Why is s1 not recognised as being in the inventory in the beta version? I have a feeling that this used to work (I’ve just noticed that it now doesn’t), so perhaps something has changed that has caused this to break?