Fixing multireplace 'there should be a space after the first word' error

Hey everyone! I’m having trouble with a multireplace bug when I run quicktest on my game.

The Quicktest error is saying this: line 794: invalid @{} at letter 39; there should be a space after the first word

My code looks like this:

"I want you to know that @{(h_rel_declared_support) I meant what I said in the throne room|even though I didn't get a chance to say it just then, I support you fully}, your majesty,"

I’ve checked, and h_rel_declared_support is set as true or false earlier in the chapter.

I’m well over 100,000 words into this game and have never encountered this error before. So any help would be much appreciated :). Thanks!

Can you remove the parentheses around h_rel_declared_support? This is just a guess, but that may be confusing the multireplace.

Unfortunately, that still throws up the same error, but thanks for the suggestion! Any other ideas?

Isn’t it the horizontal line between "room|even" I think it should be a space
"room even". Or something like this:
"room | even"

I’m not that sure about it though.

You need to define if this text shows up based on if the boolean variable is true or false.

"I want you to know that @{(h_rel_declared_support = true) I meant what I said in the throne room|even though I didn't get a chance to say it just then, I support you fully}, your majesty,"

1 Like

I tested it with just setting the variable h_rel_declared_support to true before that block of code and it also works. So if AChubbyBlackCat’s solution works for you, then maybe that variable was not set to either true or false before that point.

1 Like

If you tested locally and only test that particular chapter–so it ignores the previous chapter where the variable is set true/false–there’s a potential error in there. Just to narrow the culprit, try putting

*set h_rel_declared_support true/false

right before the snippet you posted.