<p></p>
<p dir="auto">Well this is already an incompatibility between different versions. We should fix this (I want to add an actual "Trigger script" conditional) but not without a backcompat bit, it would probably break a huge number of games because it's easy to stumble upon, and before ypsiliform "Instead: run script" acted much like a "Trigger script" conditional so probably people thought it was a feature not a bug. We don't need to emulate every aspect of it (such as the incorrect value returned by <code class="notranslate">current textbox</code>). Really we should also have a second backcompat bit emulate the old pre-ypsiliform behaviour. (Probably werewaffle rather than xocolatl.)</p>
<p dir="auto">I created a test game using werewaffle+ (<a href="https://github.com/ohrrpgce/ohrrpgce/files/11206401/tbtest.zip">tbtest.zip</a>). It's set up to open TB 1 from the NPC. r2206 didn't change the behaviour the way I expected, but it did change something.</p>
<h2 dir="auto">In werewaffle+ (2008, before modernisation of the textbox code, including r2206):</h2>
<p dir="auto">If TB 1 is triggered from an NPC, TB 1 shows as normal, then TB 2 <em>also</em> shows and <code class="notranslate">insteadscript</code> runs, and when TB 2 is advanced, conditionals such as "gain $" are evaluated and After TB 3/<code class="notranslate">afterscript</code> run! However, conditionals meant to happen when TB 2 is displayed, such as setting tags, aren't run, and its choicebox and appearance settings (e.g. box position and backdrop) are ignored, it uses TB 1's appearance. This is because in werewaffle, text and conditionals were loaded before 'Instead' was checked, then it loaded appearance (into <code class="notranslate">sayenh()</code>), updated choicebox, set tags, etc.</p>
<p dir="auto">If <code class="notranslate">insteadscript</code> runs <code class="notranslate">advance text box</code>, the result is the same as today except that TB 2 shows for one tick (because the script is only run the next tick), using TB 1's appearance settings.</p>
<p dir="auto">If TB 2 is triggered directly from an NPC, the behaviour seems the same as today, including when <code class="notranslate">advance text box</code> is called.</p>
<h2 dir="auto">In xocolatl+2 (2009), after r2206:</h2>
<p dir="auto">Everything seems to be the same as werewaffle, except now TB 2 appears with its proper appearance settings and with its choicebox.</p>
<h2 dir="auto">In ypsiliform+3 (2010), which converted text boxes to slices:</h2>
<p dir="auto">Everything seems the same as today, with TB 2 no longer showing when it has an Instead script condition.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1252#issuecomment-1504436957">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZWSTSCFA2UIT66JSBLXAYFNLANCNFSM6AAAAAAW26UB3Q">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AMWGWZXIXPEZIZAZ32U6BX3XAYFNLA5CNFSM6AAAAAAW26UB3SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSZVPRN2.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><ohrrpgce/ohrrpgce/issues/1252/1504436957</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1252#issuecomment-1504436957",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1252#issuecomment-1504436957",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>