Hello!
I'm fairly newbie on any kind of languages but I'm trying to make a game on Twine anyway. On a certain passage of my game, a whatsapp conversation take place, so I made a macro to put a "Carolin is typing..." message and, after a while, it would disappear and the actual reply would take place. Everything seems to work so far but it adds a lot of spaces between the first message and the other part of the macro, and I honestly don't know what's doing that.
This is the code:
[ "So you can't call me sleepyhead, can you?"]<answer1|
[ "Oh, alright then."]<answer2|
[ "Why were you so tired?"]<answer3|
[ "Did you dreamt about me?"]<answer4|
[ "Don't answer"]<answer5|
{
(click: ?answer1) [ (replace: ?answer1) ["So you can't call me sleepyhead, can you?"] (replace: ?answer2) [] (replace: ?answer3) [] (replace: ?answer4) [] (replace: ?answer5) []
[//Carolin is typing...//]<ctm|
(live: 5000ms) [
(set: $elapsedtime to (round: time / 100) )
(set: $typingtime to $typingtime - $elapsedtime)
(if: $typingtime < 0) [ (replace: ?ctm)
[ (display: "So you") ]
] ] ]
}
And that's the result:

.
Anyone got any ideas?
Comments
Something like this: Alternately, you could put a hook around the whole choice selection and just replace it with the contents of the selected choice.
I suggest you change your example to: note: I also cleaned up the clearing answers by wrapping them all in a question hook