I have an object that changes its name during the game as follows.
I have a string defined as follows:
strings {
bottle_name : string "a bottle";
}
objects {
bottle : object "{bottle_name}" start_at = "room01";
}
I have a command defined as follows:
on_command {
: match "examine bottle" {
: if (is_present "bottle") {
: set_string var = "bottle_name" text="a green bottle";
: print "Upon examination, you see that it's actually a green bottle.";
: done;
}
}
}
"You take bottle_name."
Is this a bug or have I done something wrong?