Hey! It's me again. x) So sorry, my sister and I seem to be running into problems a lot. So, I'm moving around in the game and then when I head into this room, this error pops up on top of the room description: "
Error running script: Error evaluating expression 'ToString(value) = rhs': Object reference not set to an instance of an object.".
So, it seems some reference I've made to an object is, for some reason, running the ToString function? Not sure. Anyways, here's the code of the room description the error pops up in:
if (GetBoolean(key, "shinyfalse")) {
msg ("You are in the midst of ruin and {object:wreckage}.{if key.parent = antique2:Underneath the rubble is a {object:key}.} To the {command:north}, {command:west} and {command:east}, there are gaps between the {object:wreckage} wide enough for you to pass.")
}
else {
msg ("You are in the midst of ruin and {object:wreckage}.{if key.parent = antique2:You notice something {object:key:shiny} underneath the rubble, but you can't be entirely certain what it is until you {command:examine shiny:examine it}.} To the {command:north}, {command:west} and {command:east}, there are gaps between the {object:wreckage} wide enough for you to pass.")
}
The
shinyfalse is a flag. I think the error has something to do with the
{if key.parent=antique2..., as the text in the if condition doesn't show up in the room description. I made sure not to surround
antique2 with quotes, as I had read that Quest would evaluate it as a string if I did.
Thank you so much for any help you guys can provide, and I'm sorry if this question seems dumb or anything. <3