I’ve got quite the bizarre issue on my hands, at least from my perspective.
Consider this code:
[code]“Bug”
A foo is a kind of value.
Bar is a foo.
A foo can be qux or unqux.
A foo is usually unqux.
To activate (active foo - a foo):
say " Waltz";
now active foo is qux.
To say fuz:
say “Tango”;
if bar is unqux:
activate bar.
Weird Space is a room. The cheese is in Weird Space. The description of the cheese is “[fuz]”[/code]
The result:
So what happened to the “Waltz”? Now, if I have a story effect, it still happens, unlike a say phrase.
[code]“Bug”
A foo is a kind of value.
Bar is a foo.
A foo can be qux or unqux.
A foo is usually unqux.
To activate (active foo - a foo):
end the story;
now active foo is qux.
To say fuz:
say “Tango”;
if bar is unqux:
activate bar.
Weird Space is a room. The cheese is in Weird Space. The description of the cheese is “[fuz]”[/code]
The result:
But the end of the story did happen when put in the same place.
To make things even stranger:
[code]“Bug”
A foo is a kind of value.
Bar is a foo.
A foo can be qux or unqux.
A foo is usually unqux.
To activate (active foo - a foo):
say " Waltz";
now active foo is qux.
To say fuz:
say “Tango”;
if bar is unqux:
activate bar.
Weird Space is a room.
Every turn:
say “[fuz]”[/code]
The Waltz is printed normally when in an every turn rule rather than a description.
[code]“Bug”
A foo is a kind of value.
Bar is a foo.
Baz is a foo.
A foo can be qux or unqux.
A foo is usually unqux.
To activate (active foo - a foo):
say " Waltz";
now active foo is qux.
To say fuz:
say “Tango”;
if baz is unqux:
activate bar.
To say dux:
say “Romeo”;
now baz is qux.
Weird Space is a room. The cheese is in Weird Space. The description of the cheese is “[fuz]”.[/code]
This (with baz in the if statement rather than bar) results in a description of the cheese as “Tango Waltz”. However, if the description of the cheese is instead “[fuz] [dux]”, then “Tango Romeo” is printed, with no Waltz in the middle, as if the future appearance of [dux] influences the present [fuz].
What is going on?