I like to turn the following code into a simple I7 phrase:
Include FyreVM Core by David Cornelson.
Include FyreVM Content Management by David Cornelson.
Section 1 - Definitions
Include (- Constant FYC_PROLOGUE = ('P' * $1000000) + ('L' * $10000) + ('O' * $100) + 'G'; -);
Section 2a - Not For Release
To Select the Prologue Channel:
(- if (is_fyrevm) FyreCall(FY_CHANNEL, FYC_PROLOGUE); else print "** Prologue channel ON **^"; -);
When play begins while outputting channels (this is the when-play-begins prologue content management rule):
setup prologue content management
Every turn while outputting channels (this is the every-turn prologue content management rule):
setup prologue content management
Section 2b - For Release Only
To Select the Prologue Channel:
(- if (is_fyrevm) FyreCall(FY_CHANNEL, FYC_PROLOGUE); -);
When play begins while outputting channels (this is the when-play-begins prologue content management rule):
setup prologue content management
Every turn while outputting channels (this is the every-turn prologue content management rule):
setup prologue content management
Section 2c - Setup content management for prologues
To setup prologue content management:
select the content management channel;
say "PLOG,text,prologueContent;";
select the main channel.
One of the issues is the macro when creating a constant in I6. This is arbitrary and can be dynamically generated. We just need to track it so when the channel is set in the FyreCall, it’s a known number and when we setup the content management list, we write it as “[identifier],text,[contentName]”.
And of course we need to create the new I7 action “To select the prologue channel”. But that would probably change to: select the “prologue” channel which would look up “prologue” and find the identifier for that channel, then call FyreCall(FY_CHANNEL, identifier) in I6.
If anyone can help turn all of this into the I7 phrase :
create channel "prologue" with content name "prologueChannel";
I’d be most appreciative.